apply-clients 7.1.36-yuchuan-1 → 7.1.36-yuchuan-2

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,432 @@
1
+ <template>
2
+ <div class="p-10">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
5
+ <div partial class="auto">
6
+ <div class="row form-group app-input">
7
+ <label class="">客户名称:</label>
8
+ <div class="col-xs-8" >
9
+ <input class="" v-model=model.f_user_name condition="u.f_user_name like '%{}%'" />
10
+ </div>
11
+ </div>
12
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
13
+ <label class="">联系电话:</label>
14
+ <div class="col-xs-8" >
15
+ <input class="" v-model=model.f_phone condition="u.f_phone like '%{}%'" />
16
+ </div>
17
+ </div>
18
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
19
+ <label class="">工程编号:</label>
20
+ <div class="col-xs-8" >
21
+ <input class="" v-model=model.f_apply_num condition="u.f_apply_num like '%{}%'" />
22
+ </div>
23
+ </div>
24
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
25
+ <label class="">合同编号:</label>
26
+ <div class="col-xs-8" >
27
+ <input class="" v-model=model.f_contract_number condition="u.f_contract_number like '%{}%'" />
28
+ </div>
29
+ </div>
30
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
31
+ <label class="">报建类型:</label>
32
+ <div class="col-xs-8" >
33
+ <v-select
34
+ width="100%"
35
+ v-model="model.f_apply_type"
36
+ placeholder='报建类型'
37
+ condition="u.f_apply_type like '%{}%'"
38
+ :value.sync="model.f_apply_type"
39
+ :options='$parent.$parent.applytype'
40
+ class="select select_list"
41
+ :value-single="true"
42
+ @change="$parent.$parent.applyTypeChange()"
43
+ close-on-select ></v-select>
44
+ </div>
45
+ </div>
46
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
47
+ <label class="">办理环节:</label>
48
+ <div class="col-xs-8" >
49
+ <v-select
50
+ width="100%"
51
+ v-model="model.defname"
52
+ placeholder='办理环节'
53
+ condition="act.defname = '{}'"
54
+ :value.sync="model.defname"
55
+ :options='$parent.$parent.defnames'
56
+ class="select select_list"
57
+ :value-single="true"
58
+ close-on-select ></v-select>
59
+ </div>
60
+ </div>
61
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
62
+ <label class="">报建性质:</label>
63
+ <div class="col-xs-8" >
64
+ <v-select
65
+ width="100%"
66
+ v-model="model.f_apply_nature"
67
+ placeholder='报建性质'
68
+ condition="f_apply_nature = '{}'"
69
+ :value.sync="model.f_apply_nature"
70
+ :options='$parent.$parent.applyNatures'
71
+ class="select select_list"
72
+ :value-single="true"
73
+ close-on-select ></v-select>
74
+ </div>
75
+ </div>
76
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
77
+ <label class="">用户地址:</label>
78
+ <div class="col-xs-8" >
79
+ <input class="" v-model=model.f_address condition="u.f_address like '%{}%'" />
80
+ </div>
81
+ </div>
82
+ <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
83
+ <label class="">小&emsp;&emsp;区:</label>
84
+ <div class="col-xs-8" >
85
+ <v-select
86
+ width="100%"
87
+ v-model="model.f_residential_area"
88
+ placeholder='小区'
89
+ condition="u.f_residential_area = '{}'"
90
+ :value.sync="model.f_residential_area"
91
+ :options='$parent.$parent.areaList'
92
+ class="select select_list"
93
+ :value-single="true"
94
+ close-on-select ></v-select>
95
+ </div>
96
+ </div>
97
+ <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
98
+ <label class="">楼&emsp;&emsp;号:</label>
99
+ <div class="col-xs-8" >
100
+ <input class="" v-model=model.f_building condition="u.f_building like '%{}%'" />
101
+ </div>
102
+ </div>
103
+ <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
104
+ <label class="">单&emsp;&emsp;元:</label>
105
+ <div class="col-xs-8" >
106
+ <input class="" v-model=model.f_unit condition="u.f_unit like '%{}%'" />
107
+ </div>
108
+ </div>
109
+ <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
110
+ <label class="">门&ensp;牌&ensp;号:</label>
111
+ <div class="col-xs-8" >
112
+ <input class="" v-model=model.f_room condition="u.f_room like '%{}%'" />
113
+ </div>
114
+ </div>
115
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
116
+ <label class="">开始时间:</label>
117
+ <div class="col-xs-8" >
118
+ <datepicker id="startDate" placeholder="开始日期"
119
+ style="width: 100%!important;"
120
+ v-model="model.startDate"
121
+ :value.sync="model.startDate"
122
+ :format="'yyyy-MM-dd 00:00:00'"
123
+ :show-reset-button="true"
124
+ condition="u.f_apply_date >= '{}'">
125
+ </datepicker>
126
+ </div>
127
+ </div>
128
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
129
+ <label class="">结束时间:</label>
130
+ <div class="col-xs-8" >
131
+ <datepicker id="endDate" placeholder="结束日期"
132
+ style="width: 100%!important;"
133
+ v-model="model.endDate"
134
+ :value.sync="model.endDate"
135
+ :format="'yyyy-MM-dd 23:59:59'"
136
+ :show-reset-button="true"
137
+ condition="f_apply_date <= '{}'">
138
+ </datepicker>
139
+ </div>
140
+ </div>
141
+ <!-- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">-->
142
+ <!-- <label class="">稍后处理:</label>-->
143
+ <!-- <div class="col-xs-8" >-->
144
+ <!-- <v-select-->
145
+ <!-- width="100%"-->
146
+ <!-- v-model="model.f_is_later"-->
147
+ <!-- placeholder='稍后处理'-->
148
+ <!-- condition="f_is_later = '{}'"-->
149
+ <!-- :value.sync="model.f_is_later"-->
150
+ <!-- :options='$parent.$parent.laterList'-->
151
+ <!-- class="select select_list"-->
152
+ <!-- :value-single="true"-->
153
+ <!-- close-on-select ></v-select>-->
154
+ <!-- </div>-->
155
+ <!-- </div>-->
156
+ <div class="row form-group text-right" style="">
157
+ <button class="btn btn-primary" @click="$parent.$parent.search()">查询</button>
158
+ <button class="btn btn-info" @click="$parent.$parent.clear()">清空</button>
159
+ <button class="btn" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></button>
160
+ </div>
161
+ </div>
162
+ </criteria>
163
+
164
+ <list :model="model" partial='list'>
165
+ <div partial class="auto app-text panel">
166
+ <div class="panel-body panel-self">
167
+ <div class="col-xs-12">
168
+ <p class="col-xs-3 text-left font"><b>客户名称:</b></p>
169
+ <p class="col-xs-9 text-left input-font">{{ row.f_user_name }}</p>
170
+ </div>
171
+ <div class="col-xs-12">
172
+ <p class="col-xs-3 text-left font"><b>电&emsp;&emsp;话:</b></p>
173
+ <p class="col-xs-9 text-left input-font">
174
+ {{ row.f_phone }}&ensp;
175
+ <svg @click.prevent="$parent.$parent.$parent.dialNumber(row.f_phone)" style="width: 25px;height: 25px;position: absolute;" t="1628575136009" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2374" width="200" height="200"><path d="M682.25 465.262c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811A167.395 167.395 0 0 0 570.96 298.35c-16.695 0-27.811 11.116-27.811 27.811s11.16 27.812 27.811 27.812a111.597 111.597 0 0 1 111.29 111.289z m111.289 0c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811c0-152.984-125.217-278.201-278.2-278.201-16.696 0-27.812 11.16-27.812 27.855s11.16 27.811 27.811 27.811c122.405 0 222.579 100.174 222.579 222.535zM417.976 367.9c30.623-30.579 33.391-77.898 5.58-111.289L337.31 148.134c-27.811-36.16-80.666-41.74-116.869-13.928-2.768 2.812-5.536 2.812-5.536 5.58l-75.13 75.13c-72.318 72.318 30.623 267.041 217.042 453.417C543.15 854.708 735.06 954.88 807.378 885.33l75.13-75.13c33.392-33.391 33.392-86.246 0-116.825l-5.536-5.58-108.52-86.246c-33.348-27.81-80.623-25.043-111.246 5.58l-47.275 47.319c-50.087-30.623-94.593-64.014-133.564-102.941-38.927-38.971-72.275-83.478-102.898-133.565l44.507-50.043z m-38.927-75.13c8.348 11.16 8.348 27.855-2.812 36.203l-61.202 63.97a29.569 29.569 0 0 0-5.536 33.392 721.425 721.425 0 0 0 122.405 164.1 721.512 721.512 0 0 0 164.1 122.405 29.569 29.569 0 0 0 33.39-5.58l63.971-63.97c11.16-11.116 25.043-11.116 36.203-2.769l108.477 89.014s2.768 0 2.768 2.768a26.889 26.889 0 0 1 0 38.971l-75.13 75.13c-36.115 36.115-208.606-55.666-372.75-217.042-164.1-161.332-253.114-336.548-216.955-372.75l77.854-77.899c11.16-8.348 30.623-8.348 38.971 5.58l86.246 108.521z" fill="#8A8A8A" p-id="2375"></path></svg>
176
+ </p>
177
+ </div>
178
+ <div class="col-xs-12">
179
+ <p class="col-xs-3 text-left font"><b>工程编号:</b></p>
180
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_num }}</p>
181
+ </div>
182
+ <div class="col-xs-12">
183
+ <p class="col-xs-3 text-left font"><b>客户编号:</b></p>
184
+ <p class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
185
+ </div>
186
+ <div class="col-xs-12">
187
+ <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
188
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_type }}</p>
189
+ </div>
190
+ <div class="col-xs-12">
191
+ <p class="col-xs-3 text-left font"><b>办理环节:</b></p>
192
+ <p class="col-xs-9 text-left input-font">{{ row.defname }}</p>
193
+ </div>
194
+ <div class="col-xs-12">
195
+ <p class="col-xs-3 text-left font"><b>定位地址:</b></p>
196
+ <p class="col-xs-9 text-left input-font">
197
+ {{ row.f_order_address }}
198
+ <svg @click.prevent="$parent.$parent.$parent.openAmap(row)" style="width: 25px;height: 25px;position: absolute;" t="1628575336648" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3201" width="200" height="200"><path d="M512 956h-1.1c-10.9 0-20.5-6.9-24.7-17L369.9 654.1 85 537.8c-10.1-4.1-16.8-13.7-17.2-24.6-0.4-10.9 5.6-21 15.3-25.9l833-416.5c10.7-5.3 23.6-3.2 32.1 5.2s10.5 21.4 5.2 32.1L536.8 940.9c-4.7 9.4-14.3 15.1-24.8 15.1zM162.7 509.6l239 97.6c6.9 2.8 12.4 8.3 15.2 15.2l97.6 239 351.9-703.8-703.7 352z" fill="#666666" p-id="3202"></path></svg>
199
+ </p>
200
+ </div>
201
+ <div class="col-xs-12">
202
+ <p class="col-xs-3 text-left font"><b>地&emsp;&emsp;址:</b></p>
203
+ <p class="col-xs-9 text-left input-font">{{ row.f_address }}</p>
204
+ </div>
205
+ <div class="col-xs-12">
206
+ <p class="col-xs-3 text-left font"><b>报建日期:</b></p>
207
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_date }}</p>
208
+ </div>
209
+ <div class="col-xs-12" style="color: red">
210
+ <p class="col-xs-3 text-left font"><b>施工备注:</b></p>
211
+ <p class="col-xs-9 text-left input-font">{{ row.f_construction_remarks }}</p>
212
+ </div>
213
+
214
+ <div class="col-xs-12 text-right">
215
+ <button class="btn btn-info" @click="$parent.$parent.$parent.click(row)">处理</button>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ </list>
220
+ </criteria-paged>
221
+ </div>
222
+ </template>
223
+ <script>
224
+ import Vue from 'vue'
225
+ import { PagedList, HttpResetClass } from 'vue-client'
226
+ import {isEmpty} from '../../../Util'
227
+ export default {
228
+ title: '管线建设流程',
229
+ props: ['defname', 'f_lat', 'f_lng', 'usertype'],
230
+ data () {
231
+ return {
232
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/getGuanXianApply`, 20, {
233
+ data: {
234
+ userid: Vue.user.id,
235
+ f_filiale: Vue.user.f_fengongsi
236
+ }
237
+ }),
238
+ criteriaShow: false,
239
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
240
+ defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')],
241
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
242
+ areaList: [],
243
+ showSupervisory: true
244
+ }
245
+ },
246
+ ready () {
247
+ this.getArea()
248
+ this.search()
249
+ },
250
+ methods: {
251
+ refresh () {
252
+ this.search()
253
+ this.$dispatch('refreshDot')
254
+ },
255
+ openAmap (selectdata) {
256
+ HostApp.openThirdPartyMap({
257
+ lon: selectdata.f_lng,
258
+ lat: selectdata.f_lat,
259
+ address: selectdata.f_order_address
260
+ })
261
+ },
262
+ dialNumber (phone) {
263
+ this.$showMessage(`是否拨打电话:${phone}`, ['confirm']).then((res) => {
264
+ if (res === 'confirm') {
265
+ this.$androidUtil.makeAPhoneCall(phone)
266
+ }
267
+ })
268
+ },
269
+ clear () {
270
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
271
+ this.$refs.cp.$refs.cri.model[key] = null
272
+ })
273
+ },
274
+ // 查询
275
+ search () {
276
+ this.$refs.cp.$refs.cri.search()
277
+ this.criteriaShow = false
278
+ },
279
+ searchCondition (args) {
280
+ if (this.defname === '施工信息'){
281
+ args.condition = args.condition + ` and act.defname = '管线建设施工' and (f_construction_unit = '${Vue.user.id}'
282
+ or f_check_operator_id = '${Vue.user.id}' or f_engineering_operator_id = '${Vue.user.id}'
283
+ or f_supervisor_operator_id = '${Vue.user.id}' or f_supervisor_operator = '${Vue.user.id}'
284
+ or f_construct_operator_id = '${Vue.user.id}')`
285
+ } else {
286
+ args.condition += `and act.defname = '${this.defname}'`
287
+ }
288
+ if (this.usertype){
289
+ args.condition += `and u.f_apply_type = '${this.usertype}'`
290
+ }
291
+
292
+ console.log("args.condition",args.condition)
293
+ this.model.search(args.condition, args.model)
294
+ },
295
+ click (row) {
296
+ if (this.defname === '施工信息'){
297
+ row.defname = '施工信息'
298
+ }
299
+ let _this = this
300
+ this.$dispatch('gotoson', {
301
+ _this: _this,
302
+ title: row.defname,
303
+ safe: true
304
+ })
305
+ this.$goto('app-service-control', {selectdata: row}, 'self', _this.refresh)
306
+ },
307
+ applyTypeChange () {
308
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
309
+ let http = new HttpResetClass()
310
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getDefnameByType`, {
311
+ // http.load('POST', 'rs/logic/getDefnameByType', {
312
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
313
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
314
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
315
+
316
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
317
+ })
318
+ } else {
319
+ this.defnames = [{label: '全部', value: ''}]
320
+
321
+ this.applyNatures = [{label: '全部', value: ''}]
322
+ }
323
+ },
324
+ // 获取小区
325
+ async getArea () {
326
+ let data = {
327
+ tablename: 't_area_address',
328
+ condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用'`
329
+ }
330
+ let http = new HttpResetClass()
331
+ let res = await http.load(
332
+ 'POST',
333
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
334
+ {data: data},
335
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
336
+ )
337
+ this.areaList = res.data.map(item => {
338
+ return {
339
+ label: item.f_residential_area,
340
+ value: item.f_residential_area
341
+ }
342
+ })
343
+ },
344
+ changeSearch(){
345
+ this.showSupervisory = !this.showSupervisory
346
+ this.search()
347
+ },
348
+ },
349
+ events: {
350
+ 'loadPage' () {
351
+ this.selectdata = {}
352
+ // 关闭详细
353
+ this.showtotal = false
354
+ // 显示列表数据
355
+ this.showData = true
356
+ // 显示分页
357
+ this.$refs.query.$refs.cp.pager = true
358
+ // 调用查询
359
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
360
+ }
361
+ },
362
+ watch: {
363
+ // 通过计算属性同时监听多个值
364
+ 'changeData' () {
365
+ if (!isEmpty(this.f_lat) && !isEmpty(this.f_lng)) {
366
+ this.search()
367
+ }
368
+ }
369
+ },
370
+ computed: {
371
+ changeData () {
372
+ const {f_lat, f_lng} = this
373
+ return {
374
+ f_lat,
375
+ f_lng
376
+ }
377
+ }
378
+ }
379
+ }
380
+ </script>
381
+ <style scoped>
382
+ .panel-self{
383
+ border-radius: 10px;
384
+ border:1px solid #499EDF;
385
+ background-color: #F8F8F8;
386
+ }
387
+ .font{
388
+ font: 15px PingFang-SC-Medium;
389
+ color: #666666;
390
+ }
391
+
392
+ .button_shrink_top {
393
+ width: 34px;
394
+ height: 34px;
395
+ border: solid 1px #6aa6e2;
396
+ background-size: 100%;
397
+ background-image: url("../../../../../static/newStyle/stretch_top.png")
398
+ }
399
+
400
+ .button_shrink_bottom {
401
+ width: 34px;
402
+ height: 34px;
403
+ border: solid 1px #6aa6e2;
404
+ background-size: 100%;
405
+ background-image: url("../../../../../static/newStyle/stretch_bottom.png")
406
+ }
407
+ </style>
408
+ <style lang="less">
409
+ .app-input {
410
+ label {
411
+ float: left;
412
+ }
413
+ .select {
414
+ button {
415
+ border: none;
416
+ outline: none;
417
+ text-align: left;
418
+ .btn-placeholder {
419
+ color: #ACA899
420
+ }
421
+ }
422
+ }
423
+ .datepicker {
424
+ .form-control:focus {
425
+ border: none!important;
426
+ outline: none!important;
427
+ -webkit-box-shadow: none;
428
+ box-shadow: none;
429
+ }
430
+ }
431
+ }
432
+ </style>
@@ -1,95 +1,98 @@
1
- <template>
2
- <div>
3
- <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab2" :active.sync="active">
4
- <tab header='任务列表' style="width: auto">
5
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng"></app-exploration-user>
6
- </tab>
7
- </tabset>
8
- </div>
9
- </template>
10
- <script>
11
- import {HttpResetClass, PagedList} from 'vue-client'
12
- import Vue from 'vue'
13
-
14
- export default {
15
- title: '监理单位派工',
16
- data () {
17
- return {
18
- labelmarksarray: [],
19
- tasknumber: 0,
20
- active: 0,
21
- f_lat: null,
22
- f_lng: null,
23
- defname: '监理单位派工'
24
- }
25
- },
26
- ready () {
27
- console.log('进入监理单位派工')
28
- this.getApplyTaskDot()
29
- },
30
- methods: {
31
- diyspotmouseclick (data) {
32
- this.f_lat = data.f_lat
33
- this.f_lng = data.f_lng
34
-
35
- this.active = 1
36
- },
37
- async getApplyTaskDot () {
38
- console.log('==========查询任务点==============')
39
- this.tasknumber = 0
40
- let http = new HttpResetClass()
41
- let data = {
42
- defname: this.defname,
43
- userid: Vue.user.id
44
- }
45
- let res = await http.load(
46
- 'POST',
47
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
48
- {data: data},
49
- {
50
- resolveMsg: null,
51
- rejectMsg: '任务点获取失败!!!'
52
- })
53
- this.labelmarksarray = res.data.map(item => {
54
- this.tasknumber += item.count
55
- return {
56
- data: {
57
- data: item,
58
- content: `<p>任务数:${item.count}</p>`
59
- },
60
- position: [item.f_lng, item.f_lat],
61
- isclearmarker: false,
62
- islabel: false
63
- }
64
- })
65
- }
66
- },
67
- events: {
68
- 'refreshDot' () {
69
- this.getApplyTaskDot()
70
- }
71
- },
72
- watch: {
73
- },
74
- computed: {
75
- }
76
- }
77
- </script>
78
- <style scoped>
79
- .tip{
80
- position: absolute;
81
- z-index: 1000;
82
- color: red;
83
- font-size: 24px;
84
- right: 30px;
85
- padding-top: 20px;
86
- }
87
- </style>
88
- <style lang="less">
89
- .nav-apply-tab2 {
90
- li {
91
- width: 100%;
92
- text-align: center;
93
- }
94
- }
95
- </style>
1
+ <template>
2
+ <div>
3
+ <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab2" :active.sync="active">
4
+ <tab header='报建' style="width: auto">
5
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng"></app-exploration-user>
6
+ </tab>
7
+ <tab header='管线' style="width: auto">
8
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng"></app-exploration-user>
9
+ </tab>
10
+ </tabset>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import {HttpResetClass, PagedList} from 'vue-client'
15
+ import Vue from 'vue'
16
+
17
+ export default {
18
+ title: '监理单位派工',
19
+ data () {
20
+ return {
21
+ labelmarksarray: [],
22
+ tasknumber: 0,
23
+ active: 0,
24
+ f_lat: null,
25
+ f_lng: null,
26
+ defname: '监理单位派工'
27
+ }
28
+ },
29
+ ready () {
30
+ console.log('进入监理单位派工')
31
+ this.getApplyTaskDot()
32
+ },
33
+ methods: {
34
+ diyspotmouseclick (data) {
35
+ this.f_lat = data.f_lat
36
+ this.f_lng = data.f_lng
37
+
38
+ this.active = 1
39
+ },
40
+ async getApplyTaskDot () {
41
+ console.log('==========查询任务点==============')
42
+ this.tasknumber = 0
43
+ let http = new HttpResetClass()
44
+ let data = {
45
+ defname: this.defname,
46
+ userid: Vue.user.id
47
+ }
48
+ let res = await http.load(
49
+ 'POST',
50
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
51
+ {data: data},
52
+ {
53
+ resolveMsg: null,
54
+ rejectMsg: '任务点获取失败!!!'
55
+ })
56
+ this.labelmarksarray = res.data.map(item => {
57
+ this.tasknumber += item.count
58
+ return {
59
+ data: {
60
+ data: item,
61
+ content: `<p>任务数:${item.count}</p>`
62
+ },
63
+ position: [item.f_lng, item.f_lat],
64
+ isclearmarker: false,
65
+ islabel: false
66
+ }
67
+ })
68
+ }
69
+ },
70
+ events: {
71
+ 'refreshDot' () {
72
+ this.getApplyTaskDot()
73
+ }
74
+ },
75
+ watch: {
76
+ },
77
+ computed: {
78
+ }
79
+ }
80
+ </script>
81
+ <style scoped>
82
+ .tip{
83
+ position: absolute;
84
+ z-index: 1000;
85
+ color: red;
86
+ font-size: 24px;
87
+ right: 30px;
88
+ padding-top: 20px;
89
+ }
90
+ </style>
91
+ <style lang="less">
92
+ .nav-apply-tab2 {
93
+ li {
94
+ width: 100%;
95
+ text-align: center;
96
+ }
97
+ }
98
+ </style>