safecheck-client 3.0.33-103 → 3.0.33-104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.vue +31 -31
- package/src/components/map/checkScreen.vue +886 -886
- package/src/filiale/bayan/android/SafecheckOrderV.vue +2855 -2854
- package/src/filiale/bayan/android/SafecheckUserInfo.vue +863 -835
- package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/pc/DefectPaperNew.vue +1205 -1205
- package/src/filiale/bayan/pc/NewCheckpaper.vue +1968 -1964
- package/src/filiale/bayan/pc/PaperList.vue +24 -0
- package/src/filiale/bayan/pc.js +16 -16
- package/src/filiale/tianke/pc/checkScreen.vue +786 -786
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +672 -672
@@ -1,786 +1,786 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="flex-row">
|
3
|
-
<div class="basic-main" style="flex:7">
|
4
|
-
<div id="check_map" style="height:100%">
|
5
|
-
<img-self-safe :src="imgSrc" width="45" style="z-index: 0"
|
6
|
-
height="50" class="img-rounded" v-ref:defectimg></img-self-safe>
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
<modal :styles="'width:1230px'" width="1230px" :show.sync="showModal" v-ref:modal backdrop="false">
|
10
|
-
<header slot="modal-header" class="modal-header" v-show="false"></header>
|
11
|
-
<article slot="modal-body" class="modal-body" style="width: 1200px;">
|
12
|
-
<div class="auto">
|
13
|
-
<img style="height:800px;width: 1200px;" src="./cq.jpg"
|
14
|
-
v-show="city_properEnable" alt="图片加载失败"/>
|
15
|
-
<img style="height:800px;width: 1200px;" src="./qy.jpg"
|
16
|
-
v-show="townshipEnable" alt="图片加载失败"/>
|
17
|
-
</div>
|
18
|
-
</article>
|
19
|
-
<footer slot="modal-footer" class="modal-footer">
|
20
|
-
<button type="button" class="btn btn-success" @click='closeModal()'>关闭</button>
|
21
|
-
</footer>
|
22
|
-
</modal>
|
23
|
-
|
24
|
-
<div id="zzz" class="basic-main" style="flex:1;margin-left: 0px;overflow: hidden">
|
25
|
-
<div class="flex">
|
26
|
-
<div class="panel panel-info" style="flex: 1;margin-top:0px">
|
27
|
-
<div class="panel-heading" style="height: auto">
|
28
|
-
<h3 class="panel-title">图层设置</h3>
|
29
|
-
</div>
|
30
|
-
<div class="panel-body">
|
31
|
-
<ul class="safe_ul_sty">
|
32
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.satelliteEnable" @change="enableChange('satelliteEnable',layers.satelliteEnable)" type="checkbox"/>卫星图层</li>
|
33
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.roadNetEnable" @change="enableChange('roadNetEnable',layers.roadNetEnable)" type="checkbox"/>网路图层</li>
|
34
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.townshipEnable" @click="enableChange('townshipEnable')" type="checkbox"/>乡镇管网图层</li>
|
35
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.city_properEnable" @click="enableChange('city_properEnable')" type="checkbox"/>城区管网图层</li>
|
36
|
-
<!--<button @click="safeRefresh">刷新111</button>-->
|
37
|
-
</ul>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
<div class="panel panel-info" style="flex: 2;margin-top:0px;">
|
41
|
-
<div class="panel-heading" style="height: auto">
|
42
|
-
<h3 class="panel-title">覆盖物设置</h3>
|
43
|
-
</div>
|
44
|
-
<div class="panel-body">
|
45
|
-
<ul class="safe_ul_sty">
|
46
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.checker" @change="enableChange('checker',mulchs.checker)" type="checkbox"/><img class="safe_deimg" src="../../../assets/anjianyuan.png"/>工作人员</li>
|
47
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level1" @change="enableChange('level1',mulchs.level1)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level1.png"/>一级隐患</li>
|
48
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level2" @change="enableChange('level2',mulchs.level2)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level2.png"/>二级隐患</li>
|
49
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level3" @change="enableChange('level3',mulchs.level3)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level3.png"/>三级隐患</li>
|
50
|
-
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.problems" @change="enableChange('problems',mulchs.problems)" type="checkbox"/><img class="safe_deimg" src="../../../assets/ordinary.png"/>普通问题</li>
|
51
|
-
</ul>
|
52
|
-
<!--<data-grid :model="defectList" partial='list' class="table_sy" >
|
53
|
-
<template partial='body' style="height:100%">
|
54
|
-
<td @click="$parent.$parent.setDefectPos(row)">
|
55
|
-
<div style="width: 100%;"class="flex-row">
|
56
|
-
<img src="../../../assets/星球背景.jpg" style="width:45px;height: 50px" class="img-rounded">
|
57
|
-
<div >
|
58
|
-
<p class="safe_p" :title="row.f_item_name"><nobr>{{row.f_item_name}}</nobr></p>
|
59
|
-
<p class="safe_p" :title="row.f_checker_name"><nobr>{{row.f_checker_name}}</nobr></p>
|
60
|
-
<p class="safe_p" :title="row.f_upload_date"><nobr>{{row.f_upload_date.substring(11)}}</nobr></p>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
</td>
|
64
|
-
</template>
|
65
|
-
</data-grid>-->
|
66
|
-
</div>
|
67
|
-
</div>
|
68
|
-
<div class="panel panel-info" style="flex: 4;margin-top:0px;height: 50%">
|
69
|
-
<div class="panel-heading" style="height: auto">
|
70
|
-
<h3 class="panel-title">今日隐患</h3>
|
71
|
-
</div>
|
72
|
-
<div class="panel-body" style="overflow: scroll">
|
73
|
-
<ul class="safe_ul_sty">
|
74
|
-
<li v-for="row in todayDefectList" track-by="$index" class="safe_li_sty safe_list_li" @click="setDefectPos(row)" style="border: 1px #4d4d4d solid;border-radius: 2px" >
|
75
|
-
<div style="width: 100%;" class="flex-row">
|
76
|
-
<div style="width:35%">
|
77
|
-
<!--<img-self-safe :src="'/rs/image/file/'+row.f_path" style="float: left" width="45"
|
78
|
-
height="50" class="img-rounded"></img-self-safe>-->
|
79
|
-
<img :src="'/rs/image/file/'+row.f_path" style="width:45px;height: 50px" @click.stop="seePhotos(row.f_path)" class="img-rounded">
|
80
|
-
</div>
|
81
|
-
<div style="width:65%">
|
82
|
-
<p class="safe_p" :title="row.f_item_name">{{row.f_item_name}}</p>
|
83
|
-
<p class="safe_p" :title="row.f_checker_name">{{row.f_checker_name}}</p>
|
84
|
-
<p class="safe_p" :title="row.f_upload_date">{{row.f_upload_date.substring(11)}}</p>
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
</li>
|
88
|
-
</ul>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
</div>
|
95
|
-
</template>
|
96
|
-
|
97
|
-
<script>
|
98
|
-
import Vue from 'vue'
|
99
|
-
import * as Util from '../../Util'
|
100
|
-
import {HttpResetClass,trans} from 'vue-client'
|
101
|
-
|
102
|
-
export default {
|
103
|
-
title: '安检实时监控中心',
|
104
|
-
data() {
|
105
|
-
return {
|
106
|
-
map:null,
|
107
|
-
infoWindow:null,
|
108
|
-
satellite:null,
|
109
|
-
roadNet:null,
|
110
|
-
checkerMulchs:null,//安检员点位
|
111
|
-
level1Mulchs:null,//一级隐患点位
|
112
|
-
level2Mulchs:null,//二级隐患点位
|
113
|
-
level3Mulchs:null,//三级隐患点位
|
114
|
-
problemsMulchs:null,//普通问题点位
|
115
|
-
checkers:[],
|
116
|
-
employeeList:[],
|
117
|
-
level1:[],
|
118
|
-
level2:[],
|
119
|
-
level3:[],
|
120
|
-
problems:[],
|
121
|
-
chekckOps:null,
|
122
|
-
defectList:{rows:[]},
|
123
|
-
todayDefectList:[],
|
124
|
-
intervalNum:'',
|
125
|
-
layers:{//图层控制显示
|
126
|
-
satelliteEnable:false,
|
127
|
-
roadNetEnable:false,
|
128
|
-
townshipEnable:false,
|
129
|
-
city_properEnable:false
|
130
|
-
},
|
131
|
-
imgSrc:'',
|
132
|
-
geocoder:null,//逆地理编码
|
133
|
-
mulchs:{//覆盖物控制显示
|
134
|
-
checker:true,
|
135
|
-
level1:true,
|
136
|
-
level2:true,
|
137
|
-
level3:true,
|
138
|
-
problems:true
|
139
|
-
},
|
140
|
-
styleObject :[
|
141
|
-
{
|
142
|
-
url: '/images/anjianyuan.png', //人员图标URL
|
143
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
144
|
-
size: new AMap.Size(26, 28) //图标大小
|
145
|
-
},
|
146
|
-
{
|
147
|
-
url: '/images/level1.png', //一级隐患图标URL
|
148
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
149
|
-
size: new AMap.Size(26, 28) //图标大小
|
150
|
-
},
|
151
|
-
{
|
152
|
-
url: '/images/level2.png', //二级隐患图标URL
|
153
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
154
|
-
size: new AMap.Size(26, 28) //图标大小
|
155
|
-
},
|
156
|
-
{
|
157
|
-
url: '/images/level3.png', //三级隐患图标URL
|
158
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
159
|
-
size: new AMap.Size(26, 28) //图标大小
|
160
|
-
},
|
161
|
-
{
|
162
|
-
url: '/images/ordinary.png', //普通问题图标URL
|
163
|
-
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
164
|
-
size: new AMap.Size(26, 28) //图标大小
|
165
|
-
}
|
166
|
-
],
|
167
|
-
showModal:false,
|
168
|
-
city_properEnable:false,
|
169
|
-
townshipEnable:false
|
170
|
-
}
|
171
|
-
},
|
172
|
-
async ready(){
|
173
|
-
this.initMap()
|
174
|
-
//tag)
|
175
|
-
await this.getNewData()
|
176
|
-
//tag
|
177
|
-
this.assemblyData()
|
178
|
-
//tag
|
179
|
-
window.safe_closeInfoWindow=this.closeInfoWindow
|
180
|
-
this.intervalNum=window.setInterval(this.safeRefresh, 240000)
|
181
|
-
},
|
182
|
-
methods: {
|
183
|
-
seePhotos(path){
|
184
|
-
if(path){
|
185
|
-
this.imgSrc='/rs/image/file/'+path
|
186
|
-
this.infoWindow.close()
|
187
|
-
this.$refs.defectimg.open()
|
188
|
-
}
|
189
|
-
},
|
190
|
-
setDefectPos(row){
|
191
|
-
this.map.setZoomAndCenter(15,[row.f_longitude,row.f_latitude])
|
192
|
-
let defectContent=this.getDefectContent(row)
|
193
|
-
this.infoWindow.setContent(defectContent)
|
194
|
-
this.infoWindow.open(this.map, [row.f_longitude,row.f_latitude]);
|
195
|
-
},
|
196
|
-
//获取定位人员类表
|
197
|
-
async getNewData(){
|
198
|
-
let res=await new HttpResetClass().load('POST', '/rs/search', {
|
199
|
-
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($需要定位人员$) != -1)`,
|
200
|
-
userid: this.$login.f.id
|
201
|
-
}, {resolveMsg: null, rejectMsg: null})
|
202
|
-
let arr1=await new HttpResetClass().load("GET", `/rs/safePosition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
|
203
|
-
//tag+'---------'+typeof arr1)
|
204
|
-
//let d=this.toStandardTimeString()
|
205
|
-
this.checkers=[]
|
206
|
-
console.log("res.data",res.data)
|
207
|
-
console.log("arr1",arr1)
|
208
|
-
if(res.data){
|
209
|
-
res.data.forEach((checker)=>{
|
210
|
-
////tag)
|
211
|
-
|
212
|
-
for(let check in arr1.data){
|
213
|
-
let checkerpos=JSON.parse(arr1.data[check])
|
214
|
-
////tag+check)
|
215
|
-
if(this.$login.f.rolestr.includes('定位管理员')==true){
|
216
|
-
checkerpos.userid=checker.userid
|
217
|
-
checkerpos.f_user_telephone=checker.f_user_telephone
|
218
|
-
checkerpos.rolestr=checker.rolestr
|
219
|
-
this.checkers.push(checkerpos)
|
220
|
-
}else{
|
221
|
-
if(checker.id==check){
|
222
|
-
//tag
|
223
|
-
console.log("zhaodao;e",checkerpos)
|
224
|
-
checkerpos.userid=checker.userid
|
225
|
-
checkerpos.f_user_telephone=checker.f_user_telephone
|
226
|
-
checkerpos.rolestr=checker.rolestr
|
227
|
-
this.checkers.push(checkerpos)
|
228
|
-
}
|
229
|
-
}
|
230
|
-
}
|
231
|
-
})
|
232
|
-
}
|
233
|
-
let td=Util.toStandardDateString()
|
234
|
-
//获取今天上传的所有隐患
|
235
|
-
let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStandardDateString()} 00:00:00'`}},
|
236
|
-
{resolveMsg: null, rejectMsg: null})
|
237
|
-
//tag)
|
238
|
-
if(arr.data){
|
239
|
-
this.todayDefectList=[]
|
240
|
-
arr.data.forEach((defect)=>{
|
241
|
-
if(defect.f_upload_date.indexOf(td)!=-1){
|
242
|
-
this.todayDefectList.push(defect)
|
243
|
-
}
|
244
|
-
if(defect.f_defect_level.indexOf('一级') >=0){
|
245
|
-
this.level1.push(defect)
|
246
|
-
}else if(defect.f_defect_level.indexOf('二级') >=0){
|
247
|
-
this.level2.push(defect)
|
248
|
-
}else if(defect.f_defect_level.indexOf('三级') >=0){
|
249
|
-
this.level3.push(defect)
|
250
|
-
}else{
|
251
|
-
this.problems.push(defect)
|
252
|
-
}
|
253
|
-
})
|
254
|
-
}
|
255
|
-
this.defectList.rows=arr.data
|
256
|
-
},
|
257
|
-
getDefectContent(row){
|
258
|
-
return `
|
259
|
-
<div style="padding:0px;margin-left: 8px;"><b>隐患详情</b></div>
|
260
|
-
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
261
|
-
<div class="panel-body">
|
262
|
-
<ul style="list-style-type: none;font-size: 15px;">
|
263
|
-
<li style="margin: 3px 0;">隐患内容: ${row.f_item_name}-${row.f_item_value}</li>
|
264
|
-
<li style="margin: 3px 0;">隐患级别: ${row.f_defect_level}</li>
|
265
|
-
<li style="margin: 3px 0;">发现人员: ${row.f_checker_name}</li>
|
266
|
-
<li style="margin: 3px 0;">上报时间: ${row.f_upload_date}</li>
|
267
|
-
<li style="margin: 3px 0;">是否处理: ${row.F_IS_REPAIRED?row.F_IS_REPAIRED:'未处理'}</li>
|
268
|
-
<li style="margin: 3px 0;">隐患位置: ${row.f_address}</li>
|
269
|
-
</ul>
|
270
|
-
</div>
|
271
|
-
</div>`
|
272
|
-
},
|
273
|
-
getCheckerContent(row){
|
274
|
-
return `
|
275
|
-
<div style="padding:0px;margin-left: 8px;"><b>员工信息</b></div>
|
276
|
-
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
277
|
-
<div class="panel-body">
|
278
|
-
<ul style="list-style-type: none;font-size: 15px;">
|
279
|
-
<li style="margin: 3px 0;">员工工号: ${row.userid}</li>
|
280
|
-
<li style="margin: 3px 0;">员工姓名: ${row.name}</li>
|
281
|
-
<li style="margin: 3px 0;">员工电话: ${row.f_user_telephone?row.f_user_telephone:'未查到电话'}</li>
|
282
|
-
<li style="margin: 3px 0;">角色列表: ${row.rolestr}</li>
|
283
|
-
<li style="margin: 3px 0;">剩余电量: ${row.f_battery_level} %</li>
|
284
|
-
<li style="margin: 3px 0;">剩余内存: ${row.f_internal_quote} MB</li>
|
285
|
-
<li style="margin: 3px 0;">信号强度: ${row.f_signal_strength}</li>
|
286
|
-
<li style="margin: 3px 0;">实时位置: ${row.checkAddress}</li>
|
287
|
-
<li style="margin: 3px 0;">状态更新时间: ${row.uploadTime}</li>
|
288
|
-
<!--<li style="margin: 3px 0;">客户地址: 河南省周口市工农南路xx酒店302</li>-->
|
289
|
-
</ul>
|
290
|
-
</div>
|
291
|
-
</div>`
|
292
|
-
},
|
293
|
-
assemblyData(){
|
294
|
-
let that=this
|
295
|
-
this.checkerInit()
|
296
|
-
/*this.checkers=[
|
297
|
-
{f_longitude:114.718285,f_latitude:33.610584},
|
298
|
-
{f_longitude:114.713736,f_latitude:33.642387}
|
299
|
-
]*/
|
300
|
-
/*this.level1=[
|
301
|
-
{f_longitude:114.68736,f_latitude:33.655248},
|
302
|
-
{f_longitude:114.716736,f_latitude:33.627523}
|
303
|
-
]*/
|
304
|
-
/*this.level2=[
|
305
|
-
{f_longitude:114.676833,f_latitude:33.609726},
|
306
|
-
{f_longitude:114.684013,f_latitude:33.642387}
|
307
|
-
]
|
308
|
-
this.level3=[
|
309
|
-
{f_longitude:114.71502,f_latitude:33.648675},
|
310
|
-
{f_longitude:114.725002,f_latitude:33.637242}
|
311
|
-
]
|
312
|
-
this.problems=[
|
313
|
-
{f_longitude:114.696969,f_latitude:33.635241},
|
314
|
-
{f_longitude:114.68836,f_latitude:33.655248}
|
315
|
-
]*/
|
316
|
-
/*let a1=[]
|
317
|
-
for(let i=0;i<this.checkers.length;i++){
|
318
|
-
a1.push({
|
319
|
-
lnglat: [this.checkers[i].f_longitude,this.checkers[i].f_latitude], //点标记位置
|
320
|
-
name: '安检员',
|
321
|
-
id:i,
|
322
|
-
rowstr:this.checkers[i]
|
323
|
-
})
|
324
|
-
}
|
325
|
-
// 将数组设置到 massMarks 图层
|
326
|
-
this.checkerMulchs.setData(a1);
|
327
|
-
// 将 massMarks 添加到地图实例
|
328
|
-
this.checkerMulchs.setMap(this.map);*/
|
329
|
-
let a2=[]
|
330
|
-
for(let i=0;i<this.level1.length;i++){
|
331
|
-
a2.push({
|
332
|
-
lnglat: [this.level1[i].f_longitude, this.level1[i].f_latitude], //点标记位置
|
333
|
-
name: '一级隐患',
|
334
|
-
id:i,
|
335
|
-
rowstr:this.level1[i]
|
336
|
-
})
|
337
|
-
}
|
338
|
-
// 将数组设置到 massMarks 图层
|
339
|
-
this.level1Mulchs.setData(a2);
|
340
|
-
// 将 massMarks 添加到地图实例
|
341
|
-
this.level1Mulchs.setMap(this.map);
|
342
|
-
|
343
|
-
|
344
|
-
let a3=[]
|
345
|
-
for(let o=0;o<this.level2.length;o++){
|
346
|
-
if (this.level2[o].f_longitude && this.level2[o].f_latitude){
|
347
|
-
a3.push({
|
348
|
-
lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
|
349
|
-
name: '二级隐患',
|
350
|
-
id:o,
|
351
|
-
rowstr:this.level2[o]
|
352
|
-
})
|
353
|
-
}
|
354
|
-
}
|
355
|
-
// 将数组设置到 massMarks 图层
|
356
|
-
this.level2Mulchs.setData(a3);
|
357
|
-
// 将 massMarks 添加到地图实例
|
358
|
-
this.level2Mulchs.setMap(this.map);
|
359
|
-
|
360
|
-
let a4=[]
|
361
|
-
for(let p=0;p<this.level3.length;p++){
|
362
|
-
if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
|
363
|
-
a4.push({
|
364
|
-
lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
|
365
|
-
name: '三级隐患',
|
366
|
-
id:p,
|
367
|
-
rowstr:this.level3[p]
|
368
|
-
})
|
369
|
-
}
|
370
|
-
}
|
371
|
-
// 将数组设置到 massMarks 图层
|
372
|
-
this.level3Mulchs.setData(a4);
|
373
|
-
// 将 massMarks 添加到地图实例
|
374
|
-
this.level3Mulchs.setMap(this.map);
|
375
|
-
|
376
|
-
|
377
|
-
let a5=[]
|
378
|
-
for(let l=0;l<this.problems.length;l++){
|
379
|
-
if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
|
380
|
-
a5.push({
|
381
|
-
lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
|
382
|
-
name: '普通问题',
|
383
|
-
id:l,
|
384
|
-
rowstr:this.problems[l]
|
385
|
-
})
|
386
|
-
}
|
387
|
-
}
|
388
|
-
// 将数组设置到 massMarks 图层
|
389
|
-
this.problemsMulchs.setData(a5);
|
390
|
-
// 将 massMarks 添加到地图实例
|
391
|
-
this.problemsMulchs.setMap(this.map);
|
392
|
-
//组装安检员点位集合
|
393
|
-
},
|
394
|
-
//处理图层和覆盖物的显示隐藏
|
395
|
-
enableChange(vname,val){
|
396
|
-
//tag
|
397
|
-
//tag
|
398
|
-
switch(vname){
|
399
|
-
case 'satelliteEnable':
|
400
|
-
if(val){
|
401
|
-
this.map.add(this.satellite)
|
402
|
-
}else{
|
403
|
-
this.map.remove(this.satellite)
|
404
|
-
}
|
405
|
-
break;
|
406
|
-
case 'roadNetEnable':
|
407
|
-
if(val){
|
408
|
-
this.map.add(this.roadNet)
|
409
|
-
}else{
|
410
|
-
this.map.remove(this.roadNet)
|
411
|
-
}
|
412
|
-
break;
|
413
|
-
case 'checker':
|
414
|
-
if(val){
|
415
|
-
this.chekckOps.show()
|
416
|
-
}else{
|
417
|
-
this.chekckOps.hide()
|
418
|
-
}
|
419
|
-
break;
|
420
|
-
case 'level1':
|
421
|
-
if(val){
|
422
|
-
this.level1Mulchs.show()
|
423
|
-
}else{
|
424
|
-
this.level1Mulchs.hide()
|
425
|
-
}
|
426
|
-
break;
|
427
|
-
case 'level2':
|
428
|
-
if(val){
|
429
|
-
this.level2Mulchs.show()
|
430
|
-
}else{
|
431
|
-
this.level2Mulchs.hide()
|
432
|
-
}
|
433
|
-
break;
|
434
|
-
case 'level3':
|
435
|
-
if(val){
|
436
|
-
this.level3Mulchs.show()
|
437
|
-
}else{
|
438
|
-
this.level3Mulchs.hide()
|
439
|
-
}
|
440
|
-
break;
|
441
|
-
case 'problems':
|
442
|
-
if(val){
|
443
|
-
this.problemsMulchs.show()
|
444
|
-
}else{
|
445
|
-
this.problemsMulchs.hide()
|
446
|
-
}
|
447
|
-
break;
|
448
|
-
case 'townshipEnable':
|
449
|
-
this.showModal=true
|
450
|
-
this.townshipEnable=true
|
451
|
-
this.city_properEnable=false
|
452
|
-
break;
|
453
|
-
case 'city_properEnable':
|
454
|
-
this.showModal=true
|
455
|
-
this.city_properEnable=true
|
456
|
-
this.townshipEnable=false
|
457
|
-
break;
|
458
|
-
default:
|
459
|
-
}
|
460
|
-
},
|
461
|
-
closeModal(){
|
462
|
-
this.showModal=false
|
463
|
-
this.city_properEnable=false
|
464
|
-
this.townshipEnable=false
|
465
|
-
this.layers.townshipEnable=false
|
466
|
-
this.layers.city_properEnable=false
|
467
|
-
},
|
468
|
-
initMap(){
|
469
|
-
let that=this
|
470
|
-
this.map = new AMap.Map('check_map', {
|
471
|
-
zoom: 12,
|
472
|
-
center: [116.80030599999998, 37.65219],
|
473
|
-
showIndoorMap: false,
|
474
|
-
viewMode: '2D', //设置地图模式
|
475
|
-
lang: 'zh_cn', //设置地图语言类型
|
476
|
-
zindex: 99
|
477
|
-
});
|
478
|
-
|
479
|
-
let bounds = this.map.getBounds();
|
480
|
-
this.map.setLimitBounds(bounds);
|
481
|
-
// 异步加载地图插件
|
482
|
-
AMap.plugin(
|
483
|
-
['AMap.ToolBar','AMap.Geolocation','AMap.Geocoder'], () => {//异步加载插件
|
484
|
-
// 自动定位插件
|
485
|
-
var geolocation = new AMap.Geolocation({
|
486
|
-
// 是否使用高精度定位,默认:true
|
487
|
-
enableHighAccuracy: true,
|
488
|
-
// 设置定位超时时间,默认:无穷大
|
489
|
-
showbutton: true,
|
490
|
-
//控制按钮的显示
|
491
|
-
timeout: 10000,
|
492
|
-
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
|
493
|
-
buttonOffset: new AMap.Pixel(10, 20),
|
494
|
-
// 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
495
|
-
//zoomToAccuracy: true,
|
496
|
-
// 定位按钮的排放位置, RB表示右下
|
497
|
-
buttonPosition: 'LB'
|
498
|
-
})
|
499
|
-
that.geocoder = new AMap.Geocoder({
|
500
|
-
radius: 500 //范围,默认:500
|
501
|
-
});
|
502
|
-
that.map.addControl(geolocation)
|
503
|
-
geolocation.getCurrentPosition();
|
504
|
-
that.map.addControl(new AMap.ToolBar()) //初始化工具插件
|
505
|
-
});
|
506
|
-
this.map.setDefaultCursor('move');
|
507
|
-
//this.map.setMapStyle('amap://styles/whitesmoke');
|
508
|
-
this.satellite=new AMap.TileLayer.Satellite()//卫星图层
|
509
|
-
this.roadNet=new AMap.TileLayer.RoadNet({opacity:0.8})//网路图层
|
510
|
-
//安检员位置集合
|
511
|
-
this.chekckOps=new AMap.OverlayGroup()
|
512
|
-
//初始化窗体
|
513
|
-
this.infoWindow = new AMap.InfoWindow({
|
514
|
-
anchor: 'bottom-center',
|
515
|
-
//isCustom: true, //使用自定义窗体
|
516
|
-
autoMove:true,
|
517
|
-
content: '',
|
518
|
-
offset: new AMap.Pixel(0, -25)
|
519
|
-
});
|
520
|
-
//安检员点位
|
521
|
-
/*this.checkerMulchs = new AMap.MassMarks([], {
|
522
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
523
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
524
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
525
|
-
//alwaysRender:false,
|
526
|
-
style: this.styleObject[0]
|
527
|
-
});
|
528
|
-
//tag
|
529
|
-
this.checkerMulchs.on('click',function (e) {
|
530
|
-
//tag)
|
531
|
-
let checkAddress='未获取到实时位置'
|
532
|
-
that.geocoder.getAddress(e.data.lnglat, function(status, result) {
|
533
|
-
if (status === 'complete'&& result.regeocode) {
|
534
|
-
checkAddress = result.regeocode.formattedAddress;
|
535
|
-
}else{
|
536
|
-
log.error('根据经纬度查询地址失败')
|
537
|
-
}
|
538
|
-
e.data.rowstr.checkAddress=checkAddress
|
539
|
-
let defectContent=that.getCheckerContent(e.data.rowstr)
|
540
|
-
that.infoWindow.setContent(defectContent)
|
541
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
542
|
-
});
|
543
|
-
})*/
|
544
|
-
//一级隐患点位
|
545
|
-
this.level1Mulchs=new AMap.MassMarks([], {
|
546
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
547
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
548
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
549
|
-
//alwaysRender:false,
|
550
|
-
style: this.styleObject[1]
|
551
|
-
});
|
552
|
-
this.level1Mulchs.on('click',function (e) {
|
553
|
-
//tag)
|
554
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
555
|
-
that.infoWindow.setContent(defectContent)
|
556
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
557
|
-
})
|
558
|
-
//二级隐患点位
|
559
|
-
this.level2Mulchs=new AMap.MassMarks([], {
|
560
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
561
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
562
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
563
|
-
//alwaysRender:false,
|
564
|
-
style: this.styleObject[2]
|
565
|
-
});
|
566
|
-
this.level2Mulchs.on('click',function (e) {
|
567
|
-
//tag)
|
568
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
569
|
-
that.infoWindow.setContent(defectContent)
|
570
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
571
|
-
})
|
572
|
-
//三级隐患点位
|
573
|
-
this.level3Mulchs=new AMap.MassMarks([], {
|
574
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
575
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
576
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
577
|
-
//alwaysRender:false,
|
578
|
-
style: this.styleObject[3]
|
579
|
-
});
|
580
|
-
this.level3Mulchs.on('click',function (e) {
|
581
|
-
//tag)
|
582
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
583
|
-
that.infoWindow.setContent(defectContent)
|
584
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
585
|
-
})
|
586
|
-
//普通问题点位
|
587
|
-
this.problemsMulchs=new AMap.MassMarks([], {
|
588
|
-
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
589
|
-
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
590
|
-
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
591
|
-
//alwaysRender:false,
|
592
|
-
style: this.styleObject[4]
|
593
|
-
});
|
594
|
-
this.problemsMulchs.on('click',function (e) {
|
595
|
-
//tag)
|
596
|
-
let defectContent=that.getDefectContent(e.data.rowstr)
|
597
|
-
that.infoWindow.setContent(defectContent)
|
598
|
-
that.infoWindow.open(that.map, e.data.lnglat);
|
599
|
-
})
|
600
|
-
|
601
|
-
|
602
|
-
},
|
603
|
-
closeInfoWindow(){
|
604
|
-
this.infoWindow.close()
|
605
|
-
},
|
606
|
-
checkerInit(){
|
607
|
-
/*let marker1 = new AMap.Marker({
|
608
|
-
position: [114.574809,33.621501],
|
609
|
-
icon:'http://192.168.20.28:8400/image/anjianyuan.png'
|
610
|
-
});
|
611
|
-
//tag
|
612
|
-
marker1.setLabel({
|
613
|
-
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
614
|
-
content: "<div class='info' style='background-color: #0b87e2'>何文强</div>", //设置文本标注内容
|
615
|
-
direction: 'bottom' //设置文本标注方位
|
616
|
-
})*/
|
617
|
-
let that = this
|
618
|
-
this.chekckOps.clearOverlays()
|
619
|
-
for(let j=0;j<this.checkers.length;j++){
|
620
|
-
//tag+"---"+this.checkers[j].f_longitude+"---"+this.checkers[j].f_latitude)
|
621
|
-
//let o={f_longitude:"114.72"+(Math.floor(Math.random()*(9999-1000))+1000),f_latitude:"33.56"+(Math.floor(Math.random()*(9999-1000))+1000),name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865}
|
622
|
-
let marker=new AMap.Marker({
|
623
|
-
//map: that.map,
|
624
|
-
offset:new AMap.Pixel(-18, -10),
|
625
|
-
position: [this.checkers[j].f_longitude,this.checkers[j].f_latitude],
|
626
|
-
icon:new AMap.Icon({
|
627
|
-
image: '/images/anjianyuan.png', //人员图标URL
|
628
|
-
imageOffset: new AMap.Pixel(0, 0), // 图标偏移位置
|
629
|
-
imageSize: new AMap.Size(36, 36) //图标大小
|
630
|
-
}),
|
631
|
-
label:{
|
632
|
-
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
633
|
-
content: `<div class='info' style='background-color: rgb(0,185,255);color: #ffffff;padding: 5px;border-radius: 4px'>${this.checkers[j].name}</div>`, //设置文本标注内容
|
634
|
-
direction: 'bottom', //设置文本标注方位
|
635
|
-
offset:new AMap.Pixel(0, -4)
|
636
|
-
},
|
637
|
-
extData:this.checkers[j]
|
638
|
-
})
|
639
|
-
this.chekckOps.addOverlay(marker)
|
640
|
-
|
641
|
-
}
|
642
|
-
this.chekckOps.setMap(this.map)
|
643
|
-
this.chekckOps.on('click',function (e) {
|
644
|
-
let pe=e.target.getExtData()
|
645
|
-
for(let obj in pe){
|
646
|
-
//tag
|
647
|
-
}
|
648
|
-
let checkAddress='未获取到实时位置'
|
649
|
-
that.geocoder.getAddress([pe.f_longitude,pe.f_latitude], function(status, result) {
|
650
|
-
if (status === 'complete'&& result.regeocode) {
|
651
|
-
checkAddress = result.regeocode.formattedAddress;
|
652
|
-
}/*else{
|
653
|
-
log.error('根据经纬度查询地址失败')
|
654
|
-
}*/
|
655
|
-
pe.checkAddress=checkAddress
|
656
|
-
let defectContent=that.getCheckerContent(pe)
|
657
|
-
that.infoWindow.setContent(defectContent)
|
658
|
-
that.infoWindow.open(that.map, [pe.f_longitude,pe.f_latitude])
|
659
|
-
})
|
660
|
-
})
|
661
|
-
/*AMap.event.addListener(this.ops, 'click', function (e) {
|
662
|
-
//tag)
|
663
|
-
//that.infoWindow.open(that.map, marker.getPosition());
|
664
|
-
})*/
|
665
|
-
},
|
666
|
-
//获取当前时间的前两个小时
|
667
|
-
getNowFormatDate(house=0) {
|
668
|
-
//tag
|
669
|
-
let date = new Date();
|
670
|
-
let seperator1 = "-";
|
671
|
-
let seperator2 = ":";
|
672
|
-
if(house != 0){
|
673
|
-
date.setHours(date.getHours()-house)
|
674
|
-
}
|
675
|
-
let month = date.getMonth() + 1;
|
676
|
-
let strDate = date.getDate();
|
677
|
-
let hour = date.getHours();
|
678
|
-
let min = date.getMinutes();
|
679
|
-
let second = date.getSeconds();
|
680
|
-
if (month >= 1 && month <= 9) {
|
681
|
-
month = "0" + month;
|
682
|
-
}
|
683
|
-
if (strDate >= 0 && strDate <= 9) {
|
684
|
-
strDate = "0" + strDate;
|
685
|
-
}
|
686
|
-
if (hour >= 0 && hour <= 9) {
|
687
|
-
hour = "0" + hour;
|
688
|
-
}
|
689
|
-
if (min >= 0 && min <= 9) {
|
690
|
-
min = "0" + min;
|
691
|
-
}
|
692
|
-
if (second >= 0 && second <= 9) {
|
693
|
-
second = "0" + second;
|
694
|
-
}
|
695
|
-
let currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
696
|
-
+ " " + hour + seperator2 + min
|
697
|
-
+ seperator2 + second;
|
698
|
-
return currentdate;
|
699
|
-
},
|
700
|
-
toStandardTimeString() {
|
701
|
-
let dt = new Date()
|
702
|
-
let month = dt.getMonth()+1
|
703
|
-
let date = dt.getDate()
|
704
|
-
let hour = dt.getHours()
|
705
|
-
let min = dt.getMinutes()
|
706
|
-
let sec = dt.getSeconds()
|
707
|
-
return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
|
708
|
-
+ ' ' + (hour<10? '0'+ hour : hour)
|
709
|
-
},
|
710
|
-
async safeRefresh(){
|
711
|
-
//tag
|
712
|
-
//获取所有安检员的点位集合-----测试数据
|
713
|
-
/*this.checkers=[]
|
714
|
-
this.checkers.push({f_longitude:114.7318,f_latitude:33.567126,name:"hwq1",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
715
|
-
this.checkers.push({f_longitude:114.726801,f_latitude:33.566912,name:"hwq2",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
716
|
-
this.checkers.push({f_longitude:114.723346,f_latitude:33.568932,name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
717
|
-
this.checkers.push({f_longitude:114.711741,f_latitude:33.585519,name:"hwq4",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
718
|
-
this.checkers.push({f_longitude:114.756716,f_latitude:33.594528,name:"hwq5",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
719
|
-
this.defectList.rows=[]
|
720
|
-
this.defectList.rows.push({"f_longitude":114.661358,"f_latitude":33.596897,"f_checker_name":"hwq2","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
721
|
-
this.defectList.rows.push({"f_longitude":114.659985,"f_latitude":33.62892,"f_checker_name":"hwq3","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
722
|
-
this.defectList.rows.push({"f_longitude":114.634579,"f_latitude":33.616627,"f_checker_name":"hwq4","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
723
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
724
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
725
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
726
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
727
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
728
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
729
|
-
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})*/
|
730
|
-
await this.getNewData()
|
731
|
-
this.assemblyData()
|
732
|
-
}
|
733
|
-
},
|
734
|
-
computed:{
|
735
|
-
|
736
|
-
},
|
737
|
-
destroyed(){
|
738
|
-
window.clearInterval(this.intervalNum)
|
739
|
-
}
|
740
|
-
}
|
741
|
-
|
742
|
-
</script>
|
743
|
-
|
744
|
-
<style lang="less" scoped>
|
745
|
-
|
746
|
-
.safe_checkbox_sty{
|
747
|
-
vertical-align:text-bottom;
|
748
|
-
margin-right: 3px;
|
749
|
-
|
750
|
-
}
|
751
|
-
.safe_ul_sty{
|
752
|
-
list-style-type: none;
|
753
|
-
font-size: 13px;
|
754
|
-
padding-left: 5px;
|
755
|
-
}
|
756
|
-
.safe_li_sty{
|
757
|
-
font-size: 13px;
|
758
|
-
margin-top: 5px;
|
759
|
-
}
|
760
|
-
.safe_p{
|
761
|
-
white-space: nowrap;
|
762
|
-
overflow: hidden;
|
763
|
-
text-overflow: ellipsis;
|
764
|
-
margin: 0 0 0 10px;
|
765
|
-
|
766
|
-
font-size: 12px;
|
767
|
-
}
|
768
|
-
.safe_list_li{
|
769
|
-
margin-top: 5px;
|
770
|
-
background-color: #ffffff;
|
771
|
-
border: solid 1px #f0f4fa !important;
|
772
|
-
color: #666666 !important;
|
773
|
-
font-size: 1.3rem !important;
|
774
|
-
font-family: PINGFANG-MEDIUM !important;
|
775
|
-
padding: 8px;
|
776
|
-
}
|
777
|
-
.safe_list_li:hover{
|
778
|
-
background-color: rgb(203,234,241);
|
779
|
-
}
|
780
|
-
.safe_deimg{
|
781
|
-
vertical-align: text-bottom;
|
782
|
-
width: 15px;
|
783
|
-
margin-right: 3px;
|
784
|
-
}
|
785
|
-
</style>
|
786
|
-
|
1
|
+
<template>
|
2
|
+
<div class="flex-row">
|
3
|
+
<div class="basic-main" style="flex:7">
|
4
|
+
<div id="check_map" style="height:100%">
|
5
|
+
<img-self-safe :src="imgSrc" width="45" style="z-index: 0"
|
6
|
+
height="50" class="img-rounded" v-ref:defectimg></img-self-safe>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<modal :styles="'width:1230px'" width="1230px" :show.sync="showModal" v-ref:modal backdrop="false">
|
10
|
+
<header slot="modal-header" class="modal-header" v-show="false"></header>
|
11
|
+
<article slot="modal-body" class="modal-body" style="width: 1200px;">
|
12
|
+
<div class="auto">
|
13
|
+
<img style="height:800px;width: 1200px;" src="./cq.jpg"
|
14
|
+
v-show="city_properEnable" alt="图片加载失败"/>
|
15
|
+
<img style="height:800px;width: 1200px;" src="./qy.jpg"
|
16
|
+
v-show="townshipEnable" alt="图片加载失败"/>
|
17
|
+
</div>
|
18
|
+
</article>
|
19
|
+
<footer slot="modal-footer" class="modal-footer">
|
20
|
+
<button type="button" class="btn btn-success" @click='closeModal()'>关闭</button>
|
21
|
+
</footer>
|
22
|
+
</modal>
|
23
|
+
|
24
|
+
<div id="zzz" class="basic-main" style="flex:1;margin-left: 0px;overflow: hidden">
|
25
|
+
<div class="flex">
|
26
|
+
<div class="panel panel-info" style="flex: 1;margin-top:0px">
|
27
|
+
<div class="panel-heading" style="height: auto">
|
28
|
+
<h3 class="panel-title">图层设置</h3>
|
29
|
+
</div>
|
30
|
+
<div class="panel-body">
|
31
|
+
<ul class="safe_ul_sty">
|
32
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.satelliteEnable" @change="enableChange('satelliteEnable',layers.satelliteEnable)" type="checkbox"/>卫星图层</li>
|
33
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.roadNetEnable" @change="enableChange('roadNetEnable',layers.roadNetEnable)" type="checkbox"/>网路图层</li>
|
34
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.townshipEnable" @click="enableChange('townshipEnable')" type="checkbox"/>乡镇管网图层</li>
|
35
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="layers.city_properEnable" @click="enableChange('city_properEnable')" type="checkbox"/>城区管网图层</li>
|
36
|
+
<!--<button @click="safeRefresh">刷新111</button>-->
|
37
|
+
</ul>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<div class="panel panel-info" style="flex: 2;margin-top:0px;">
|
41
|
+
<div class="panel-heading" style="height: auto">
|
42
|
+
<h3 class="panel-title">覆盖物设置</h3>
|
43
|
+
</div>
|
44
|
+
<div class="panel-body">
|
45
|
+
<ul class="safe_ul_sty">
|
46
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.checker" @change="enableChange('checker',mulchs.checker)" type="checkbox"/><img class="safe_deimg" src="../../../assets/anjianyuan.png"/>工作人员</li>
|
47
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level1" @change="enableChange('level1',mulchs.level1)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level1.png"/>一级隐患</li>
|
48
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level2" @change="enableChange('level2',mulchs.level2)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level2.png"/>二级隐患</li>
|
49
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.level3" @change="enableChange('level3',mulchs.level3)" type="checkbox"/><img class="safe_deimg" src="../../../assets/level3.png"/>三级隐患</li>
|
50
|
+
<li class="safe_li_sty"><input class="safe_checkbox_sty" v-model="mulchs.problems" @change="enableChange('problems',mulchs.problems)" type="checkbox"/><img class="safe_deimg" src="../../../assets/ordinary.png"/>普通问题</li>
|
51
|
+
</ul>
|
52
|
+
<!--<data-grid :model="defectList" partial='list' class="table_sy" >
|
53
|
+
<template partial='body' style="height:100%">
|
54
|
+
<td @click="$parent.$parent.setDefectPos(row)">
|
55
|
+
<div style="width: 100%;"class="flex-row">
|
56
|
+
<img src="../../../assets/星球背景.jpg" style="width:45px;height: 50px" class="img-rounded">
|
57
|
+
<div >
|
58
|
+
<p class="safe_p" :title="row.f_item_name"><nobr>{{row.f_item_name}}</nobr></p>
|
59
|
+
<p class="safe_p" :title="row.f_checker_name"><nobr>{{row.f_checker_name}}</nobr></p>
|
60
|
+
<p class="safe_p" :title="row.f_upload_date"><nobr>{{row.f_upload_date.substring(11)}}</nobr></p>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</td>
|
64
|
+
</template>
|
65
|
+
</data-grid>-->
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="panel panel-info" style="flex: 4;margin-top:0px;height: 50%">
|
69
|
+
<div class="panel-heading" style="height: auto">
|
70
|
+
<h3 class="panel-title">今日隐患</h3>
|
71
|
+
</div>
|
72
|
+
<div class="panel-body" style="overflow: scroll">
|
73
|
+
<ul class="safe_ul_sty">
|
74
|
+
<li v-for="row in todayDefectList" track-by="$index" class="safe_li_sty safe_list_li" @click="setDefectPos(row)" style="border: 1px #4d4d4d solid;border-radius: 2px" >
|
75
|
+
<div style="width: 100%;" class="flex-row">
|
76
|
+
<div style="width:35%">
|
77
|
+
<!--<img-self-safe :src="'/rs/image/file/'+row.f_path" style="float: left" width="45"
|
78
|
+
height="50" class="img-rounded"></img-self-safe>-->
|
79
|
+
<img :src="'/rs/image/file/'+row.f_path" style="width:45px;height: 50px" @click.stop="seePhotos(row.f_path)" class="img-rounded">
|
80
|
+
</div>
|
81
|
+
<div style="width:65%">
|
82
|
+
<p class="safe_p" :title="row.f_item_name">{{row.f_item_name}}</p>
|
83
|
+
<p class="safe_p" :title="row.f_checker_name">{{row.f_checker_name}}</p>
|
84
|
+
<p class="safe_p" :title="row.f_upload_date">{{row.f_upload_date.substring(11)}}</p>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</li>
|
88
|
+
</ul>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
</template>
|
96
|
+
|
97
|
+
<script>
|
98
|
+
import Vue from 'vue'
|
99
|
+
import * as Util from '../../Util'
|
100
|
+
import {HttpResetClass,trans} from 'vue-client'
|
101
|
+
|
102
|
+
export default {
|
103
|
+
title: '安检实时监控中心',
|
104
|
+
data() {
|
105
|
+
return {
|
106
|
+
map:null,
|
107
|
+
infoWindow:null,
|
108
|
+
satellite:null,
|
109
|
+
roadNet:null,
|
110
|
+
checkerMulchs:null,//安检员点位
|
111
|
+
level1Mulchs:null,//一级隐患点位
|
112
|
+
level2Mulchs:null,//二级隐患点位
|
113
|
+
level3Mulchs:null,//三级隐患点位
|
114
|
+
problemsMulchs:null,//普通问题点位
|
115
|
+
checkers:[],
|
116
|
+
employeeList:[],
|
117
|
+
level1:[],
|
118
|
+
level2:[],
|
119
|
+
level3:[],
|
120
|
+
problems:[],
|
121
|
+
chekckOps:null,
|
122
|
+
defectList:{rows:[]},
|
123
|
+
todayDefectList:[],
|
124
|
+
intervalNum:'',
|
125
|
+
layers:{//图层控制显示
|
126
|
+
satelliteEnable:false,
|
127
|
+
roadNetEnable:false,
|
128
|
+
townshipEnable:false,
|
129
|
+
city_properEnable:false
|
130
|
+
},
|
131
|
+
imgSrc:'',
|
132
|
+
geocoder:null,//逆地理编码
|
133
|
+
mulchs:{//覆盖物控制显示
|
134
|
+
checker:true,
|
135
|
+
level1:true,
|
136
|
+
level2:true,
|
137
|
+
level3:true,
|
138
|
+
problems:true
|
139
|
+
},
|
140
|
+
styleObject :[
|
141
|
+
{
|
142
|
+
url: '/images/anjianyuan.png', //人员图标URL
|
143
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
144
|
+
size: new AMap.Size(26, 28) //图标大小
|
145
|
+
},
|
146
|
+
{
|
147
|
+
url: '/images/level1.png', //一级隐患图标URL
|
148
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
149
|
+
size: new AMap.Size(26, 28) //图标大小
|
150
|
+
},
|
151
|
+
{
|
152
|
+
url: '/images/level2.png', //二级隐患图标URL
|
153
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
154
|
+
size: new AMap.Size(26, 28) //图标大小
|
155
|
+
},
|
156
|
+
{
|
157
|
+
url: '/images/level3.png', //三级隐患图标URL
|
158
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
159
|
+
size: new AMap.Size(26, 28) //图标大小
|
160
|
+
},
|
161
|
+
{
|
162
|
+
url: '/images/ordinary.png', //普通问题图标URL
|
163
|
+
anchor: new AMap.Pixel(14, 8), // 图标偏移位置
|
164
|
+
size: new AMap.Size(26, 28) //图标大小
|
165
|
+
}
|
166
|
+
],
|
167
|
+
showModal:false,
|
168
|
+
city_properEnable:false,
|
169
|
+
townshipEnable:false
|
170
|
+
}
|
171
|
+
},
|
172
|
+
async ready(){
|
173
|
+
this.initMap()
|
174
|
+
//tag)
|
175
|
+
await this.getNewData()
|
176
|
+
//tag
|
177
|
+
this.assemblyData()
|
178
|
+
//tag
|
179
|
+
window.safe_closeInfoWindow=this.closeInfoWindow
|
180
|
+
this.intervalNum=window.setInterval(this.safeRefresh, 240000)
|
181
|
+
},
|
182
|
+
methods: {
|
183
|
+
seePhotos(path){
|
184
|
+
if(path){
|
185
|
+
this.imgSrc='/rs/image/file/'+path
|
186
|
+
this.infoWindow.close()
|
187
|
+
this.$refs.defectimg.open()
|
188
|
+
}
|
189
|
+
},
|
190
|
+
setDefectPos(row){
|
191
|
+
this.map.setZoomAndCenter(15,[row.f_longitude,row.f_latitude])
|
192
|
+
let defectContent=this.getDefectContent(row)
|
193
|
+
this.infoWindow.setContent(defectContent)
|
194
|
+
this.infoWindow.open(this.map, [row.f_longitude,row.f_latitude]);
|
195
|
+
},
|
196
|
+
//获取定位人员类表
|
197
|
+
async getNewData(){
|
198
|
+
let res=await new HttpResetClass().load('POST', '/rs/search', {
|
199
|
+
source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($需要定位人员$) != -1)`,
|
200
|
+
userid: this.$login.f.id
|
201
|
+
}, {resolveMsg: null, rejectMsg: null})
|
202
|
+
let arr1=await new HttpResetClass().load("GET", `/rs/safePosition/getPosition`, {},{resolveMsg: null, rejectMsg: null})
|
203
|
+
//tag+'---------'+typeof arr1)
|
204
|
+
//let d=this.toStandardTimeString()
|
205
|
+
this.checkers=[]
|
206
|
+
console.log("res.data",res.data)
|
207
|
+
console.log("arr1",arr1)
|
208
|
+
if(res.data){
|
209
|
+
res.data.forEach((checker)=>{
|
210
|
+
////tag)
|
211
|
+
|
212
|
+
for(let check in arr1.data){
|
213
|
+
let checkerpos=JSON.parse(arr1.data[check])
|
214
|
+
////tag+check)
|
215
|
+
if(this.$login.f.rolestr.includes('定位管理员')==true){
|
216
|
+
checkerpos.userid=checker.userid
|
217
|
+
checkerpos.f_user_telephone=checker.f_user_telephone
|
218
|
+
checkerpos.rolestr=checker.rolestr
|
219
|
+
this.checkers.push(checkerpos)
|
220
|
+
}else{
|
221
|
+
if(checker.id==check){
|
222
|
+
//tag
|
223
|
+
console.log("zhaodao;e",checkerpos)
|
224
|
+
checkerpos.userid=checker.userid
|
225
|
+
checkerpos.f_user_telephone=checker.f_user_telephone
|
226
|
+
checkerpos.rolestr=checker.rolestr
|
227
|
+
this.checkers.push(checkerpos)
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
})
|
232
|
+
}
|
233
|
+
let td=Util.toStandardDateString()
|
234
|
+
//获取今天上传的所有隐患
|
235
|
+
let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStandardDateString()} 00:00:00'`}},
|
236
|
+
{resolveMsg: null, rejectMsg: null})
|
237
|
+
//tag)
|
238
|
+
if(arr.data){
|
239
|
+
this.todayDefectList=[]
|
240
|
+
arr.data.forEach((defect)=>{
|
241
|
+
if(defect.f_upload_date.indexOf(td)!=-1){
|
242
|
+
this.todayDefectList.push(defect)
|
243
|
+
}
|
244
|
+
if(defect.f_defect_level.indexOf('一级') >=0){
|
245
|
+
this.level1.push(defect)
|
246
|
+
}else if(defect.f_defect_level.indexOf('二级') >=0){
|
247
|
+
this.level2.push(defect)
|
248
|
+
}else if(defect.f_defect_level.indexOf('三级') >=0){
|
249
|
+
this.level3.push(defect)
|
250
|
+
}else{
|
251
|
+
this.problems.push(defect)
|
252
|
+
}
|
253
|
+
})
|
254
|
+
}
|
255
|
+
this.defectList.rows=arr.data
|
256
|
+
},
|
257
|
+
getDefectContent(row){
|
258
|
+
return `
|
259
|
+
<div style="padding:0px;margin-left: 8px;"><b>隐患详情</b></div>
|
260
|
+
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
261
|
+
<div class="panel-body">
|
262
|
+
<ul style="list-style-type: none;font-size: 15px;">
|
263
|
+
<li style="margin: 3px 0;">隐患内容: ${row.f_item_name}-${row.f_item_value}</li>
|
264
|
+
<li style="margin: 3px 0;">隐患级别: ${row.f_defect_level}</li>
|
265
|
+
<li style="margin: 3px 0;">发现人员: ${row.f_checker_name}</li>
|
266
|
+
<li style="margin: 3px 0;">上报时间: ${row.f_upload_date}</li>
|
267
|
+
<li style="margin: 3px 0;">是否处理: ${row.F_IS_REPAIRED?row.F_IS_REPAIRED:'未处理'}</li>
|
268
|
+
<li style="margin: 3px 0;">隐患位置: ${row.f_address}</li>
|
269
|
+
</ul>
|
270
|
+
</div>
|
271
|
+
</div>`
|
272
|
+
},
|
273
|
+
getCheckerContent(row){
|
274
|
+
return `
|
275
|
+
<div style="padding:0px;margin-left: 8px;"><b>员工信息</b></div>
|
276
|
+
<div class="panel panel-default" style="background-color: azure;border-radius: 5px;margin-left: 8px;">
|
277
|
+
<div class="panel-body">
|
278
|
+
<ul style="list-style-type: none;font-size: 15px;">
|
279
|
+
<li style="margin: 3px 0;">员工工号: ${row.userid}</li>
|
280
|
+
<li style="margin: 3px 0;">员工姓名: ${row.name}</li>
|
281
|
+
<li style="margin: 3px 0;">员工电话: ${row.f_user_telephone?row.f_user_telephone:'未查到电话'}</li>
|
282
|
+
<li style="margin: 3px 0;">角色列表: ${row.rolestr}</li>
|
283
|
+
<li style="margin: 3px 0;">剩余电量: ${row.f_battery_level} %</li>
|
284
|
+
<li style="margin: 3px 0;">剩余内存: ${row.f_internal_quote} MB</li>
|
285
|
+
<li style="margin: 3px 0;">信号强度: ${row.f_signal_strength}</li>
|
286
|
+
<li style="margin: 3px 0;">实时位置: ${row.checkAddress}</li>
|
287
|
+
<li style="margin: 3px 0;">状态更新时间: ${row.uploadTime}</li>
|
288
|
+
<!--<li style="margin: 3px 0;">客户地址: 河南省周口市工农南路xx酒店302</li>-->
|
289
|
+
</ul>
|
290
|
+
</div>
|
291
|
+
</div>`
|
292
|
+
},
|
293
|
+
assemblyData(){
|
294
|
+
let that=this
|
295
|
+
this.checkerInit()
|
296
|
+
/*this.checkers=[
|
297
|
+
{f_longitude:114.718285,f_latitude:33.610584},
|
298
|
+
{f_longitude:114.713736,f_latitude:33.642387}
|
299
|
+
]*/
|
300
|
+
/*this.level1=[
|
301
|
+
{f_longitude:114.68736,f_latitude:33.655248},
|
302
|
+
{f_longitude:114.716736,f_latitude:33.627523}
|
303
|
+
]*/
|
304
|
+
/*this.level2=[
|
305
|
+
{f_longitude:114.676833,f_latitude:33.609726},
|
306
|
+
{f_longitude:114.684013,f_latitude:33.642387}
|
307
|
+
]
|
308
|
+
this.level3=[
|
309
|
+
{f_longitude:114.71502,f_latitude:33.648675},
|
310
|
+
{f_longitude:114.725002,f_latitude:33.637242}
|
311
|
+
]
|
312
|
+
this.problems=[
|
313
|
+
{f_longitude:114.696969,f_latitude:33.635241},
|
314
|
+
{f_longitude:114.68836,f_latitude:33.655248}
|
315
|
+
]*/
|
316
|
+
/*let a1=[]
|
317
|
+
for(let i=0;i<this.checkers.length;i++){
|
318
|
+
a1.push({
|
319
|
+
lnglat: [this.checkers[i].f_longitude,this.checkers[i].f_latitude], //点标记位置
|
320
|
+
name: '安检员',
|
321
|
+
id:i,
|
322
|
+
rowstr:this.checkers[i]
|
323
|
+
})
|
324
|
+
}
|
325
|
+
// 将数组设置到 massMarks 图层
|
326
|
+
this.checkerMulchs.setData(a1);
|
327
|
+
// 将 massMarks 添加到地图实例
|
328
|
+
this.checkerMulchs.setMap(this.map);*/
|
329
|
+
let a2=[]
|
330
|
+
for(let i=0;i<this.level1.length;i++){
|
331
|
+
a2.push({
|
332
|
+
lnglat: [this.level1[i].f_longitude, this.level1[i].f_latitude], //点标记位置
|
333
|
+
name: '一级隐患',
|
334
|
+
id:i,
|
335
|
+
rowstr:this.level1[i]
|
336
|
+
})
|
337
|
+
}
|
338
|
+
// 将数组设置到 massMarks 图层
|
339
|
+
this.level1Mulchs.setData(a2);
|
340
|
+
// 将 massMarks 添加到地图实例
|
341
|
+
this.level1Mulchs.setMap(this.map);
|
342
|
+
|
343
|
+
|
344
|
+
let a3=[]
|
345
|
+
for(let o=0;o<this.level2.length;o++){
|
346
|
+
if (this.level2[o].f_longitude && this.level2[o].f_latitude){
|
347
|
+
a3.push({
|
348
|
+
lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
|
349
|
+
name: '二级隐患',
|
350
|
+
id:o,
|
351
|
+
rowstr:this.level2[o]
|
352
|
+
})
|
353
|
+
}
|
354
|
+
}
|
355
|
+
// 将数组设置到 massMarks 图层
|
356
|
+
this.level2Mulchs.setData(a3);
|
357
|
+
// 将 massMarks 添加到地图实例
|
358
|
+
this.level2Mulchs.setMap(this.map);
|
359
|
+
|
360
|
+
let a4=[]
|
361
|
+
for(let p=0;p<this.level3.length;p++){
|
362
|
+
if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
|
363
|
+
a4.push({
|
364
|
+
lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
|
365
|
+
name: '三级隐患',
|
366
|
+
id:p,
|
367
|
+
rowstr:this.level3[p]
|
368
|
+
})
|
369
|
+
}
|
370
|
+
}
|
371
|
+
// 将数组设置到 massMarks 图层
|
372
|
+
this.level3Mulchs.setData(a4);
|
373
|
+
// 将 massMarks 添加到地图实例
|
374
|
+
this.level3Mulchs.setMap(this.map);
|
375
|
+
|
376
|
+
|
377
|
+
let a5=[]
|
378
|
+
for(let l=0;l<this.problems.length;l++){
|
379
|
+
if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
|
380
|
+
a5.push({
|
381
|
+
lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
|
382
|
+
name: '普通问题',
|
383
|
+
id:l,
|
384
|
+
rowstr:this.problems[l]
|
385
|
+
})
|
386
|
+
}
|
387
|
+
}
|
388
|
+
// 将数组设置到 massMarks 图层
|
389
|
+
this.problemsMulchs.setData(a5);
|
390
|
+
// 将 massMarks 添加到地图实例
|
391
|
+
this.problemsMulchs.setMap(this.map);
|
392
|
+
//组装安检员点位集合
|
393
|
+
},
|
394
|
+
//处理图层和覆盖物的显示隐藏
|
395
|
+
enableChange(vname,val){
|
396
|
+
//tag
|
397
|
+
//tag
|
398
|
+
switch(vname){
|
399
|
+
case 'satelliteEnable':
|
400
|
+
if(val){
|
401
|
+
this.map.add(this.satellite)
|
402
|
+
}else{
|
403
|
+
this.map.remove(this.satellite)
|
404
|
+
}
|
405
|
+
break;
|
406
|
+
case 'roadNetEnable':
|
407
|
+
if(val){
|
408
|
+
this.map.add(this.roadNet)
|
409
|
+
}else{
|
410
|
+
this.map.remove(this.roadNet)
|
411
|
+
}
|
412
|
+
break;
|
413
|
+
case 'checker':
|
414
|
+
if(val){
|
415
|
+
this.chekckOps.show()
|
416
|
+
}else{
|
417
|
+
this.chekckOps.hide()
|
418
|
+
}
|
419
|
+
break;
|
420
|
+
case 'level1':
|
421
|
+
if(val){
|
422
|
+
this.level1Mulchs.show()
|
423
|
+
}else{
|
424
|
+
this.level1Mulchs.hide()
|
425
|
+
}
|
426
|
+
break;
|
427
|
+
case 'level2':
|
428
|
+
if(val){
|
429
|
+
this.level2Mulchs.show()
|
430
|
+
}else{
|
431
|
+
this.level2Mulchs.hide()
|
432
|
+
}
|
433
|
+
break;
|
434
|
+
case 'level3':
|
435
|
+
if(val){
|
436
|
+
this.level3Mulchs.show()
|
437
|
+
}else{
|
438
|
+
this.level3Mulchs.hide()
|
439
|
+
}
|
440
|
+
break;
|
441
|
+
case 'problems':
|
442
|
+
if(val){
|
443
|
+
this.problemsMulchs.show()
|
444
|
+
}else{
|
445
|
+
this.problemsMulchs.hide()
|
446
|
+
}
|
447
|
+
break;
|
448
|
+
case 'townshipEnable':
|
449
|
+
this.showModal=true
|
450
|
+
this.townshipEnable=true
|
451
|
+
this.city_properEnable=false
|
452
|
+
break;
|
453
|
+
case 'city_properEnable':
|
454
|
+
this.showModal=true
|
455
|
+
this.city_properEnable=true
|
456
|
+
this.townshipEnable=false
|
457
|
+
break;
|
458
|
+
default:
|
459
|
+
}
|
460
|
+
},
|
461
|
+
closeModal(){
|
462
|
+
this.showModal=false
|
463
|
+
this.city_properEnable=false
|
464
|
+
this.townshipEnable=false
|
465
|
+
this.layers.townshipEnable=false
|
466
|
+
this.layers.city_properEnable=false
|
467
|
+
},
|
468
|
+
initMap(){
|
469
|
+
let that=this
|
470
|
+
this.map = new AMap.Map('check_map', {
|
471
|
+
zoom: 12,
|
472
|
+
center: [116.80030599999998, 37.65219],
|
473
|
+
showIndoorMap: false,
|
474
|
+
viewMode: '2D', //设置地图模式
|
475
|
+
lang: 'zh_cn', //设置地图语言类型
|
476
|
+
zindex: 99
|
477
|
+
});
|
478
|
+
|
479
|
+
let bounds = this.map.getBounds();
|
480
|
+
this.map.setLimitBounds(bounds);
|
481
|
+
// 异步加载地图插件
|
482
|
+
AMap.plugin(
|
483
|
+
['AMap.ToolBar','AMap.Geolocation','AMap.Geocoder'], () => {//异步加载插件
|
484
|
+
// 自动定位插件
|
485
|
+
var geolocation = new AMap.Geolocation({
|
486
|
+
// 是否使用高精度定位,默认:true
|
487
|
+
enableHighAccuracy: true,
|
488
|
+
// 设置定位超时时间,默认:无穷大
|
489
|
+
showbutton: true,
|
490
|
+
//控制按钮的显示
|
491
|
+
timeout: 10000,
|
492
|
+
// 定位按钮的停靠位置的偏移量,默认:Pixel(10, 20)
|
493
|
+
buttonOffset: new AMap.Pixel(10, 20),
|
494
|
+
// 定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
495
|
+
//zoomToAccuracy: true,
|
496
|
+
// 定位按钮的排放位置, RB表示右下
|
497
|
+
buttonPosition: 'LB'
|
498
|
+
})
|
499
|
+
that.geocoder = new AMap.Geocoder({
|
500
|
+
radius: 500 //范围,默认:500
|
501
|
+
});
|
502
|
+
that.map.addControl(geolocation)
|
503
|
+
geolocation.getCurrentPosition();
|
504
|
+
that.map.addControl(new AMap.ToolBar()) //初始化工具插件
|
505
|
+
});
|
506
|
+
this.map.setDefaultCursor('move');
|
507
|
+
//this.map.setMapStyle('amap://styles/whitesmoke');
|
508
|
+
this.satellite=new AMap.TileLayer.Satellite()//卫星图层
|
509
|
+
this.roadNet=new AMap.TileLayer.RoadNet({opacity:0.8})//网路图层
|
510
|
+
//安检员位置集合
|
511
|
+
this.chekckOps=new AMap.OverlayGroup()
|
512
|
+
//初始化窗体
|
513
|
+
this.infoWindow = new AMap.InfoWindow({
|
514
|
+
anchor: 'bottom-center',
|
515
|
+
//isCustom: true, //使用自定义窗体
|
516
|
+
autoMove:true,
|
517
|
+
content: '',
|
518
|
+
offset: new AMap.Pixel(0, -25)
|
519
|
+
});
|
520
|
+
//安检员点位
|
521
|
+
/*this.checkerMulchs = new AMap.MassMarks([], {
|
522
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
523
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
524
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
525
|
+
//alwaysRender:false,
|
526
|
+
style: this.styleObject[0]
|
527
|
+
});
|
528
|
+
//tag
|
529
|
+
this.checkerMulchs.on('click',function (e) {
|
530
|
+
//tag)
|
531
|
+
let checkAddress='未获取到实时位置'
|
532
|
+
that.geocoder.getAddress(e.data.lnglat, function(status, result) {
|
533
|
+
if (status === 'complete'&& result.regeocode) {
|
534
|
+
checkAddress = result.regeocode.formattedAddress;
|
535
|
+
}else{
|
536
|
+
log.error('根据经纬度查询地址失败')
|
537
|
+
}
|
538
|
+
e.data.rowstr.checkAddress=checkAddress
|
539
|
+
let defectContent=that.getCheckerContent(e.data.rowstr)
|
540
|
+
that.infoWindow.setContent(defectContent)
|
541
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
542
|
+
});
|
543
|
+
})*/
|
544
|
+
//一级隐患点位
|
545
|
+
this.level1Mulchs=new AMap.MassMarks([], {
|
546
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
547
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
548
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
549
|
+
//alwaysRender:false,
|
550
|
+
style: this.styleObject[1]
|
551
|
+
});
|
552
|
+
this.level1Mulchs.on('click',function (e) {
|
553
|
+
//tag)
|
554
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
555
|
+
that.infoWindow.setContent(defectContent)
|
556
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
557
|
+
})
|
558
|
+
//二级隐患点位
|
559
|
+
this.level2Mulchs=new AMap.MassMarks([], {
|
560
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
561
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
562
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
563
|
+
//alwaysRender:false,
|
564
|
+
style: this.styleObject[2]
|
565
|
+
});
|
566
|
+
this.level2Mulchs.on('click',function (e) {
|
567
|
+
//tag)
|
568
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
569
|
+
that.infoWindow.setContent(defectContent)
|
570
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
571
|
+
})
|
572
|
+
//三级隐患点位
|
573
|
+
this.level3Mulchs=new AMap.MassMarks([], {
|
574
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
575
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
576
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
577
|
+
//alwaysRender:false,
|
578
|
+
style: this.styleObject[3]
|
579
|
+
});
|
580
|
+
this.level3Mulchs.on('click',function (e) {
|
581
|
+
//tag)
|
582
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
583
|
+
that.infoWindow.setContent(defectContent)
|
584
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
585
|
+
})
|
586
|
+
//普通问题点位
|
587
|
+
this.problemsMulchs=new AMap.MassMarks([], {
|
588
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
589
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
590
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
591
|
+
//alwaysRender:false,
|
592
|
+
style: this.styleObject[4]
|
593
|
+
});
|
594
|
+
this.problemsMulchs.on('click',function (e) {
|
595
|
+
//tag)
|
596
|
+
let defectContent=that.getDefectContent(e.data.rowstr)
|
597
|
+
that.infoWindow.setContent(defectContent)
|
598
|
+
that.infoWindow.open(that.map, e.data.lnglat);
|
599
|
+
})
|
600
|
+
|
601
|
+
|
602
|
+
},
|
603
|
+
closeInfoWindow(){
|
604
|
+
this.infoWindow.close()
|
605
|
+
},
|
606
|
+
checkerInit(){
|
607
|
+
/*let marker1 = new AMap.Marker({
|
608
|
+
position: [114.574809,33.621501],
|
609
|
+
icon:'http://192.168.20.28:8400/image/anjianyuan.png'
|
610
|
+
});
|
611
|
+
//tag
|
612
|
+
marker1.setLabel({
|
613
|
+
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
614
|
+
content: "<div class='info' style='background-color: #0b87e2'>何文强</div>", //设置文本标注内容
|
615
|
+
direction: 'bottom' //设置文本标注方位
|
616
|
+
})*/
|
617
|
+
let that = this
|
618
|
+
this.chekckOps.clearOverlays()
|
619
|
+
for(let j=0;j<this.checkers.length;j++){
|
620
|
+
//tag+"---"+this.checkers[j].f_longitude+"---"+this.checkers[j].f_latitude)
|
621
|
+
//let o={f_longitude:"114.72"+(Math.floor(Math.random()*(9999-1000))+1000),f_latitude:"33.56"+(Math.floor(Math.random()*(9999-1000))+1000),name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865}
|
622
|
+
let marker=new AMap.Marker({
|
623
|
+
//map: that.map,
|
624
|
+
offset:new AMap.Pixel(-18, -10),
|
625
|
+
position: [this.checkers[j].f_longitude,this.checkers[j].f_latitude],
|
626
|
+
icon:new AMap.Icon({
|
627
|
+
image: '/images/anjianyuan.png', //人员图标URL
|
628
|
+
imageOffset: new AMap.Pixel(0, 0), // 图标偏移位置
|
629
|
+
imageSize: new AMap.Size(36, 36) //图标大小
|
630
|
+
}),
|
631
|
+
label:{
|
632
|
+
//offset: new AMap.Pixel(20, 20), //设置文本标注偏移量
|
633
|
+
content: `<div class='info' style='background-color: rgb(0,185,255);color: #ffffff;padding: 5px;border-radius: 4px'>${this.checkers[j].name}</div>`, //设置文本标注内容
|
634
|
+
direction: 'bottom', //设置文本标注方位
|
635
|
+
offset:new AMap.Pixel(0, -4)
|
636
|
+
},
|
637
|
+
extData:this.checkers[j]
|
638
|
+
})
|
639
|
+
this.chekckOps.addOverlay(marker)
|
640
|
+
|
641
|
+
}
|
642
|
+
this.chekckOps.setMap(this.map)
|
643
|
+
this.chekckOps.on('click',function (e) {
|
644
|
+
let pe=e.target.getExtData()
|
645
|
+
for(let obj in pe){
|
646
|
+
//tag
|
647
|
+
}
|
648
|
+
let checkAddress='未获取到实时位置'
|
649
|
+
that.geocoder.getAddress([pe.f_longitude,pe.f_latitude], function(status, result) {
|
650
|
+
if (status === 'complete'&& result.regeocode) {
|
651
|
+
checkAddress = result.regeocode.formattedAddress;
|
652
|
+
}/*else{
|
653
|
+
log.error('根据经纬度查询地址失败')
|
654
|
+
}*/
|
655
|
+
pe.checkAddress=checkAddress
|
656
|
+
let defectContent=that.getCheckerContent(pe)
|
657
|
+
that.infoWindow.setContent(defectContent)
|
658
|
+
that.infoWindow.open(that.map, [pe.f_longitude,pe.f_latitude])
|
659
|
+
})
|
660
|
+
})
|
661
|
+
/*AMap.event.addListener(this.ops, 'click', function (e) {
|
662
|
+
//tag)
|
663
|
+
//that.infoWindow.open(that.map, marker.getPosition());
|
664
|
+
})*/
|
665
|
+
},
|
666
|
+
//获取当前时间的前两个小时
|
667
|
+
getNowFormatDate(house=0) {
|
668
|
+
//tag
|
669
|
+
let date = new Date();
|
670
|
+
let seperator1 = "-";
|
671
|
+
let seperator2 = ":";
|
672
|
+
if(house != 0){
|
673
|
+
date.setHours(date.getHours()-house)
|
674
|
+
}
|
675
|
+
let month = date.getMonth() + 1;
|
676
|
+
let strDate = date.getDate();
|
677
|
+
let hour = date.getHours();
|
678
|
+
let min = date.getMinutes();
|
679
|
+
let second = date.getSeconds();
|
680
|
+
if (month >= 1 && month <= 9) {
|
681
|
+
month = "0" + month;
|
682
|
+
}
|
683
|
+
if (strDate >= 0 && strDate <= 9) {
|
684
|
+
strDate = "0" + strDate;
|
685
|
+
}
|
686
|
+
if (hour >= 0 && hour <= 9) {
|
687
|
+
hour = "0" + hour;
|
688
|
+
}
|
689
|
+
if (min >= 0 && min <= 9) {
|
690
|
+
min = "0" + min;
|
691
|
+
}
|
692
|
+
if (second >= 0 && second <= 9) {
|
693
|
+
second = "0" + second;
|
694
|
+
}
|
695
|
+
let currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
696
|
+
+ " " + hour + seperator2 + min
|
697
|
+
+ seperator2 + second;
|
698
|
+
return currentdate;
|
699
|
+
},
|
700
|
+
toStandardTimeString() {
|
701
|
+
let dt = new Date()
|
702
|
+
let month = dt.getMonth()+1
|
703
|
+
let date = dt.getDate()
|
704
|
+
let hour = dt.getHours()
|
705
|
+
let min = dt.getMinutes()
|
706
|
+
let sec = dt.getSeconds()
|
707
|
+
return dt.getFullYear() + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
|
708
|
+
+ ' ' + (hour<10? '0'+ hour : hour)
|
709
|
+
},
|
710
|
+
async safeRefresh(){
|
711
|
+
//tag
|
712
|
+
//获取所有安检员的点位集合-----测试数据
|
713
|
+
/*this.checkers=[]
|
714
|
+
this.checkers.push({f_longitude:114.7318,f_latitude:33.567126,name:"hwq1",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
715
|
+
this.checkers.push({f_longitude:114.726801,f_latitude:33.566912,name:"hwq2",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
716
|
+
this.checkers.push({f_longitude:114.723346,f_latitude:33.568932,name:"hwq3",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
717
|
+
this.checkers.push({f_longitude:114.711741,f_latitude:33.585519,name:"hwq4",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
718
|
+
this.checkers.push({f_longitude:114.756716,f_latitude:33.594528,name:"hwq5",f_provider:"lbs",f_battery_level:38,f_bearing:"210.0",uploadTime:"2021-11-17 17:28:35",f_signal_strength:4,userid:"141701",f_speed:"0.0",f_internal_quote:8535,f_altitude:"9.72", f_traffic:345865})
|
719
|
+
this.defectList.rows=[]
|
720
|
+
this.defectList.rows.push({"f_longitude":114.661358,"f_latitude":33.596897,"f_checker_name":"hwq2","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
721
|
+
this.defectList.rows.push({"f_longitude":114.659985,"f_latitude":33.62892,"f_checker_name":"hwq3","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
722
|
+
this.defectList.rows.push({"f_longitude":114.634579,"f_latitude":33.616627,"f_checker_name":"hwq4","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
723
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
724
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
725
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
726
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
727
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
728
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})
|
729
|
+
this.defectList.rows.push({"f_longitude":114.690197,"f_latitude":33.604332,"f_checker_name":"hwq5","f_address":"人民路东段百昌家园路西北1栋西单元4层西户","f_item_value":"是","f_item_name":"过墙、暗封等隐蔽部位锈蚀","f_upload_date":"2021-11-16 20:07:24","f_defect_level":"一级隐患","f_is_repaired":null})*/
|
730
|
+
await this.getNewData()
|
731
|
+
this.assemblyData()
|
732
|
+
}
|
733
|
+
},
|
734
|
+
computed:{
|
735
|
+
|
736
|
+
},
|
737
|
+
destroyed(){
|
738
|
+
window.clearInterval(this.intervalNum)
|
739
|
+
}
|
740
|
+
}
|
741
|
+
|
742
|
+
</script>
|
743
|
+
|
744
|
+
<style lang="less" scoped>
|
745
|
+
|
746
|
+
.safe_checkbox_sty{
|
747
|
+
vertical-align:text-bottom;
|
748
|
+
margin-right: 3px;
|
749
|
+
|
750
|
+
}
|
751
|
+
.safe_ul_sty{
|
752
|
+
list-style-type: none;
|
753
|
+
font-size: 13px;
|
754
|
+
padding-left: 5px;
|
755
|
+
}
|
756
|
+
.safe_li_sty{
|
757
|
+
font-size: 13px;
|
758
|
+
margin-top: 5px;
|
759
|
+
}
|
760
|
+
.safe_p{
|
761
|
+
white-space: nowrap;
|
762
|
+
overflow: hidden;
|
763
|
+
text-overflow: ellipsis;
|
764
|
+
margin: 0 0 0 10px;
|
765
|
+
|
766
|
+
font-size: 12px;
|
767
|
+
}
|
768
|
+
.safe_list_li{
|
769
|
+
margin-top: 5px;
|
770
|
+
background-color: #ffffff;
|
771
|
+
border: solid 1px #f0f4fa !important;
|
772
|
+
color: #666666 !important;
|
773
|
+
font-size: 1.3rem !important;
|
774
|
+
font-family: PINGFANG-MEDIUM !important;
|
775
|
+
padding: 8px;
|
776
|
+
}
|
777
|
+
.safe_list_li:hover{
|
778
|
+
background-color: rgb(203,234,241);
|
779
|
+
}
|
780
|
+
.safe_deimg{
|
781
|
+
vertical-align: text-bottom;
|
782
|
+
width: 15px;
|
783
|
+
margin-right: 3px;
|
784
|
+
}
|
785
|
+
</style>
|
786
|
+
|