|
@@ -24,15 +24,15 @@
|
24
|
24
|
<div id="right_buts" v-if="!this.$store.state.isnavigation">
|
25
|
25
|
<span class="rightButsSpan" style="color:#037D41;font-weight:500" v-if="this.$store.state.relation == 'house'">{{this.$store.state.houseName}}</span>
|
26
|
26
|
<div v-if="this.$store.state.istable" class="changeButtonLeft" @click="navigationChange">导航切换</div>
|
27
|
|
- <el-popover v-if="this.$store.state.istable" placement="bottom" width="600px" height="399px" v-model="visible">
|
28
|
|
- <el-row >
|
|
27
|
+ <el-popover v-if="this.$store.state.istable" placement="bottom" width="600px" height="399px" v-model="visible">
|
|
28
|
+ <el-row>
|
29
|
29
|
<el-button type="success" v-if="ssko && (homeType == 1 || isshow == true)" plain @click="gocitysheng">去省图</el-button>
|
30
|
30
|
<el-button type="success" v-if="sskt && (homeType == 1 || isshow == true)" plain @click="gocityshi" style="margin-bottom:20px;">去市图</el-button>
|
31
|
31
|
</el-row>
|
32
|
32
|
|
33
|
33
|
<div v-show="clickchange && (homeType == 1 || isshow == true)" style="width:600px;height:337px;" id="myChartdt" class="myChartdtb" v-on:mousemove="dataDetails($event)">
|
34
|
34
|
</div>
|
35
|
|
- <div style="position:relative;" width="600px" height="337px">
|
|
35
|
+ <div style="position:relative;" width="600px" height="337px">
|
36
|
36
|
<img src="./map.jpg" v-show="!clickchange" alt="" width="600px" height="337px" usemap="#Map" @click="visible = false">
|
37
|
37
|
<map name="Map" @click="visible = false" v-show="!clickchange">
|
38
|
38
|
<span v-for="item in bodyContentMiddleMapData" :key="item.depotCode">
|
|
@@ -57,7 +57,11 @@ import Breadcrumb from "@/components/Breadcrumb"
|
57
|
57
|
import { getpointll } from "@/api/branchoff/index.js"
|
58
|
58
|
// import path from "path"
|
59
|
59
|
import { getUser } from "@/utils/auth"
|
60
|
|
-import { getWeather, getRightUserMappictureData , getRightUserMappictureDataType } from "@/api/home"
|
|
60
|
+import {
|
|
61
|
+ getWeather,
|
|
62
|
+ getRightUserMappictureData,
|
|
63
|
+ getRightUserMappictureDataType
|
|
64
|
+} from "@/api/home"
|
61
|
65
|
export default {
|
62
|
66
|
components: { Breadcrumb },
|
63
|
67
|
data() {
|
|
@@ -89,7 +93,7 @@ export default {
|
89
|
93
|
visible: false,
|
90
|
94
|
homeType: "",
|
91
|
95
|
depotId: "",
|
92
|
|
- isshow: false
|
|
96
|
+ isshow: false
|
93
|
97
|
}
|
94
|
98
|
},
|
95
|
99
|
|
|
@@ -140,17 +144,18 @@ export default {
|
140
|
144
|
this.homeType = JSON.parse(getUser()).homeType
|
141
|
145
|
this.depotId = this.$store.state.depotId
|
142
|
146
|
|
143
|
|
-
|
144
|
|
- if(JSON.parse(getUser()).homeType == 2){
|
145
|
|
- let cfIds = ''
|
146
|
|
- let depotId = this.$store.state.depotId
|
147
|
|
- let homeType = JSON.parse(getUser()).homeType
|
148
|
|
- getRightUserMappictureDataType(cfIds,depotId,homeType,'1').then(res => {
|
149
|
|
- if( res.data[0].children.length > 0 ){
|
150
|
|
- this.isshow = true
|
151
|
|
- }
|
152
|
|
- })
|
153
|
|
- }
|
|
147
|
+ if (JSON.parse(getUser()).homeType == 2) {
|
|
148
|
+ let cfIds = ""
|
|
149
|
+ let depotId = this.$store.state.depotId
|
|
150
|
+ let homeType = JSON.parse(getUser()).homeType
|
|
151
|
+ getRightUserMappictureDataType(cfIds, depotId, homeType, "1").then(
|
|
152
|
+ res => {
|
|
153
|
+ if (res.data[0].children.length > 0) {
|
|
154
|
+ this.isshow = true
|
|
155
|
+ }
|
|
156
|
+ }
|
|
157
|
+ )
|
|
158
|
+ }
|
154
|
159
|
},
|
155
|
160
|
mounted() {
|
156
|
161
|
this.$nextTick(() => {
|
|
@@ -180,7 +185,9 @@ export default {
|
180
|
185
|
this.administrativeDivision = this.$store.state.areacodes
|
181
|
186
|
this.ssko = true
|
182
|
187
|
this.sskt = false
|
183
|
|
- this.drawtdt()
|
|
188
|
+ this.$nextTick(() => {
|
|
189
|
+ this.drawtdt()
|
|
190
|
+ })
|
184
|
191
|
},
|
185
|
192
|
drawtdt() {
|
186
|
193
|
getpointll(this.homeType, this.depotId).then(res => {
|
|
@@ -237,7 +244,7 @@ export default {
|
237
|
244
|
type: "changeareacode",
|
238
|
245
|
areacodes: cityId
|
239
|
246
|
})
|
240
|
|
-
|
|
247
|
+
|
241
|
248
|
if (this.ssko == false && this.sskt == false) {
|
242
|
249
|
this.ssko = true
|
243
|
250
|
this.sskt = false
|
|
@@ -256,14 +263,14 @@ export default {
|
256
|
263
|
this.ssko == true &&
|
257
|
264
|
this.sskt == false
|
258
|
265
|
) {
|
259
|
|
- this.$store.commit({
|
260
|
|
- type: "changeDepotId",
|
261
|
|
- depotId: params.data[4]
|
262
|
|
- })
|
263
|
|
- this.$store.commit({
|
264
|
|
- type: "changeDepotName",
|
265
|
|
- depotName: params.data[2]
|
266
|
|
- })
|
|
266
|
+ this.$store.commit({
|
|
267
|
+ type: "changeDepotId",
|
|
268
|
+ depotId: params.data[4]
|
|
269
|
+ })
|
|
270
|
+ this.$store.commit({
|
|
271
|
+ type: "changeDepotName",
|
|
272
|
+ depotName: params.data[2]
|
|
273
|
+ })
|
267
|
274
|
this.clickchange = false
|
268
|
275
|
this.ssko = false
|
269
|
276
|
this.sskt = true
|