apply-clients 3.4.3 → 3.4.4

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.
Files changed (79) hide show
  1. package/package.json +1 -1
  2. package/src/AndroidApp.vue +18 -18
  3. package/src/android.js +1 -1
  4. package/src/apply.js +39 -20
  5. package/src/applyAndroid.js +23 -9
  6. package/src/components/android/AppOnetomany.vue +47 -5
  7. package/src/components/android/AppServiceView.vue +745 -566
  8. package/src/components/android/AppSign.vue +154 -142
  9. package/src/components/android/AppTakePic.vue +11 -11
  10. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  11. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  12. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  13. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  14. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  15. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  16. package/src/components/android/Process/AppExplorationUser.vue +217 -37
  17. package/src/components/android/Process/AppServiceControl.vue +1708 -757
  18. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  19. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  20. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  21. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
  22. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -456
  23. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  24. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  25. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  26. package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
  27. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -121
  28. package/src/components/common/TabButton.vue +149 -0
  29. package/src/components/common/Tabs.vue +67 -0
  30. package/src/components/image/dwg.jpg +0 -0
  31. package/src/components/image/txt.jpg +0 -0
  32. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  33. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  34. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  35. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  36. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  37. package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
  38. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  39. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  40. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  41. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  42. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  43. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  44. package/src/components/product/Function/InstallFunction.vue +3 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +41 -21
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +96 -71
  47. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  48. package/src/components/product/Install/InstallProject.vue +194 -0
  49. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  50. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  51. package/src/components/product/OldApply/OldApply.vue +209 -0
  52. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  53. package/src/components/product/Onetomany.vue +40 -11
  54. package/src/components/product/Process/ExplorationSelect.vue +495 -417
  55. package/src/components/product/Process/ExplorationUser.vue +145 -94
  56. package/src/components/product/Process/Processes/InstallationDetails.vue +610 -592
  57. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -142
  58. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  59. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  60. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
  61. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +4 -0
  62. package/src/components/product/Process/Processes/chargeManagement.vue +656 -638
  63. package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
  64. package/src/components/product/Process/Processes/selectApply.vue +2 -2
  65. package/src/components/product/Process/Service/ServiceControl.vue +628 -10
  66. package/src/components/product/Process/ShowBackReason.vue +33 -0
  67. package/src/components/product/ServiceView.vue +981 -631
  68. package/src/components/product/Stop/StopApply.vue +26 -30
  69. package/src/components/product/Stop/StopApplyList.vue +27 -25
  70. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +732 -34
  71. package/src/components/product/Supervisory/SupervisoryControl.vue +38 -1
  72. package/src/components/product/Supervisory/SupervisoryList.vue +404 -233
  73. package/src/components/product/Supervisory/SupervisoryhCart.vue +51 -28
  74. package/src/components/product/VueUtils/ApplyUpload.vue +40 -38
  75. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  76. package/src/components/product/VueUtils/ToolsPage.vue +51 -0
  77. package/src/components/product/VueUtils/Tree.vue +330 -0
  78. package/src/expandcssAndroid.less +362 -879
  79. package/src/main.js +3 -0
@@ -1,142 +1,154 @@
1
- <template>
2
- <div class="panel">
3
- <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
- <div class="row form-group" style="height: 240px;overflow: scroll;">
5
- <img :src="f_sign_path" width="100%" height="100%" />
6
- </div>
7
- <div class="row text-right form-group">
8
- <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean" v-if="isclean">清除</button>
9
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign" v-if="issign">签名</button>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
- <script>
15
- import {getNowDate, guid, isEmpty} from '../Util'
16
- import {PagedList} from 'vue-client'
17
- import {HttpResetClass} from 'vue-client'
18
- import QRCode from 'qrcodejs2'
19
- import Vue from "vue";
20
-
21
- export default {
22
- title: '签字',
23
- props: ['filePath', 'isclean', 'issign'],
24
- data () {
25
- return {
26
- f_sign_path: null,
27
- fileName: null
28
- }
29
- },
30
- ready () {
31
- this.f_sign_path = this.filePath
32
- },
33
- methods: {
34
- clean () {
35
- this.f_sign_path = null
36
- this.fileName = null
37
- this.$emit('sign-clean')
38
- },
39
- sign () {
40
- this.delAudioFile(this.f_sign_path)
41
- this.fileName = guid() + '.jpg'
42
- HostApp.__callback__ = this.signCallback
43
- HostApp.__this__ = this
44
- HostApp.getSignature({
45
- file: this.fileName,
46
- requestCode: 111,
47
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
48
- })
49
- },
50
- // 签名回调
51
- signCallback (prop, signPath) {
52
- console.log('==============签字回调============')
53
- console.log(signPath)
54
- HostApp.__this__.$set(prop, signPath)
55
- console.log(HostApp.__this__.f_sign_path)
56
-
57
- HostApp.__this__.uploadFile()
58
-
59
- HostApp.__callback__ = null
60
- HostApp.__this__ = null
61
- },
62
- uploadFile () {
63
- console.log('===================签字文件上传==============')
64
- let data = {
65
- username: Vue.user.name,
66
- fremarks: '报装手机签字文件',
67
- fileName: HostApp.__this__.fileName,
68
- fileUrl: HostApp.__this__.f_sign_path
69
- }
70
-
71
- console.log('-----------bzLogic-----------------')
72
- console.log(JSON.stringify(data))
73
- let res = HostApp.bzLogic({
74
- 'logic': 'appFileUpload',
75
- 'data': data
76
- })
77
- console.log('===============上传回调=================')
78
- console.log(JSON.stringify(res))
79
- HostApp.__this__.getFiles(res.id)
80
- },
81
- async getFiles (fileid) {
82
- let http = new HttpResetClass()
83
-
84
- let data = {
85
- tablename: 't_files',
86
- condition: `id = '${fileid}'`
87
- }
88
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
89
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
90
- warnMsg: null,
91
- resolveMsg: null
92
- })
93
-
94
- console.log('=========查询回调===============')
95
- let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
96
- console.log(fileUrl)
97
- // HostApp.__this__.$set('f_sign_path', fileUrl)
98
- // HostApp.__this__.f_sign_path = fileUrl
99
- this.f_sign_path = fileUrl
100
-
101
- this.$emit('sign-success', fileUrl)
102
- },
103
- delAudioFile (signPath) {
104
- if (!signPath) {
105
- return
106
- }
107
- HostApp.delfile(signPath)
108
- this.f_sign_path = null
109
- this.fileName = null
110
- }
111
- },
112
- events: {
113
- },
114
- computed: {
115
- },
116
- watch: {
117
- }
118
- }
119
- </script>
120
- <style scoped lang="less">
121
- .qrcode {
122
- display: inline-block !important;
123
- margin: 10px 0px;
124
- }
125
- .panel-self{
126
- border-radius: 10px;
127
- border:1px solid #499EDF;
128
- background-color: #F8F8F8;
129
- }
130
- .vertical-center {
131
- display: flex;
132
- align-items: center;
133
- text-align: center;
134
- }
135
- /*清除model中的浮动*/
136
- .clearfix:after,.clearfix:before{
137
- display: table;
138
- }
139
- .clearfix:after{
140
- clear: both;
141
- }
142
- </style>
1
+ <template>
2
+ <div class="panel">
3
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
+ <div class="row form-group" style="height: 240px;overflow: scroll;">
5
+ <img :src="f_sign_path" width="100%" height="100%" />
6
+ </div>
7
+ <div class="row text-right form-group">
8
+ <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
9
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import {getNowDate, guid, isEmpty} from '../Util'
16
+ import {PagedList} from 'vue-client'
17
+ import {HttpResetClass} from 'vue-client'
18
+ import QRCode from 'qrcodejs2'
19
+ import Vue from "vue";
20
+
21
+ export default {
22
+ title: '签字',
23
+ props: ['filePath','blobid','type', 'defname'],
24
+ data () {
25
+ return {
26
+ f_sign_path: null,
27
+ fileName: null
28
+ }
29
+ },
30
+ ready () {
31
+ console.log('在ready里打印一下this.filePath',this.filePath)
32
+ this.f_sign_path = this.filePath
33
+ console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
34
+ // this.getFiles()
35
+ },
36
+ methods: {
37
+ clean () {
38
+ this.f_sign_path = null
39
+ this.fileName = null
40
+ this.$emit('sign-clean')
41
+ },
42
+ sign () {
43
+ debugger
44
+ this.type='手机签字'
45
+ console.log('==============签字打印this============',this)
46
+ this.delAudioFile(this.f_sign_path)
47
+ this.fileName = guid() + '.jpg'
48
+ HostApp.__callback__ = this.signCallback
49
+ HostApp.__this__ = this
50
+ HostApp.getSignature({
51
+ file: this.fileName,
52
+ requestCode: 111,
53
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
54
+ })
55
+ },
56
+ // 签名回调
57
+ signCallback (prop, signPath) {
58
+ console.log('==============签字回调============')
59
+ console.log(signPath)
60
+ HostApp.__this__.$set(prop, signPath)
61
+ console.log(HostApp.__this__.f_sign_path)
62
+
63
+ HostApp.__this__.uploadFile()
64
+
65
+ HostApp.__callback__ = null
66
+ HostApp.__this__ = null
67
+ },
68
+ uploadFile () {
69
+ console.log('===================签字文件上传==============')
70
+ console.log('===================打印id==============',HostApp.__this__.blobid)
71
+ let data = {
72
+ defname:HostApp.__this__.defname,
73
+ type:HostApp.__this__.type,
74
+ blodid: HostApp.__this__.blobid,
75
+ username: Vue.user.name,
76
+ fremarks: '报装手机签字文件',
77
+ fileName: HostApp.__this__.fileName,
78
+ fileUrl: HostApp.__this__.f_sign_path
79
+ }
80
+
81
+ console.log('-----------bzLogic-----------------')
82
+ console.log(JSON.stringify(data))
83
+ let res = HostApp.bzLogic({
84
+ 'logic': 'appFileUpload',
85
+ 'data': data
86
+ })
87
+ console.log('===============上传回调=================')
88
+ console.log(JSON.stringify(res))
89
+ HostApp.__this__.getFiles(res.id)
90
+ },
91
+ async getFiles (fileid) {
92
+ debugger
93
+ console.log('=========进来===============')
94
+ let http = new HttpResetClass()
95
+ console.log('=========进来===============')
96
+ let data = {
97
+ tablename: 't_files',
98
+ condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' `
99
+ }
100
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
101
+ // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
102
+ warnMsg: null,
103
+ resolveMsg: null
104
+ })
105
+
106
+ console.log('=========查询回调===============')
107
+ let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
108
+ console.log(fileUrl)
109
+ // HostApp.__this__.$set('f_sign_path', fileUrl)
110
+ // HostApp.__this__.f_sign_path = fileUrl
111
+ this.f_sign_path = fileUrl
112
+
113
+ this.$emit('sign-success', fileUrl)
114
+ },
115
+ delAudioFile (signPath) {
116
+ if (!signPath) {
117
+ return
118
+ }
119
+ HostApp.delfile(signPath)
120
+ this.f_sign_path = null
121
+ this.fileName = null
122
+ }
123
+ },
124
+ events: {
125
+ },
126
+ computed: {
127
+ },
128
+ watch: {
129
+ }
130
+ }
131
+ </script>
132
+ <style scoped lang="less">
133
+ .qrcode {
134
+ display: inline-block !important;
135
+ margin: 10px 0px;
136
+ }
137
+ .panel-self{
138
+ border-radius: 10px;
139
+ border:1px solid #499EDF;
140
+ background-color: #F8F8F8;
141
+ }
142
+ .vertical-center {
143
+ display: flex;
144
+ align-items: center;
145
+ text-align: center;
146
+ }
147
+ /*清除model中的浮动*/
148
+ .clearfix:after,.clearfix:before{
149
+ display: table;
150
+ }
151
+ .clearfix:after{
152
+ clear: both;
153
+ }
154
+ </style>
@@ -52,7 +52,7 @@ export default {
52
52
  condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
53
53
  }
54
54
  let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
55
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
55
+ // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
56
56
  warnMsg: null,
57
57
  resolveMsg: null
58
58
  })
@@ -129,15 +129,15 @@ export default {
129
129
  </script>
130
130
 
131
131
  <style lang="less">
132
- .fileType {
133
- float: left;
134
- .select-style {
135
- background: #f8f8f8;
136
- border: 0px;
137
- }
138
- input {
139
- border-left: none;
140
- width: 100%;
132
+ .fileType {
133
+ float: left;
134
+ .select-style {
135
+ background: #f8f8f8;
136
+ border: 0px;
137
+ }
138
+ input {
139
+ border-left: none;
140
+ width: 100%;
141
+ }
141
142
  }
142
- }
143
143
  </style>
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <div>
3
+ <button v-show="isshow" type="button" name="button" class="btn btn-primary" @click="scan()" >开始扫码</button>
4
+ <!--<div>这是扫码结果:{{ results }}</div>-->
5
+ <!--<div>这是错误信息:{{ errors }}</div>-->
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+
11
+ export default {
12
+ title: "AppQrcodeReader",
13
+ props: {
14
+ istype: {
15
+ type: Object,
16
+ default: {}
17
+ },
18
+ index: "",
19
+ },
20
+ data() {
21
+ return {
22
+ results: "",
23
+ errors: "",
24
+ isshow:true
25
+ }
26
+ },
27
+ methods: {
28
+ async downScan() {
29
+
30
+ },
31
+ scan() {
32
+ HostApp.__this__ = this
33
+ // if (this.istype.f_material_name === '报警器-汉威'){
34
+ // HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
35
+ // } else {}
36
+ HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
37
+ },
38
+ scanCallbackHanWei() {
39
+ console.log("这是扫码输出:",this.index)
40
+ this.results = ""
41
+
42
+ let response = HostApp.getPhoneCode()
43
+ if (response.code == 200) {
44
+ let aray = response.data.split(",")
45
+ if (aray.length > 0){
46
+ for (let i = 0; i < aray.length; i++) {
47
+ let tem = (aray[i]).split("=")
48
+ if (tem[0] === "ID"){
49
+ this.results = tem[1].trim().replaceAll("'","").trim()
50
+ this.$parent.$parent.materials[this.index].f_bjq_sid = this.results
51
+ break;
52
+ }
53
+ }
54
+ }
55
+ } else {
56
+ this.$showMessage('无法识别该条形码/二维码,请调整手机聚焦重试。')
57
+ }
58
+ }
59
+ },
60
+ watch: {
61
+ // 'istype'(){
62
+ // // console.log("这是监听值:",this.istype)
63
+ // if (this.istype){
64
+ // if (this.istype.f_material_name === '报警器-汉威'){
65
+ // this.isshow = true
66
+ // } else {
67
+ // this.isshow = false
68
+ // }
69
+ // }
70
+ // },
71
+ }
72
+ }
73
+ </script>
@@ -0,0 +1,148 @@
1
+ <template>
2
+
3
+ <list :model="model" partial='list'>
4
+ <div partial class="auto app-text panel">
5
+ <div class="panel-body panel-self">
6
+ <div class="row">
7
+ <p class="col-xs-3 text-left font"><b>经&emsp;&emsp;度</b></p>
8
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_bjq_lng }}</p>
9
+ </div>
10
+ <div class="row">
11
+ <p class="col-xs-3 text-left font"><b>纬&emsp;&emsp;度</b></p>
12
+ <p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_bjq_lat }}</p>
13
+ </div>
14
+
15
+
16
+ </div>
17
+ </div>
18
+ </list>
19
+
20
+ <div class="row text-right">
21
+ <button
22
+ type="button"
23
+ class="btn btn-info"
24
+ @click="openModalApp()"
25
+ >
26
+ 选择定位
27
+ </button>
28
+ </div>
29
+ <modal :show.sync="mapShowApp" v-if="mapShowApp" v-ref:modal :large="true" :backdrop="fals e" title="设置坐标" width="95%" >
30
+ <header slot="modal-header" class="modal-header">
31
+ </header>
32
+ <article slot="modal-body" class="modal-body" >
33
+ <amap-location :islocationclearmark="false":usenative="true" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>
34
+ <!-- <app-onetomanymap :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></app-onetomanymap>-->
35
+ </article>
36
+ <footer slot="modal-footer" class="modal-footer">
37
+ <button v-show="mapShowApp" type="button" class="btn btn-primary" @click='closeModalApp'>取消</button>
38
+ <button v-show="mapShowApp" type="button" class="btn btn-primary" @click='confirmLocation'>确认</button>
39
+ </footer>
40
+ </modal>
41
+ </template>
42
+ <script>
43
+
44
+ import { HttpResetClass } from 'vue-client'
45
+ import Vue from "vue";
46
+ export default {
47
+ title: '地图定位',
48
+ props: {
49
+ selectdata: {
50
+ type: Object
51
+ },
52
+ mark: {
53
+ type: Number,
54
+ default: 0
55
+ }
56
+ },
57
+ data () {
58
+ return {
59
+ model: {
60
+ rows: null
61
+ },
62
+ templng: '', // 临时经度
63
+ templat: '', // 临时纬度
64
+ userfile: null,
65
+ mapShowApp: false
66
+ }
67
+ },
68
+ ready () {
69
+ this.search()
70
+ },
71
+ methods:{
72
+ //地图调试
73
+ openModalApp () {
74
+ this.mapShowApp = true
75
+ },
76
+ closeModalApp () {
77
+ this.mapShowApp = false
78
+ },
79
+ getmylocation (res) {
80
+ this.templng = res.position.lng
81
+ this.templat = res.position.lat
82
+ },
83
+ async confirmLocation() {
84
+ //转换坐标
85
+ let datamap = {
86
+ lnglat: this.templng+','+this.templat
87
+
88
+ }
89
+
90
+ let resmap = await this.$resetpost(
91
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/gdMapTransBMap`,
92
+ // `/rs/logic/gdMapTransBMap`,
93
+ datamap
94
+ )
95
+ //存储坐标
96
+ let data = {
97
+ f_bjq_gaode_lat: this.templat,
98
+ f_bjq_gaode_lng: this.templng,
99
+ f_bjq_baidu_lng: resmap.data.result[0].x,
100
+ f_bjq_baidu_lat: resmap.data.result[0].y,
101
+ selectdata: this.selectdata,
102
+ userfile: this.userfile
103
+
104
+ }
105
+ // console.log("====3333")
106
+ // console.log(data)
107
+ let res = await this.$resetpost(
108
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/applyBjqMap`,
109
+ {data: data},
110
+ {resolveMsg: null, rejectMsg: '坐标添加失败!!!'}
111
+ )
112
+
113
+ this.mapShowApp = false
114
+
115
+ this.$dispatch('breakControl')
116
+ },
117
+ async search () {
118
+ let http = new HttpResetClass()
119
+ let data = {
120
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
121
+ }
122
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getapplyBjqMap`, {data:data}, {
123
+ resolveMsg: null,
124
+ rejectMsg: '获取坐标失败!!!'
125
+ })
126
+ // console.log('=================================')
127
+ //
128
+ // console.log(res.data)
129
+
130
+ if (res.data == ""){
131
+ this.$showMessage('请正确添加报警器设备后再设置坐标!')
132
+ }
133
+
134
+ this.model.rows = res.data
135
+ this.$parent.$parent.$parent.areaData.mapvalue = res.data
136
+ this.$parent.$parent.$parent.disableButton()
137
+ },
138
+ },
139
+ watch: {
140
+
141
+ }
142
+ }
143
+ </script>
144
+ <style lang="less">
145
+ #addboxmap {
146
+ height: 300px;
147
+ }
148
+ </style>
@@ -0,0 +1,108 @@
1
+ <template>
2
+ <!--<v-select :options='options' placeholder='请选择'-->
3
+ <!-- :value.sync="selectres"-->
4
+ <!-- :multiple="isMul"-->
5
+ <!-- :search="issearch"-->
6
+ <!-- :close-on-select="!isMul"-->
7
+ <!-- @change="resChange"-->
8
+ <!-- :value-single="true"-->
9
+ <!--&gt;-->
10
+ <!--</v-select>-->
11
+ <area-select :options='options' placeholder='请选择'
12
+ :value.sync="selectres"
13
+ :multiple="!isMul"
14
+ :search="issearch"
15
+ :close-on-select="isMul"
16
+ @change="resChange"
17
+ :value-single="true"
18
+ >
19
+ </area-select>
20
+ </template>
21
+ <script>
22
+ import {HttpResetClass} from 'vue-client'
23
+
24
+ export default {
25
+ title: '资源管理',
26
+ props: {
27
+
28
+ //资源类型
29
+ restype:'',
30
+ //资源数据
31
+ resObj:{},
32
+ options:[],
33
+ isMul: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ issearch: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ //资源初始化数据 默认选中值
42
+ initresid: {
43
+ type: Array,
44
+ default() { return [] },
45
+ },
46
+ //父层id
47
+ parentresid: {
48
+ type: Array,
49
+ default() { return [] },
50
+ },
51
+ },
52
+ data () {
53
+ return {
54
+ //资源数据
55
+ resObj:{},
56
+ //资源数据列表
57
+ resoptions:[],
58
+ //选中资源数据
59
+ selectres: [],
60
+ }
61
+ },
62
+ ready () {
63
+ //获取资源列表
64
+ this.getResList()
65
+ },
66
+ methods:{
67
+ //资源改变
68
+ resChange(val){
69
+ let orgnames=[]
70
+ Object.keys(this.options).forEach((key) => {
71
+ if(this.selectres.includes(this.options[key].value))
72
+ orgnames.push(this.options[key].label)
73
+ })
74
+ // console.log("资源变化:",this.selectres, orgnames,this.options)
75
+ this.$dispatch('res-select', this.selectres, orgnames,this.options)
76
+ },
77
+ //获取资源数据
78
+ async getResList() {
79
+ this.dealdata()
80
+ },
81
+ dealdata(){
82
+ //赋值资源数据选中初始值
83
+ let arryselect=[]
84
+ this.options.forEach((item) => {
85
+ if(this.initresid.length>0){
86
+ this.initresid.forEach((init) => {
87
+ if(item.value==init){
88
+ arryselect.push(item.value)
89
+ }
90
+ })
91
+ }
92
+ })
93
+ //赋值资源选中初始值
94
+ this.selectres=arryselect
95
+ }
96
+ },
97
+ watch: {
98
+ //监听初始化资源id
99
+ 'initresid.length'(){
100
+ this.dealdata()
101
+ },
102
+ //监听初始化资源id
103
+ 'parentresid'(){
104
+ this.dealdata()
105
+ },
106
+ },
107
+ }
108
+ </script>