diff --git a/App.vue b/App.vue index 43b5f72..1f25d15 100644 --- a/App.vue +++ b/App.vue @@ -12,8 +12,8 @@ console.log(token.secretKey,'App Launch') } else { uni.reLaunch({ - // url: '/pages/login/login' - url:'/pages/zhjs/index' + url: '/pages/login/login' + // url:'/pages/zhjs/index' }) console.log(token.secretKey,'App Launch2') } diff --git a/manifest.json b/manifest.json index bb887b4..57eda4e 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ "usingComponents" : true, "nvueCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app", - "runmode":"liberate", + "runmode" : "liberate", "splashscreen" : { "alwaysShowBeforeRender" : true, "waiting" : true, diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue index 3ae5fd7..5645265 100644 --- a/pages/homeIndex/index.vue +++ b/pages/homeIndex/index.vue @@ -91,7 +91,7 @@ { value: '综合监视', key: 1, - icon: '../../static/tabs/yujing_icon@2x2.png', + icon: '../../static/tabs/zhjs.png', url: '/pages/zhjs/index' }, { @@ -273,7 +273,7 @@ .navIcon { position: relative; - width: 84px; + width: 82px; height: 50px; } diff --git a/pages/sjc/index.vue b/pages/sjc/index.vue index cb8120e..b2b8094 100644 --- a/pages/sjc/index.vue +++ b/pages/sjc/index.vue @@ -7,7 +7,11 @@ + + + + diff --git a/pages/sjc/zwyTable.vue b/pages/sjc/zwyTable.vue index 0f8b6e7..4200d3b 100644 --- a/pages/sjc/zwyTable.vue +++ b/pages/sjc/zwyTable.vue @@ -3,10 +3,10 @@
- - @@ -16,8 +16,8 @@
- - + + diff --git a/pages/skInfo/detail/basicInfo.vue b/pages/skInfo/detail/basicInfo.vue index ee386b9..acac657 100644 --- a/pages/skInfo/detail/basicInfo.vue +++ b/pages/skInfo/detail/basicInfo.vue @@ -1,98 +1,111 @@ \ No newline at end of file diff --git a/pages/skInfo/detail/index.vue b/pages/skInfo/detail/index.vue index 94da30c..414cf59 100644 --- a/pages/skInfo/detail/index.vue +++ b/pages/skInfo/detail/index.vue @@ -8,7 +8,7 @@ - + @@ -23,10 +23,10 @@ import Skjj from "./basicInfo.vue" import Tzcs from "./tzcs.vue" export default { - data() { return { tabs:0, + jumpParams:'', model: { stm: '', etm: '' @@ -54,8 +54,10 @@ Skjj, Tzcs }, - onLoad() { + onLoad(options) { this.getList(); + this.tabs = options.value || 0; + this.jumpParams = options.key || ''; }, methods: { click(item) { diff --git a/pages/skInfo/detail/myMap.vue b/pages/skInfo/detail/myMap.vue new file mode 100644 index 0000000..dbfe3db --- /dev/null +++ b/pages/skInfo/detail/myMap.vue @@ -0,0 +1,31 @@ +//MyVideo组件 +//自行封装一个组件,利用iframe实现 + + + \ No newline at end of file diff --git a/pages/skInfo/detail/tzcs.vue b/pages/skInfo/detail/tzcs.vue index 7fe1484..a94ade0 100644 --- a/pages/skInfo/detail/tzcs.vue +++ b/pages/skInfo/detail/tzcs.vue @@ -40,6 +40,10 @@ skInfo: { type: Object, default: {} + }, + value:{ + type: String, + default:'' } }, @@ -177,7 +181,10 @@ } }, mounted() { - this.keyObj = this.skInfo + this.keyObj = this.skInfo; + if(this.value){ + this.selectChage(this.value - 0) + } }, } diff --git a/pages/zhjs/subnvue/index.nvue b/pages/zhjs/subnvue/index.nvue index ae2777a..d100aad 100644 --- a/pages/zhjs/subnvue/index.nvue +++ b/pages/zhjs/subnvue/index.nvue @@ -8,7 +8,7 @@ height: windowHeight + 'px', top: '-' + statusBarHeight + 'px' }" id="map" ref="map" :latitude="latitude" :longitude="longitude" :markers="marker" :show-location="true" - scale="16.5" :enable-satellite="enableSatellite" theme="satellite" @markertap="markertap"> + :scale="scale" :enable-satellite="enableSatellite" theme="satellite" @markertap="markertap"> import moment from 'moment'; const iconObj = { + "溢洪道":{ + 1: '/static/tabs/yhd1.png', + 2: "/static/tabs/yhd2.png" + }, + "溢洪道位移":{ + 1: '/static/tabs/zweiyi1.png', + 2: "/static/tabs/zweiyi2.png" + }, "渗流": { 1: '/static/tabs/shenliu1.png', 2: "/static/tabs/shenliu2.png" @@ -81,6 +89,26 @@ 1: '/static/tabs/sxt1.png', 2: "/static/tabs/sxt2.png" }, + "发电洞": { + 1: '/static/tabs/fdt1.png', + 2: "/static/tabs/fdt2.png" + }, + "发电洞渗压": { + 1: '/static/tabs/zshenya1.png', + 2: "/static/tabs/zshenya2.png" + }, + "发电洞位移": { + 1: '/static/tabs/zweiyi1.png', + 2: "/static/tabs/zweiyi2.png" + }, + "副坝": { + 1: '/static/tabs/zhuba1.png', + 2: "/static/tabs/zhuba2.png" + }, + "副坝位移": { + 1: '/static/tabs/zweiyi1.png', + 2: "/static/tabs/zweiyi2.png" + }, } export default { data() { @@ -88,12 +116,35 @@ latitude: 31.495, longitude: 114.767, enableSatellite: false, + scale:16.5, popupOpen: false, typeChecked: 2, markers: [ { - latitude: 31.4954, - longitude: 114.7693, + latitude: 31.4962, + longitude: 114.7691, + iconPath: '/static/tabs/yhd1.png', + width: 15, + height: 15, + id: 99, + title: "溢洪道", + pointType: "溢洪道", + name: "水库工程" + }, + { + latitude: 31.4954, + longitude: 114.7707, + iconPath: '/static/tabs/zweiyi1.png', + width: 15, + height: 15, + id: 98, + title: "溢洪道位移监测", + pointType: "溢洪道位移", + name: "安全监测" + }, + { + latitude: 31.4956, + longitude: 114.7691, iconPath: '/static/tabs/shenliu1.png', width: 15, height: 15, @@ -133,6 +184,61 @@ id: 103, title: "主坝", pointType: "主坝", + name: "水库工程" + }, + { + latitude: 31.490900, + longitude: 114.7666000, + iconPath: '/static/tabs/fdt1.png', + width: 15, + height: 15, + id: 104, + title: "灌溉发电洞", + pointType: "发电洞", + name: "水库工程" + }, + { + latitude: 31.490500, + longitude: 114.7664000, + iconPath: '/static/tabs/zshenya1.png', + width: 15, + height: 15, + id: 105, + title: "灌溉发电洞渗压监测", + pointType: "发电洞渗压", + name: "安全监测" + }, + { + latitude: 31.490200, + longitude: 114.7667000, + iconPath: '/static/tabs/zweiyi1.png', + width: 15, + height: 15, + id: 106, + title: "灌溉发电洞位移监测", + pointType: "发电洞位移", + name: "安全监测" + }, + { + latitude: 31.491300, + longitude: 114.7642000, + iconPath: '/static/tabs/zhuba1.png', + width: 15, + height: 15, + id: 107, + title: "副坝", + pointType: "副坝", + name: "水库工程" + }, + { + latitude: 31.491200, + longitude: 114.7636000, + iconPath: '/static/tabs/zweiyi1.png', + width: 15, + height: 15, + id: 108, + title: "副坝位移监测", + pointType: "副坝位移", name: "安全监测" }, ], @@ -220,6 +326,20 @@ url=`/pages/sjc/index?name=主坝渗压监测` }else if(type == "主坝"){ url='/pages/skInfo/detail/index' + }else if(type == "溢洪道位移"){ + url=`/pages/sjc/index?name=溢洪道位移监测` + }else if(type == "溢洪道"){ + url='/pages/skInfo/detail/index?value=2&key=3' + }else if(type == "发电洞"){ + url='/pages/skInfo/detail/index?value=2&key=4' + }else if(type == "发电洞渗压"){ + url=`/pages/sjc/index?name=灌溉发电洞渗压监测` + }else if(type == "发电洞位移"){ + url=`/pages/sjc/index?name=灌溉发电洞位移监测` + }else if(type == "副坝"){ + url='/pages/skInfo/detail/index?value=2&key=2' + }else if(type == "副坝位移"){ + url=`/pages/sjc/index?name=副坝位移监测` } uni.navigateTo({url}) }, @@ -248,9 +368,11 @@ this.typeChecked = type if (type == 1) { this.enableSatellite = true + this.scale=15.5 } else { this.enableSatellite = false + this.scale = 16.5 } }, toggleIcon(item) { @@ -325,13 +447,13 @@ if (data.code == 200) { const waterList = data.data.map(item => ({ ...item, - latitude: item.lttd - 0, - longitude: item.lgtd - 0, + latitude: item.lttd - 0.0001, + longitude: item.lgtd - 0.0001, iconPath: '/static/tabs/yl1.png', width: 15, height: 15, title: item.stnm, - id: item.stcd, + id: item.stcd + '0', pointType: "水量", name: "水雨情监测", // joinCluster:true diff --git a/static/tabs/fdt1.png b/static/tabs/fdt1.png new file mode 100644 index 0000000..0d6a4b3 Binary files /dev/null and b/static/tabs/fdt1.png differ diff --git a/static/tabs/fdt2.png b/static/tabs/fdt2.png new file mode 100644 index 0000000..f299684 Binary files /dev/null and b/static/tabs/fdt2.png differ diff --git a/static/tabs/yhd1.png b/static/tabs/yhd1.png new file mode 100644 index 0000000..2278116 Binary files /dev/null and b/static/tabs/yhd1.png differ diff --git a/static/tabs/yhd2.png b/static/tabs/yhd2.png new file mode 100644 index 0000000..a2e264e Binary files /dev/null and b/static/tabs/yhd2.png differ diff --git a/static/tabs/zhjs.png b/static/tabs/zhjs.png new file mode 100644 index 0000000..8021be2 Binary files /dev/null and b/static/tabs/zhjs.png differ
+ 监测点 + 监测时间 X方向(mm)
{{item.stationCode}}{{simpleData(item.tm)}}{{item.stationCode}}{{simpleData(item.tm)}} {{ item.x }} {{ item.y }} {{ item.h }}