apply-clients 3.4.77 → 3.4.78
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 +120 -119
- package/package.json +1 -1
- package/src/filiale/hongda/pc/ServiceView.vue +1037 -1037
- package/src/filiale/shexian/android/AppExplorationUser.vue +487 -487
- package/src/filiale/shexian/android/AppInstallationDetails.vue +494 -0
- package/src/filiale/shexian/android/AppServiceView.vue +745 -0
- package/src/filiale/shexian/android.js +10 -8
- package/src/filiale/shexian/pc/InstallationDetails.vue +614 -0
- package/src/filiale/shexian/pc.js +8 -7
- package/src/main.js +23 -23
package/build/dev-server.js
CHANGED
|
@@ -1,119 +1,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://
|
|
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
|
-
|
|
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
|
-
|
|
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://221.193.244.147:8400'
|
|
12
|
+
var applyinstall = 'http://221.193.244.147:8400'
|
|
13
|
+
|
|
14
|
+
var proxyTable = {
|
|
15
|
+
|
|
16
|
+
'/rs/logic/getSaleInitData': {
|
|
17
|
+
target: ldap
|
|
18
|
+
},
|
|
19
|
+
'/rs/workflow': {
|
|
20
|
+
target: applyinstall
|
|
21
|
+
},
|
|
22
|
+
'/rs/vue': {
|
|
23
|
+
target: ldap
|
|
24
|
+
},
|
|
25
|
+
// 查找资源服务数据
|
|
26
|
+
'/rs/search': {
|
|
27
|
+
target: ldap
|
|
28
|
+
},
|
|
29
|
+
// 街道查询
|
|
30
|
+
'/rs/sql/address_getstreetlist': {
|
|
31
|
+
target: ldap
|
|
32
|
+
},
|
|
33
|
+
// 创建街道
|
|
34
|
+
'/rs/logic/address_updatestreet': {
|
|
35
|
+
target: ldap
|
|
36
|
+
},
|
|
37
|
+
// 创建小区
|
|
38
|
+
'/rs/logic/address_updatearea': {
|
|
39
|
+
target: ldap
|
|
40
|
+
},
|
|
41
|
+
// 用户登录服务地址
|
|
42
|
+
'/rs/user': {
|
|
43
|
+
target: ldap
|
|
44
|
+
},
|
|
45
|
+
'/rs/logic/getInitData': {
|
|
46
|
+
target: ldap?ldap:applyinstall
|
|
47
|
+
},
|
|
48
|
+
'/rs/logic/getLogin': {
|
|
49
|
+
target: ldap
|
|
50
|
+
},
|
|
51
|
+
'/rs/file': { // 文件上传
|
|
52
|
+
target: applyinstall
|
|
53
|
+
},
|
|
54
|
+
'/project': { // 文件回显
|
|
55
|
+
target: applyinstall
|
|
56
|
+
},
|
|
57
|
+
'/rs': {
|
|
58
|
+
target: applyinstall
|
|
59
|
+
},
|
|
60
|
+
'/ws': {
|
|
61
|
+
target: applyinstall,
|
|
62
|
+
ws: true // 代理webSocket
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
67
|
+
publicPath: config.output.publicPath,
|
|
68
|
+
stats: {
|
|
69
|
+
colors: true,
|
|
70
|
+
chunks: false
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
75
|
+
// force page reload when html-webpack-plugin template changes
|
|
76
|
+
compiler.plugin('compilation', function (compilation) {
|
|
77
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
78
|
+
hotMiddleware.publish({action: 'reload'})
|
|
79
|
+
cb()
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
// proxy api requests
|
|
84
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
85
|
+
var options = proxyTable[context]
|
|
86
|
+
if (typeof options === 'string') {
|
|
87
|
+
options = {target: options}
|
|
88
|
+
}
|
|
89
|
+
app.use(proxyMiddleware(context, options))
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
// handle fallback for HTML5 history API
|
|
93
|
+
app.use(require('connect-history-api-fallback')())
|
|
94
|
+
// app.use(function (req, res, next) {
|
|
95
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
96
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
97
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
98
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
99
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
100
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
101
|
+
// next()
|
|
102
|
+
// })
|
|
103
|
+
|
|
104
|
+
// serve webpack bundle output
|
|
105
|
+
app.use(devMiddleware)
|
|
106
|
+
|
|
107
|
+
// enable hot-reload and state-preserving
|
|
108
|
+
// compilation error display
|
|
109
|
+
app.use(hotMiddleware)
|
|
110
|
+
|
|
111
|
+
// serve pure static assets
|
|
112
|
+
app.use('/static', express.static('./static'))
|
|
113
|
+
|
|
114
|
+
module.exports = app.listen(8300, function (err) {
|
|
115
|
+
if (err) {
|
|
116
|
+
console.log(err)
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
console.log('Listening at http://localhost:8300')
|
|
120
|
+
})
|