apply-clients 7.1.36-yuchuan-18 → 7.1.36-yuchuan-20

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.
@@ -1,124 +1,124 @@
1
- <template>
2
- <div>
3
- <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab" :active.sync="active">
4
- <tab header='任务地图'>
5
- <div class="auto tip">
6
- <p>当前任务数量:{{ tasknumber }}</p>
7
- <p>当前任务点:{{labelmarksarray.length}}</p>
8
- </div>
9
- <amap-location
10
- :islocation="true"
11
- :locationzoomcenter="false"
12
- :usenative="true"
13
- :isshowsearch="false"
14
- :mylocationinfo="false"
15
- :islocationclearmark="false"
16
- :isshowmapmodel="false"
17
- :locationwindow="false"
18
- mapmodel="dragMarker"
19
- :labelmarksarray="labelmarksarray"
20
- @diyspotmouseclick="diyspotmouseclick"
21
- ></amap-location>
22
- </tab>
23
- <tab header='任务列表'>
24
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng"></app-exploration-user>
25
- </tab>
26
- </tabset>
27
- </div>
28
- </template>
29
- <script>
30
- import {HttpResetClass, PagedList} from 'vue-client'
31
- import Vue from 'vue'
32
-
33
- export default {
34
- title: '维修派单',
35
- data () {
36
- return {
37
- labelmarksarray: [],
38
- tasknumber: 0,
39
- active: 0,
40
- f_lat: null,
41
- f_lng: null,
42
- defname: '维修派单'
43
- }
44
- },
45
- ready () {
46
- this.getApplyTaskDot()
47
- },
48
- methods: {
49
- async diyspotmouseclick(data) {
50
- this.f_lat = data.f_lat
51
- this.f_lng = data.f_lng
52
-
53
- data.condition = `f_lat = '${data.f_lat}' and f_lng = '${data.f_lng}'`
54
- let http = new HttpResetClass()
55
- let res = await http.load(
56
- 'POST',
57
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyType`,
58
- {data: data},
59
- {
60
- resolveMsg: null,
61
- rejectMsg: '报建类型查询失败!!!'
62
- })
63
- if(res.data.length > 0){
64
- this.active = 1
65
- }
66
- },
67
- async getApplyTaskDot () {
68
- this.tasknumber = 0
69
- let http = new HttpResetClass()
70
- let data = {
71
- defname: this.defname,
72
- userid: Vue.user.id
73
- }
74
- let res = await http.load(
75
- 'POST',
76
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
77
- {data: data},
78
- {
79
- resolveMsg: null,
80
- rejectMsg: '任务点获取失败!!!'
81
- })
82
- this.labelmarksarray = res.data.map(item => {
83
- this.tasknumber += item.count
84
- return {
85
- data: {
86
- data: item,
87
- content: `<p>任务数:${item.count}</p>`
88
- },
89
- position: [item.f_lng, item.f_lat],
90
- isclearmarker: false,
91
- islabel: false
92
- }
93
- })
94
- }
95
- },
96
- events: {
97
- 'refreshDot' () {
98
- this.getApplyTaskDot()
99
- }
100
- },
101
- watch: {
102
- },
103
- computed: {
104
- }
105
- }
106
- </script>
107
- <style scoped>
108
- .tip{
109
- position: absolute;
110
- z-index: 1000;
111
- color: red;
112
- font-size: 24px;
113
- right: 30px;
114
- padding-top: 20px;
115
- }
116
- </style>
117
- <style lang="less">
118
- .nav-apply-tab3 {
119
- li {
120
- width: 33%;
121
- text-align: center;
122
- }
123
- }
124
- </style>
1
+ <template>
2
+ <div>
3
+ <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab" :active.sync="active">
4
+ <tab header='任务地图'>
5
+ <div class="auto tip">
6
+ <p>当前任务数量:{{ tasknumber }}</p>
7
+ <p>当前任务点:{{labelmarksarray.length}}</p>
8
+ </div>
9
+ <app-map-location
10
+ :islocation="true"
11
+ :locationzoomcenter="false"
12
+ :usenative="true"
13
+ :isshowsearch="false"
14
+ :mylocationinfo="false"
15
+ :islocationclearmark="false"
16
+ :isshowmapmodel="false"
17
+ :locationwindow="false"
18
+ mapmodel="dragMarker"
19
+ :labelmarksarray="labelmarksarray"
20
+ @diyspotmouseclick="diyspotmouseclick"
21
+ ></app-map-location>
22
+ </tab>
23
+ <tab header='任务列表'>
24
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng"></app-exploration-user>
25
+ </tab>
26
+ </tabset>
27
+ </div>
28
+ </template>
29
+ <script>
30
+ import {HttpResetClass, PagedList} from 'vue-client'
31
+ import Vue from 'vue'
32
+
33
+ export default {
34
+ title: '维修派单',
35
+ data () {
36
+ return {
37
+ labelmarksarray: [],
38
+ tasknumber: 0,
39
+ active: 0,
40
+ f_lat: null,
41
+ f_lng: null,
42
+ defname: '维修派单'
43
+ }
44
+ },
45
+ ready () {
46
+ this.getApplyTaskDot()
47
+ },
48
+ methods: {
49
+ async diyspotmouseclick(data) {
50
+ this.f_lat = data.f_lat
51
+ this.f_lng = data.f_lng
52
+
53
+ data.condition = `f_lat = '${data.f_lat}' and f_lng = '${data.f_lng}'`
54
+ let http = new HttpResetClass()
55
+ let res = await http.load(
56
+ 'POST',
57
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyType`,
58
+ {data: data},
59
+ {
60
+ resolveMsg: null,
61
+ rejectMsg: '报建类型查询失败!!!'
62
+ })
63
+ if(res.data.length > 0){
64
+ this.active = 1
65
+ }
66
+ },
67
+ async getApplyTaskDot () {
68
+ this.tasknumber = 0
69
+ let http = new HttpResetClass()
70
+ let data = {
71
+ defname: this.defname,
72
+ userid: Vue.user.id
73
+ }
74
+ let res = await http.load(
75
+ 'POST',
76
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
77
+ {data: data},
78
+ {
79
+ resolveMsg: null,
80
+ rejectMsg: '任务点获取失败!!!'
81
+ })
82
+ this.labelmarksarray = res.data.map(item => {
83
+ this.tasknumber += item.count
84
+ return {
85
+ data: {
86
+ data: item,
87
+ content: `<p>任务数:${item.count}</p>`
88
+ },
89
+ position: [item.f_lng, item.f_lat],
90
+ isclearmarker: false,
91
+ islabel: false
92
+ }
93
+ })
94
+ }
95
+ },
96
+ events: {
97
+ 'refreshDot' () {
98
+ this.getApplyTaskDot()
99
+ }
100
+ },
101
+ watch: {
102
+ },
103
+ computed: {
104
+ }
105
+ }
106
+ </script>
107
+ <style scoped>
108
+ .tip{
109
+ position: absolute;
110
+ z-index: 1000;
111
+ color: red;
112
+ font-size: 24px;
113
+ right: 30px;
114
+ padding-top: 20px;
115
+ }
116
+ </style>
117
+ <style lang="less">
118
+ .nav-apply-tab3 {
119
+ li {
120
+ width: 33%;
121
+ text-align: center;
122
+ }
123
+ }
124
+ </style>
@@ -1,141 +1,141 @@
1
- <template>
2
- <div>
3
- <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab3" :active.sync="active">
4
- <tab header='地图'>
5
- <div class="auto tip">
6
- <p>当前任务数量:{{ tasknumber }}</p>
7
- <p>当前任务点:{{labelmarksarray.length}}</p>
8
- </div>
9
- <amap-location
10
- :islocation="true"
11
- :locationzoomcenter="false"
12
- :usenative="true"
13
- :isshowsearch="false"
14
- :mylocationinfo="false"
15
- :islocationclearmark="false"
16
- :isshowmapmodel="false"
17
- :locationwindow="false"
18
- mapmodel="dragMarker"
19
- :labelmarksarray="labelmarksarray"
20
- @diyspotmouseclick="diyspotmouseclick"
21
- ></amap-location>
22
- </tab>
23
- <tab header='民用'>
24
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'民用报建'" ></app-exploration-user>
25
- </tab>
26
- <tab header='非民用'>
27
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'非民用报建'" ></app-exploration-user>
28
- </tab>
29
- <tab header='增加'>
30
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'设备变更'" ></app-exploration-user>
31
- </tab>
32
- <tab header='改线'>
33
- <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'改线业务'" ></app-exploration-user>
34
- </tab>
35
- </tabset>
36
- </div>
37
- </template>
38
- <script>
39
- import {HttpResetClass, PagedList} from 'vue-client'
40
- import Vue from 'vue'
41
-
42
- export default {
43
- title: '现场勘察',
44
- data () {
45
- return {
46
- labelmarksarray: [],
47
- tasknumber: 0,
48
- active: 0,
49
- f_lat: null,
50
- f_lng: null,
51
- defname: '现场勘察'
52
- }
53
- },
54
- ready () {
55
- this.getApplyTaskDot()
56
- },
57
- methods: {
58
- async diyspotmouseclick(data) {
59
- this.f_lat = data.f_lat
60
- this.f_lng = data.f_lng
61
-
62
- data.condition = `f_lat = '${data.f_lat}' and f_lng = '${data.f_lng}'`
63
- let http = new HttpResetClass()
64
- let res = await http.load(
65
- 'POST',
66
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyType`,
67
- {data: data},
68
- {
69
- resolveMsg: null,
70
- rejectMsg: '报建类型查询失败!!!'
71
- })
72
- if(res.data.length > 0){
73
- if (res.data[0].f_apply_type === '民用报建') {
74
- this.active = 1
75
- } else if (res.data[0].f_apply_type === '非民用报建') {
76
- this.active = 2
77
- }else if (res.data[0].f_apply_type === '设备变更') {
78
- this.active = 3
79
- }else if (res.data[0].f_apply_type === '改线业务') {
80
- this.active = 4
81
- }
82
- }
83
- },
84
- async getApplyTaskDot () {
85
- this.tasknumber = 0
86
- let http = new HttpResetClass()
87
- let data = {
88
- defname: this.defname,
89
- userid: Vue.user.id
90
- }
91
- let res = await http.load(
92
- 'POST',
93
- `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
94
- {data: data},
95
- {
96
- resolveMsg: null,
97
- rejectMsg: '任务点获取失败!!!'
98
- })
99
- this.labelmarksarray = res.data.map(item => {
100
- this.tasknumber += item.count
101
- return {
102
- data: {
103
- data: item,
104
- content: `<p>任务数:${item.count}</p>`
105
- },
106
- position: [item.f_lng, item.f_lat],
107
- isclearmarker: false,
108
- islabel: false
109
- }
110
- })
111
- }
112
- },
113
- events: {
114
- 'refreshDot' () {
115
- this.getApplyTaskDot()
116
- }
117
- },
118
- watch: {
119
- },
120
- computed: {
121
- }
122
- }
123
- </script>
124
- <style scoped>
125
- .tip{
126
- position: absolute;
127
- z-index: 1000;
128
- color: red;
129
- font-size: 24px;
130
- right: 30px;
131
- padding-top: 20px;
132
- }
133
- </style>
134
- <style lang="less">
135
- .nav-apply-tab3 {
136
- li {
137
- width: 20%;
138
- text-align: center;
139
- }
140
- }
141
- </style>
1
+ <template>
2
+ <div>
3
+ <tabset v-ref:tabs :close="false" nav-style="tabs nav-apply-tab3" :active.sync="active">
4
+ <tab header='地图'>
5
+ <div class="auto tip">
6
+ <p>当前任务数量:{{ tasknumber }}</p>
7
+ <p>当前任务点:{{labelmarksarray.length}}</p>
8
+ </div>
9
+ <app-map-location
10
+ :islocation="true"
11
+ :locationzoomcenter="false"
12
+ :usenative="true"
13
+ :isshowsearch="false"
14
+ :mylocationinfo="false"
15
+ :islocationclearmark="false"
16
+ :isshowmapmodel="false"
17
+ :locationwindow="false"
18
+ mapmodel="dragMarker"
19
+ :labelmarksarray="labelmarksarray"
20
+ @diyspotmouseclick="diyspotmouseclick"
21
+ ></app-map-location>
22
+ </tab>
23
+ <tab header='民用'>
24
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'民用报建'" ></app-exploration-user>
25
+ </tab>
26
+ <tab header='非民用'>
27
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'非民用报建'" ></app-exploration-user>
28
+ </tab>
29
+ <tab header='增加'>
30
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'设备变更'" ></app-exploration-user>
31
+ </tab>
32
+ <tab header='改线'>
33
+ <app-exploration-user v-ref:exploration :defname="defname" :f_lat="f_lat" :f_lng="f_lng" :usertype ="'改线业务'" ></app-exploration-user>
34
+ </tab>
35
+ </tabset>
36
+ </div>
37
+ </template>
38
+ <script>
39
+ import {HttpResetClass, PagedList} from 'vue-client'
40
+ import Vue from 'vue'
41
+
42
+ export default {
43
+ title: '现场勘察',
44
+ data () {
45
+ return {
46
+ labelmarksarray: [],
47
+ tasknumber: 0,
48
+ active: 0,
49
+ f_lat: null,
50
+ f_lng: null,
51
+ defname: '现场勘察'
52
+ }
53
+ },
54
+ ready () {
55
+ this.getApplyTaskDot()
56
+ },
57
+ methods: {
58
+ async diyspotmouseclick(data) {
59
+ this.f_lat = data.f_lat
60
+ this.f_lng = data.f_lng
61
+
62
+ data.condition = `f_lat = '${data.f_lat}' and f_lng = '${data.f_lng}'`
63
+ let http = new HttpResetClass()
64
+ let res = await http.load(
65
+ 'POST',
66
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyType`,
67
+ {data: data},
68
+ {
69
+ resolveMsg: null,
70
+ rejectMsg: '报建类型查询失败!!!'
71
+ })
72
+ if(res.data.length > 0){
73
+ if (res.data[0].f_apply_type === '民用报建') {
74
+ this.active = 1
75
+ } else if (res.data[0].f_apply_type === '非民用报建') {
76
+ this.active = 2
77
+ }else if (res.data[0].f_apply_type === '设备变更') {
78
+ this.active = 3
79
+ }else if (res.data[0].f_apply_type === '改线业务') {
80
+ this.active = 4
81
+ }
82
+ }
83
+ },
84
+ async getApplyTaskDot () {
85
+ this.tasknumber = 0
86
+ let http = new HttpResetClass()
87
+ let data = {
88
+ defname: this.defname,
89
+ userid: Vue.user.id
90
+ }
91
+ let res = await http.load(
92
+ 'POST',
93
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyTaskDot`,
94
+ {data: data},
95
+ {
96
+ resolveMsg: null,
97
+ rejectMsg: '任务点获取失败!!!'
98
+ })
99
+ this.labelmarksarray = res.data.map(item => {
100
+ this.tasknumber += item.count
101
+ return {
102
+ data: {
103
+ data: item,
104
+ content: `<p>任务数:${item.count}</p>`
105
+ },
106
+ position: [item.f_lng, item.f_lat],
107
+ isclearmarker: false,
108
+ islabel: false
109
+ }
110
+ })
111
+ }
112
+ },
113
+ events: {
114
+ 'refreshDot' () {
115
+ this.getApplyTaskDot()
116
+ }
117
+ },
118
+ watch: {
119
+ },
120
+ computed: {
121
+ }
122
+ }
123
+ </script>
124
+ <style scoped>
125
+ .tip{
126
+ position: absolute;
127
+ z-index: 1000;
128
+ color: red;
129
+ font-size: 24px;
130
+ right: 30px;
131
+ padding-top: 20px;
132
+ }
133
+ </style>
134
+ <style lang="less">
135
+ .nav-apply-tab3 {
136
+ li {
137
+ width: 20%;
138
+ text-align: center;
139
+ }
140
+ }
141
+ </style>