safecheck-client 4.0.2-74 → 4.0.2-75
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.
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab" :active.sync="0">
|
|
4
|
+
<tab header='任务地图'>
|
|
5
|
+
<div class="auto tip">
|
|
6
|
+
<form>
|
|
7
|
+
<div class="form-group">
|
|
8
|
+
<div class="row app-row">
|
|
9
|
+
<div class="col-xs-5">
|
|
10
|
+
<img src="../../assets/用户ID.png" style="width: 20px;margin-top: 5px" alt="">
|
|
11
|
+
<label class="font text-left">用户编号:</label>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="col-xs-7" >
|
|
14
|
+
<input class="search_input input-font"
|
|
15
|
+
v-model=f_userinfo_code placeholder="请输入用户编号" />
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="row text-center" style="margin-top: 20px;">
|
|
19
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="getuserinfoLocation">查询</button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</form>
|
|
23
|
+
</div>
|
|
24
|
+
<app-map-location
|
|
25
|
+
:islocation="true"
|
|
26
|
+
:locationzoomcenter="false"
|
|
27
|
+
:usenative="true"
|
|
28
|
+
:isshowsearch="false"
|
|
29
|
+
:mylocationinfo="false"
|
|
30
|
+
:islocationclearmark="false"
|
|
31
|
+
:isshowmapmodel="false"
|
|
32
|
+
:locationwindow="false"
|
|
33
|
+
mapmodel="dragMarker"
|
|
34
|
+
:labelmarksarray="labelmarksarray"
|
|
35
|
+
></app-map-location>
|
|
36
|
+
</tab>
|
|
37
|
+
</tabset>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script>
|
|
42
|
+
import {HttpResetClass} from 'vue-client'
|
|
43
|
+
import {isEmpty} from '../../components/Util'
|
|
44
|
+
export default {
|
|
45
|
+
title: '地图查看',
|
|
46
|
+
name: 'AppMapPaper',
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
f_userinfo_code:'',
|
|
50
|
+
labelmarksarray: [],
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
ready () {
|
|
54
|
+
this.getuserinfoLocation()
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
getuserinfoLocation() {
|
|
58
|
+
if (isEmpty(this.f_userinfo_code)){
|
|
59
|
+
this.$showMessage('请输入用户编号')
|
|
60
|
+
}
|
|
61
|
+
let http = new HttpResetClass()
|
|
62
|
+
http.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
|
|
63
|
+
items: 're.*',
|
|
64
|
+
tablename: 't_seals_record re left join t_userinfo us on re.f_userinfo_id = us.f_userinfo_id',
|
|
65
|
+
condition: `us.f_userinfo_code = '${this.f_userinfo_code}'`,
|
|
66
|
+
orderitem: ' re.id desc'
|
|
67
|
+
}}).then(res => {
|
|
68
|
+
this.labelmarksarray = res.data.map(item => {
|
|
69
|
+
return {
|
|
70
|
+
data: {
|
|
71
|
+
data: item,
|
|
72
|
+
content: `<p>用户地址:${item.f_address}</p>`
|
|
73
|
+
},
|
|
74
|
+
position: [item.f_longitude, item.f_latitude],
|
|
75
|
+
isclearmarker: false,
|
|
76
|
+
islabel: false
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|