apply-clients 3.3.106 → 3.3.107
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/build/dev-server.js +2 -2
- package/package.json +1 -1
- package/src/apply.js +2 -0
- package/src/applyAndroid.js +42 -40
- package/src/components/android/AppServiceView.vue +2 -2
- package/src/components/android/AppSign.vue +0 -6
- package/src/components/android/AppTakePic.vue +143 -145
- package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +127 -0
- package/src/components/android/Process/AppServiceControl.vue +1426 -1417
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +1 -1
- package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
- package/src/components/product/Process/Service/ServiceControl.vue +1467 -1430
- package/src/components/product/ServiceView.vue +20 -1
- package/src/main.js +26 -26
package/build/dev-server.js
CHANGED
|
@@ -9,8 +9,8 @@ var compiler = webpack(config)
|
|
|
9
9
|
// var ldap = 'http://121.36.79.201:8400'
|
|
10
10
|
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
11
|
var ldap = 'http://192.168.20.28:8400'
|
|
12
|
-
var applyinstall = 'http://192.168.20.28:8400'
|
|
13
|
-
|
|
12
|
+
// var applyinstall = 'http://192.168.20.28:8400'
|
|
13
|
+
var applyinstall = 'http://127.0.0.1:8081'
|
|
14
14
|
var proxyTable = {
|
|
15
15
|
'/wx': {
|
|
16
16
|
target: ldap
|
package/package.json
CHANGED
package/src/apply.js
CHANGED
|
@@ -94,4 +94,6 @@ export default function () {
|
|
|
94
94
|
Vue.component('res-area-select', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelect'], resolve) })
|
|
95
95
|
Vue.component('res-area-select-group', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelectGroup'], resolve) })
|
|
96
96
|
Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
|
|
97
|
+
// 地图组件
|
|
98
|
+
Vue.component('gaode-map', (resolve) => { require(['./components/product/GaoDeMapComponents/GaoDeMap'], resolve) })
|
|
97
99
|
}
|
package/src/applyAndroid.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import { all } from 'vue-client'
|
|
3
|
-
Vue.config.silent = true
|
|
4
|
-
import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
|
|
5
|
-
import ApplyLoadParams from './stores/ApplyLoadParams'
|
|
6
|
-
/** ****************服务插件*********************/
|
|
7
|
-
|
|
8
|
-
export default function () {
|
|
9
|
-
Vue.use(ApplyGetSaleParam)
|
|
10
|
-
Vue.use(ApplyLoadParams)
|
|
11
|
-
/** ***************************报建模块*********************************/
|
|
12
|
-
// 报建 总入口
|
|
13
|
-
Vue.component('app-exploration-user', (resolve) => { require(['./components/android/Process/AppExplorationUser'], resolve) })
|
|
14
|
-
Vue.component('app-service-control', (resolve) => { require(['./components/android/Process/AppServiceControl'], resolve) })
|
|
15
|
-
Vue.component('app-process-supervisory', (resolve) => { require(['./components/android/Supervisory/AppProcessSupervisory'], resolve) })
|
|
16
|
-
Vue.component('app-supervisory-cart', (resolve) => { require(['./components/android/Supervisory/AppSupervisoryCart'], resolve) })
|
|
17
|
-
Vue.component('app-istall-function', (resolve) => { require(['./components/android/Function/AppInstallFunction'], resolve) })
|
|
18
|
-
Vue.component('app-function-service-control', (resolve) => { require(['./components/android/Function/AppFunctionServiceControl'], resolve) })
|
|
19
|
-
|
|
20
|
-
Vue.component('app-sign', (resolve) => { require(['./components/android/AppSign'], resolve) })
|
|
21
|
-
Vue.component('app-take-pic', (resolve) => { require(['./components/android/AppTakePic'], resolve) })
|
|
22
|
-
Vue.component('app-service-view', (resolve) => { require(['./components/android/AppServiceView'], resolve) })
|
|
23
|
-
Vue.component('app-onetomany', (resolve) => { require(['./components/android/AppOnetomany'], resolve) })
|
|
24
|
-
|
|
25
|
-
Vue.component('app-installation-details', (resolve) => { require(['./components/android/Process/Processes/AppInstallationDetails'], resolve) })
|
|
26
|
-
Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
|
|
27
|
-
Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
|
|
28
|
-
Vue.component('app-supplemental-agreement', (resolve) => { require(['./components/android/Process/Processes/AppSupplementalAgreement'], resolve) })
|
|
29
|
-
// 选择用户信息
|
|
30
|
-
Vue.component('select-userinfo', (resolve) => { require(['./components/android/Process/Processes/selectUserinfo'], resolve) })
|
|
31
|
-
// 选择报建项目
|
|
32
|
-
Vue.component('select-apply', (resolve) => { require(['./components/android/Process/Processes/selectApply'], resolve) })
|
|
33
|
-
Vue.component('app-build-sign', (resolve) => { require(['./components/android/Process/Processes/AppBuildSign'], resolve) })
|
|
34
|
-
|
|
35
|
-
// 区域 地址下拉框联动组件
|
|
36
|
-
Vue.component('app-res-area-select', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelect'], resolve) })
|
|
37
|
-
Vue.component('app-res-area-select-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelectGroup'], resolve) })
|
|
38
|
-
Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
|
|
39
|
-
Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
|
|
40
|
-
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import { all } from 'vue-client'
|
|
3
|
+
Vue.config.silent = true
|
|
4
|
+
import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
|
|
5
|
+
import ApplyLoadParams from './stores/ApplyLoadParams'
|
|
6
|
+
/** ****************服务插件*********************/
|
|
7
|
+
|
|
8
|
+
export default function () {
|
|
9
|
+
Vue.use(ApplyGetSaleParam)
|
|
10
|
+
Vue.use(ApplyLoadParams)
|
|
11
|
+
/** ***************************报建模块*********************************/
|
|
12
|
+
// 报建 总入口
|
|
13
|
+
Vue.component('app-exploration-user', (resolve) => { require(['./components/android/Process/AppExplorationUser'], resolve) })
|
|
14
|
+
Vue.component('app-service-control', (resolve) => { require(['./components/android/Process/AppServiceControl'], resolve) })
|
|
15
|
+
Vue.component('app-process-supervisory', (resolve) => { require(['./components/android/Supervisory/AppProcessSupervisory'], resolve) })
|
|
16
|
+
Vue.component('app-supervisory-cart', (resolve) => { require(['./components/android/Supervisory/AppSupervisoryCart'], resolve) })
|
|
17
|
+
Vue.component('app-istall-function', (resolve) => { require(['./components/android/Function/AppInstallFunction'], resolve) })
|
|
18
|
+
Vue.component('app-function-service-control', (resolve) => { require(['./components/android/Function/AppFunctionServiceControl'], resolve) })
|
|
19
|
+
|
|
20
|
+
Vue.component('app-sign', (resolve) => { require(['./components/android/AppSign'], resolve) })
|
|
21
|
+
Vue.component('app-take-pic', (resolve) => { require(['./components/android/AppTakePic'], resolve) })
|
|
22
|
+
Vue.component('app-service-view', (resolve) => { require(['./components/android/AppServiceView'], resolve) })
|
|
23
|
+
Vue.component('app-onetomany', (resolve) => { require(['./components/android/AppOnetomany'], resolve) })
|
|
24
|
+
|
|
25
|
+
Vue.component('app-installation-details', (resolve) => { require(['./components/android/Process/Processes/AppInstallationDetails'], resolve) })
|
|
26
|
+
Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
|
|
27
|
+
Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
|
|
28
|
+
Vue.component('app-supplemental-agreement', (resolve) => { require(['./components/android/Process/Processes/AppSupplementalAgreement'], resolve) })
|
|
29
|
+
// 选择用户信息
|
|
30
|
+
Vue.component('select-userinfo', (resolve) => { require(['./components/android/Process/Processes/selectUserinfo'], resolve) })
|
|
31
|
+
// 选择报建项目
|
|
32
|
+
Vue.component('select-apply', (resolve) => { require(['./components/android/Process/Processes/selectApply'], resolve) })
|
|
33
|
+
Vue.component('app-build-sign', (resolve) => { require(['./components/android/Process/Processes/AppBuildSign'], resolve) })
|
|
34
|
+
|
|
35
|
+
// 区域 地址下拉框联动组件
|
|
36
|
+
Vue.component('app-res-area-select', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelect'], resolve) })
|
|
37
|
+
Vue.component('app-res-area-select-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelectGroup'], resolve) })
|
|
38
|
+
Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
|
|
39
|
+
Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
|
|
40
|
+
//地图组件
|
|
41
|
+
Vue.component('app-res-area-map-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaMapGroup'], resolve) })
|
|
42
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="form-horizontal select-overspread">
|
|
3
3
|
<validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
|
|
4
|
-
|
|
4
|
+
<!--<form>-->
|
|
5
5
|
<div v-for="(index,item) in data.fields">
|
|
6
6
|
<!--input-->
|
|
7
7
|
<div :style="item.style ? item.style : ''"
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
</button>
|
|
321
321
|
</footer>
|
|
322
322
|
</modal>
|
|
323
|
-
|
|
323
|
+
<!--</form>-->
|
|
324
324
|
</div>
|
|
325
325
|
</template>
|
|
326
326
|
<script>
|
|
@@ -109,12 +109,6 @@ export default {
|
|
|
109
109
|
|
|
110
110
|
this.$emit('sign-success', fileUrl)
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
HostApp.__this__.getFiles()
|
|
114
|
-
console.log('----------------查询回调结束-------------------')
|
|
115
|
-
|
|
116
|
-
HostApp.__callback__ = null
|
|
117
|
-
HostApp.__this__ = null
|
|
118
112
|
},
|
|
119
113
|
delAudioFile (signPath) {
|
|
120
114
|
if (!signPath) {
|
|
@@ -1,145 +1,143 @@
|
|
|
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
|
-
<div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
|
|
6
|
-
<img-self :src="file.f_downloadURL" :width="120" :height="170"></img-self>
|
|
7
|
-
<img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="row text-right form-group" v-if="istakepic">
|
|
11
|
-
<v-select
|
|
12
|
-
class="fileType"
|
|
13
|
-
placeholder="请选择使用类型"
|
|
14
|
-
v-if="istype"
|
|
15
|
-
:search="false"
|
|
16
|
-
close-on-select
|
|
17
|
-
value-single
|
|
18
|
-
:options="typeList"
|
|
19
|
-
v-model="type"
|
|
20
|
-
:value.sync="type"
|
|
21
|
-
></v-select>
|
|
22
|
-
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script>
|
|
29
|
-
import {HttpResetClass} from 'vue-client'
|
|
30
|
-
import {guid, toStandardTimeString} from '../Util'
|
|
31
|
-
import Vue from 'vue'
|
|
32
|
-
export default {
|
|
33
|
-
title: '附件',
|
|
34
|
-
props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
|
|
35
|
-
data () {
|
|
36
|
-
return {
|
|
37
|
-
fileList: []
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
ready () {
|
|
41
|
-
this.getFiles()
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
async getFiles () {
|
|
45
|
-
console.log('----------------开始查询图片----------------')
|
|
46
|
-
this.fileList = []
|
|
47
|
-
|
|
48
|
-
let http = new HttpResetClass()
|
|
49
|
-
|
|
50
|
-
let data = {
|
|
51
|
-
tablename: 't_files',
|
|
52
|
-
condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
|
|
53
|
-
}
|
|
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}, {
|
|
56
|
-
warnMsg: null,
|
|
57
|
-
resolveMsg: null
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
for (var i = 0; i < res.data.length; i++) {
|
|
61
|
-
console.log('-----------地址----------------')
|
|
62
|
-
console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
|
|
63
|
-
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
this.fileList = res.data
|
|
67
|
-
},
|
|
68
|
-
delfile (file, index) {
|
|
69
|
-
this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
70
|
-
this.$dispatch("delResid", file.id)
|
|
71
|
-
this.getFiles()
|
|
72
|
-
})
|
|
73
|
-
},
|
|
74
|
-
takePic (title) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
console.log('
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
</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
|
+
<div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
|
|
6
|
+
<img-self :src="file.f_downloadURL" :width="120" :height="170"></img-self>
|
|
7
|
+
<img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="row text-right form-group" v-if="istakepic">
|
|
11
|
+
<v-select
|
|
12
|
+
class="fileType"
|
|
13
|
+
placeholder="请选择使用类型"
|
|
14
|
+
v-if="istype"
|
|
15
|
+
:search="false"
|
|
16
|
+
close-on-select
|
|
17
|
+
value-single
|
|
18
|
+
:options="typeList"
|
|
19
|
+
v-model="type"
|
|
20
|
+
:value.sync="type"
|
|
21
|
+
></v-select>
|
|
22
|
+
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import {HttpResetClass} from 'vue-client'
|
|
30
|
+
import {guid, toStandardTimeString} from '../Util'
|
|
31
|
+
import Vue from 'vue'
|
|
32
|
+
export default {
|
|
33
|
+
title: '附件',
|
|
34
|
+
props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
|
|
35
|
+
data () {
|
|
36
|
+
return {
|
|
37
|
+
fileList: []
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
ready () {
|
|
41
|
+
this.getFiles()
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
async getFiles () {
|
|
45
|
+
console.log('----------------开始查询图片----------------')
|
|
46
|
+
this.fileList = []
|
|
47
|
+
|
|
48
|
+
let http = new HttpResetClass()
|
|
49
|
+
|
|
50
|
+
let data = {
|
|
51
|
+
tablename: 't_files',
|
|
52
|
+
condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
|
|
53
|
+
}
|
|
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}, {
|
|
56
|
+
warnMsg: null,
|
|
57
|
+
resolveMsg: null
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
61
|
+
console.log('-----------地址----------------')
|
|
62
|
+
console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
|
|
63
|
+
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
this.fileList = res.data
|
|
67
|
+
},
|
|
68
|
+
delfile (file, index) {
|
|
69
|
+
this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
70
|
+
this.$dispatch("delResid", file.id)
|
|
71
|
+
this.getFiles()
|
|
72
|
+
})
|
|
73
|
+
},
|
|
74
|
+
takePic (title) {
|
|
75
|
+
// 拍照成功回调
|
|
76
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
77
|
+
HostApp.__this__ = this
|
|
78
|
+
let fileName = guid() + '.jpg'
|
|
79
|
+
// 打开相机
|
|
80
|
+
HostApp._open_a_page({
|
|
81
|
+
type: 'boomerang',
|
|
82
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
83
|
+
param: {
|
|
84
|
+
file: fileName,
|
|
85
|
+
requestCode: 200,
|
|
86
|
+
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
87
|
+
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
cameraCallBack (fileName, fileUrl) {
|
|
92
|
+
console.log('-----------cameraCallBack-----------------')
|
|
93
|
+
|
|
94
|
+
let data = {
|
|
95
|
+
blodid: HostApp.__this__.blobid,
|
|
96
|
+
type: HostApp.__this__.type,
|
|
97
|
+
defname: HostApp.__this__.defname,
|
|
98
|
+
username: Vue.user.name,
|
|
99
|
+
fremarks: '手机拍照',
|
|
100
|
+
fileName: fileName,
|
|
101
|
+
fileUrl: fileUrl
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
console.log('-----------bzLogic-----------------')
|
|
105
|
+
HostApp.bzLogic({
|
|
106
|
+
'logic': 'appFileUpload',
|
|
107
|
+
'data': data
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
console.log('----------------开始回调查询-------------------')
|
|
111
|
+
HostApp.__this__.getFiles()
|
|
112
|
+
console.log('----------------查询回调结束-------------------')
|
|
113
|
+
|
|
114
|
+
HostApp.__callback__ = null
|
|
115
|
+
HostApp.__this__ = null
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
computed: {
|
|
119
|
+
typeList () {
|
|
120
|
+
if (this.typelabel) {
|
|
121
|
+
return this.$appdata.getParam(this.typelabel)
|
|
122
|
+
}
|
|
123
|
+
return this.$appdata.getParam('使用类型')
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
events: {
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</script>
|
|
130
|
+
|
|
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%;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
@@ -0,0 +1,127 @@
|
|
|
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>经  度</b></p>
|
|
8
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_bjq_gaode_lng }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="row">
|
|
11
|
+
<p class="col-xs-3 text-left font"><b>纬  度</b></p>
|
|
12
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_bjq_gaode_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" 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
|
+
let data = {
|
|
85
|
+
f_bjq_gaode_lat: this.templat,
|
|
86
|
+
f_bjq_gaode_lng: this.templng,
|
|
87
|
+
selectdata: this.selectdata,
|
|
88
|
+
userfile: this.userfile
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
console.log(data)
|
|
92
|
+
let res = await this.$resetpost(
|
|
93
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/applyBjqMap`,
|
|
94
|
+
{data: data},
|
|
95
|
+
{resolveMsg: null, rejectMsg: '坐标添加失败!!!'}
|
|
96
|
+
)
|
|
97
|
+
this.mapShowApp = false
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
this.$dispatch('breakControl')
|
|
101
|
+
},
|
|
102
|
+
async search () {
|
|
103
|
+
let http = new HttpResetClass()
|
|
104
|
+
console.log('=================================')
|
|
105
|
+
let data = {
|
|
106
|
+
condition: `f_process_id = '${this.selectdata.f_process_id}'`
|
|
107
|
+
}
|
|
108
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getapplyBjqMap`, {data:data}, {
|
|
109
|
+
resolveMsg: null,
|
|
110
|
+
rejectMsg: '获取坐标失败!!!'
|
|
111
|
+
})
|
|
112
|
+
console.log(res)
|
|
113
|
+
|
|
114
|
+
this.model.rows = res.data
|
|
115
|
+
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
watch: {
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
<style lang="less">
|
|
124
|
+
#addboxmap {
|
|
125
|
+
height: 300px;
|
|
126
|
+
}
|
|
127
|
+
</style>
|