apply-clients 3.4.79 → 3.4.80
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 +119 -120
- package/package.json +1 -1
- package/src/components/android/AppTakePic.vue +140 -143
- package/src/filiale/hongda/android.js +8 -0
- package/src/filiale/shexian/android/AppExplorationUser.vue +487 -487
- package/src/filiale/shexian/android/AppInstallationDetails.vue +498 -498
- package/src/filiale/shexian/android/AppServiceView.vue +745 -745
- package/src/filiale/shexian/android.js +10 -10
- package/src/filiale/shexian/pc/InstallationDetails.vue +614 -614
- package/src/filiale/shexian/pc.js +8 -8
- package/src/main.js +23 -23
package/build/dev-server.js
CHANGED
|
@@ -1,120 +1,119 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.dev.conf')
|
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
-
// var httpProxy = require('http-proxy')
|
|
6
|
-
var app = express()
|
|
7
|
-
var compiler = webpack(config)
|
|
8
|
-
// var proxy = httpProxy.createProxyServer()
|
|
9
|
-
// var ldap = 'http://121.36.79.201:8400'
|
|
10
|
-
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
-
var ldap = 'http://
|
|
12
|
-
var applyinstall = 'http://
|
|
13
|
-
|
|
14
|
-
var proxyTable = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
app.use(
|
|
94
|
-
//
|
|
95
|
-
// res.header('Access-Control-Allow-
|
|
96
|
-
// res.header('Access-Control-Allow-
|
|
97
|
-
// res.header('
|
|
98
|
-
// res.header('
|
|
99
|
-
// res.header('
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
//
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.dev.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// var httpProxy = require('http-proxy')
|
|
6
|
+
var app = express()
|
|
7
|
+
var compiler = webpack(config)
|
|
8
|
+
// var proxy = httpProxy.createProxyServer()
|
|
9
|
+
// var ldap = 'http://121.36.79.201:8400'
|
|
10
|
+
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
+
var ldap = 'http://219.138.226.181:8401'
|
|
12
|
+
var applyinstall = 'http://219.138.226.181:8401'
|
|
13
|
+
|
|
14
|
+
var proxyTable = {
|
|
15
|
+
'/rs/logic/getSaleInitData': {
|
|
16
|
+
target: ldap
|
|
17
|
+
},
|
|
18
|
+
'/rs/workflow': {
|
|
19
|
+
target: applyinstall
|
|
20
|
+
},
|
|
21
|
+
'/rs/vue': {
|
|
22
|
+
target: ldap
|
|
23
|
+
},
|
|
24
|
+
// 查找资源服务数据
|
|
25
|
+
'/rs/search': {
|
|
26
|
+
target: ldap
|
|
27
|
+
},
|
|
28
|
+
// 街道查询
|
|
29
|
+
'/rs/sql/address_getstreetlist': {
|
|
30
|
+
target: ldap
|
|
31
|
+
},
|
|
32
|
+
// 创建街道
|
|
33
|
+
'/rs/logic/address_updatestreet': {
|
|
34
|
+
target: ldap
|
|
35
|
+
},
|
|
36
|
+
// 创建小区
|
|
37
|
+
'/rs/logic/address_updatearea': {
|
|
38
|
+
target: ldap
|
|
39
|
+
},
|
|
40
|
+
// 用户登录服务地址
|
|
41
|
+
'/rs/user': {
|
|
42
|
+
target: ldap
|
|
43
|
+
},
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: ldap?ldap:applyinstall
|
|
46
|
+
},
|
|
47
|
+
'/rs/logic/getLogin': {
|
|
48
|
+
target: ldap
|
|
49
|
+
},
|
|
50
|
+
'/rs/file': { // 文件上传
|
|
51
|
+
target: applyinstall
|
|
52
|
+
},
|
|
53
|
+
'/project': { // 文件回显
|
|
54
|
+
target: applyinstall
|
|
55
|
+
},
|
|
56
|
+
'/rs': {
|
|
57
|
+
target: applyinstall
|
|
58
|
+
},
|
|
59
|
+
'/ws': {
|
|
60
|
+
target: applyinstall,
|
|
61
|
+
ws: true // 代理webSocket
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
66
|
+
publicPath: config.output.publicPath,
|
|
67
|
+
stats: {
|
|
68
|
+
colors: true,
|
|
69
|
+
chunks: false
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
74
|
+
// force page reload when html-webpack-plugin template changes
|
|
75
|
+
compiler.plugin('compilation', function (compilation) {
|
|
76
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
77
|
+
hotMiddleware.publish({action: 'reload'})
|
|
78
|
+
cb()
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// proxy api requests
|
|
83
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
84
|
+
var options = proxyTable[context]
|
|
85
|
+
if (typeof options === 'string') {
|
|
86
|
+
options = {target: options}
|
|
87
|
+
}
|
|
88
|
+
app.use(proxyMiddleware(context, options))
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// handle fallback for HTML5 history API
|
|
92
|
+
app.use(require('connect-history-api-fallback')())
|
|
93
|
+
// app.use(function (req, res, next) {
|
|
94
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
95
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
96
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
97
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
98
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
99
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
100
|
+
// next()
|
|
101
|
+
// })
|
|
102
|
+
|
|
103
|
+
// serve webpack bundle output
|
|
104
|
+
app.use(devMiddleware)
|
|
105
|
+
|
|
106
|
+
// enable hot-reload and state-preserving
|
|
107
|
+
// compilation error display
|
|
108
|
+
app.use(hotMiddleware)
|
|
109
|
+
|
|
110
|
+
// serve pure static assets
|
|
111
|
+
app.use('/static', express.static('./static'))
|
|
112
|
+
|
|
113
|
+
module.exports = app.listen(8300, function (err) {
|
|
114
|
+
if (err) {
|
|
115
|
+
console.log(err)
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
console.log('Listening at http://localhost:8300')
|
|
119
|
+
})
|
package/package.json
CHANGED
|
@@ -1,143 +1,140 @@
|
|
|
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/apply_singleTable`, {data: data}, {
|
|
55
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
console.log('
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
</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/apply_singleTable`, {data: data}, {
|
|
55
|
+
// let res = await http.load('POST', `rs/sql/apply_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
|
+
cameraCallBack (fileName, fileUrl) {
|
|
75
|
+
console.log('-----------cameraCallBack-----------------')
|
|
76
|
+
let data = {
|
|
77
|
+
blodid: HostApp.__this__.blobid,
|
|
78
|
+
type: HostApp.__this__.type,
|
|
79
|
+
defname: HostApp.__this__.defname,
|
|
80
|
+
username: Vue.user.name,
|
|
81
|
+
fremarks: '手机拍照',
|
|
82
|
+
fileName: fileName,
|
|
83
|
+
fileUrl: fileUrl
|
|
84
|
+
}
|
|
85
|
+
console.log('-----------bzLogic-----------------')
|
|
86
|
+
let res=HostApp.bzLogic({
|
|
87
|
+
'logic': 'appFileUpload',
|
|
88
|
+
'data': data
|
|
89
|
+
})
|
|
90
|
+
console.log('----------------开始回调查询-------------------')
|
|
91
|
+
HostApp.__this__.getFiles()
|
|
92
|
+
console.log('----------------查询回调结束-------------------')
|
|
93
|
+
HostApp.__callback__ = null
|
|
94
|
+
HostApp.__this__ = null
|
|
95
|
+
},
|
|
96
|
+
takePic (title) {
|
|
97
|
+
// 拍照成功回调
|
|
98
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
99
|
+
HostApp.__this__ = this
|
|
100
|
+
let fileName = guid() + '.jpg'
|
|
101
|
+
// 打开相机
|
|
102
|
+
HostApp._open_a_page({
|
|
103
|
+
type: 'boomerang',
|
|
104
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
105
|
+
param: {
|
|
106
|
+
file: fileName,
|
|
107
|
+
requestCode: 200,
|
|
108
|
+
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
109
|
+
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
},
|
|
115
|
+
computed: {
|
|
116
|
+
typeList () {
|
|
117
|
+
if (this.typelabel) {
|
|
118
|
+
return this.$appdata.getParam(this.typelabel)
|
|
119
|
+
}
|
|
120
|
+
return this.$appdata.getParam('使用类型')
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
events: {
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<style lang="less">
|
|
129
|
+
.fileType {
|
|
130
|
+
float: left;
|
|
131
|
+
.select-style {
|
|
132
|
+
background: #f8f8f8;
|
|
133
|
+
border: 0px;
|
|
134
|
+
}
|
|
135
|
+
input {
|
|
136
|
+
border-left: none;
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
</style>
|