apply-clients 7.1.36-yuchuan-15 → 7.1.36-yuchuan-16
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 +172 -172
- package/package.json +2 -1
- package/src/apply.js +163 -162
- package/src/components/product/ApplyMap/ApplyMapInputSearch.vue +335 -335
- package/src/components/product/GongJianPush/ApplyPushList.vue +191 -191
- package/src/main.js +27 -27
package/build/dev-server.js
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
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://193.168.1.64:8082'
|
|
12
|
-
var ldap = 'http://193.168.1.
|
|
13
|
-
var applyinstall = 'http://
|
|
14
|
-
// var applyinstall = 'http://193.168.1.44:8600'
|
|
15
|
-
// var fadada = 'http://127.0.0.1:8181'
|
|
16
|
-
var fadada = 'http://193.168.1.
|
|
17
|
-
|
|
18
|
-
var proxyTable = {
|
|
19
|
-
// ---------------------------
|
|
20
|
-
'/rs/logic/pushShortUrlSms': {
|
|
21
|
-
target: fadada
|
|
22
|
-
},
|
|
23
|
-
'/rs/logic/generateContract': {
|
|
24
|
-
target: fadada
|
|
25
|
-
},
|
|
26
|
-
'/rs/logic/getAuthSubject': {
|
|
27
|
-
target: fadada
|
|
28
|
-
},
|
|
29
|
-
'/rs/sql/getAuthSubjectList': {
|
|
30
|
-
target: fadada
|
|
31
|
-
},
|
|
32
|
-
'/rs/logic/keyExtSign': {
|
|
33
|
-
target: fadada
|
|
34
|
-
},
|
|
35
|
-
'/rs/logic/keyExtSignAuto': {
|
|
36
|
-
target: fadada
|
|
37
|
-
},
|
|
38
|
-
// 重新发送实名认证短信
|
|
39
|
-
'/rs/logic/anotherAuthSubject': {
|
|
40
|
-
target: fadada
|
|
41
|
-
},
|
|
42
|
-
// ---------------------------
|
|
43
|
-
'/rs/logic/getSaleInitData': {
|
|
44
|
-
target: ldap
|
|
45
|
-
},
|
|
46
|
-
'/rs/logic/saveInstruct': {
|
|
47
|
-
target: 'http://193.168.1.64:8082'
|
|
48
|
-
},
|
|
49
|
-
'/rs/logic/updateNetWorkValve': {
|
|
50
|
-
target: 'http://193.168.1.64:8082'
|
|
51
|
-
},
|
|
52
|
-
'/rs/logic/uploadSave': {
|
|
53
|
-
target: 'http://193.168.1.16:8003'
|
|
54
|
-
},
|
|
55
|
-
'/rs/workflow': {
|
|
56
|
-
target: applyinstall
|
|
57
|
-
},
|
|
58
|
-
'/apply': {
|
|
59
|
-
target: applyinstall
|
|
60
|
-
},
|
|
61
|
-
'/rs/vue': {
|
|
62
|
-
target: ldap
|
|
63
|
-
},
|
|
64
|
-
// 查找资源服务数据
|
|
65
|
-
'/rs/search': {
|
|
66
|
-
target: ldap
|
|
67
|
-
},
|
|
68
|
-
// 发票组织数据
|
|
69
|
-
'/rs/logic/bjEticketCharge': {
|
|
70
|
-
target: 'http://193.168.1.6:8082'
|
|
71
|
-
},
|
|
72
|
-
// 开发票
|
|
73
|
-
'/rs/logic/bjOpenEticket': {
|
|
74
|
-
target: 'http://193.168.1.6:8082'
|
|
75
|
-
},
|
|
76
|
-
// 获取发票明细
|
|
77
|
-
'/rs/logic/queryEticket': {
|
|
78
|
-
target: 'http://193.168.1.44:8400'
|
|
79
|
-
},
|
|
80
|
-
// 创建小区
|
|
81
|
-
'/rs/logic/address_updatearea': {
|
|
82
|
-
target: ldap
|
|
83
|
-
},
|
|
84
|
-
'/rs/phone/send': {
|
|
85
|
-
target: 'http://193.168.1.21:80'
|
|
86
|
-
},
|
|
87
|
-
// 用户登录服务地址
|
|
88
|
-
'/rs/user': {
|
|
89
|
-
target: ldap
|
|
90
|
-
},
|
|
91
|
-
'/rs/logic/getInitData': {
|
|
92
|
-
target: ldap?ldap:applyinstall
|
|
93
|
-
},
|
|
94
|
-
'/rs/logic/getLogin': {
|
|
95
|
-
target: ldap
|
|
96
|
-
},
|
|
97
|
-
'/rs/file': { // 文件上传
|
|
98
|
-
target: applyinstall
|
|
99
|
-
},
|
|
100
|
-
'/project': { // 文件回显
|
|
101
|
-
target: applyinstall
|
|
102
|
-
},
|
|
103
|
-
'/rs/apply': {
|
|
104
|
-
target: applyinstall,
|
|
105
|
-
pathRewrite: {
|
|
106
|
-
'^/rs/apply': '/rs'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
'/rs': {
|
|
110
|
-
target: applyinstall
|
|
111
|
-
},
|
|
112
|
-
'/ws': {
|
|
113
|
-
target: applyinstall,
|
|
114
|
-
ws: true // 代理webSocket
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
119
|
-
publicPath: config.output.publicPath,
|
|
120
|
-
stats: {
|
|
121
|
-
colors: true,
|
|
122
|
-
chunks: false
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
127
|
-
// force page reload when html-webpack-plugin template changes
|
|
128
|
-
compiler.plugin('compilation', function (compilation) {
|
|
129
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
130
|
-
hotMiddleware.publish({action: 'reload'})
|
|
131
|
-
cb()
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
// proxy api requests
|
|
136
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
137
|
-
var options = proxyTable[context]
|
|
138
|
-
if (typeof options === 'string') {
|
|
139
|
-
options = {target: options}
|
|
140
|
-
}
|
|
141
|
-
app.use(proxyMiddleware(context, options))
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
// handle fallback for HTML5 history API
|
|
145
|
-
app.use(require('connect-history-api-fallback')())
|
|
146
|
-
// app.use(function (req, res, next) {
|
|
147
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
148
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
149
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
150
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
151
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
152
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
153
|
-
// next()
|
|
154
|
-
// })
|
|
155
|
-
|
|
156
|
-
// serve webpack bundle output
|
|
157
|
-
app.use(devMiddleware)
|
|
158
|
-
|
|
159
|
-
// enable hot-reload and state-preserving
|
|
160
|
-
// compilation error display
|
|
161
|
-
app.use(hotMiddleware)
|
|
162
|
-
|
|
163
|
-
// serve pure static assets
|
|
164
|
-
app.use('/static', express.static('./static'))
|
|
165
|
-
|
|
166
|
-
module.exports = app.listen(8300, function (err) {
|
|
167
|
-
if (err) {
|
|
168
|
-
console.log(err)
|
|
169
|
-
return
|
|
170
|
-
}
|
|
171
|
-
console.log('Listening at http://localhost:8300')
|
|
172
|
-
})
|
|
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://193.168.1.64:8082'
|
|
12
|
+
var ldap = 'http://193.168.1.218:8400'
|
|
13
|
+
var applyinstall = 'http://193.168.1.218:8400'
|
|
14
|
+
// var applyinstall = 'http://193.168.1.44:8600'
|
|
15
|
+
// var fadada = 'http://127.0.0.1:8181'
|
|
16
|
+
var fadada = 'http://193.168.1.218:8400'
|
|
17
|
+
|
|
18
|
+
var proxyTable = {
|
|
19
|
+
// ---------------------------
|
|
20
|
+
'/rs/logic/pushShortUrlSms': {
|
|
21
|
+
target: fadada
|
|
22
|
+
},
|
|
23
|
+
'/rs/logic/generateContract': {
|
|
24
|
+
target: fadada
|
|
25
|
+
},
|
|
26
|
+
'/rs/logic/getAuthSubject': {
|
|
27
|
+
target: fadada
|
|
28
|
+
},
|
|
29
|
+
'/rs/sql/getAuthSubjectList': {
|
|
30
|
+
target: fadada
|
|
31
|
+
},
|
|
32
|
+
'/rs/logic/keyExtSign': {
|
|
33
|
+
target: fadada
|
|
34
|
+
},
|
|
35
|
+
'/rs/logic/keyExtSignAuto': {
|
|
36
|
+
target: fadada
|
|
37
|
+
},
|
|
38
|
+
// 重新发送实名认证短信
|
|
39
|
+
'/rs/logic/anotherAuthSubject': {
|
|
40
|
+
target: fadada
|
|
41
|
+
},
|
|
42
|
+
// ---------------------------
|
|
43
|
+
'/rs/logic/getSaleInitData': {
|
|
44
|
+
target: ldap
|
|
45
|
+
},
|
|
46
|
+
'/rs/logic/saveInstruct': {
|
|
47
|
+
target: 'http://193.168.1.64:8082'
|
|
48
|
+
},
|
|
49
|
+
'/rs/logic/updateNetWorkValve': {
|
|
50
|
+
target: 'http://193.168.1.64:8082'
|
|
51
|
+
},
|
|
52
|
+
'/rs/logic/uploadSave': {
|
|
53
|
+
target: 'http://193.168.1.16:8003'
|
|
54
|
+
},
|
|
55
|
+
'/rs/workflow': {
|
|
56
|
+
target: applyinstall
|
|
57
|
+
},
|
|
58
|
+
'/apply': {
|
|
59
|
+
target: applyinstall
|
|
60
|
+
},
|
|
61
|
+
'/rs/vue': {
|
|
62
|
+
target: ldap
|
|
63
|
+
},
|
|
64
|
+
// 查找资源服务数据
|
|
65
|
+
'/rs/search': {
|
|
66
|
+
target: ldap
|
|
67
|
+
},
|
|
68
|
+
// 发票组织数据
|
|
69
|
+
'/rs/logic/bjEticketCharge': {
|
|
70
|
+
target: 'http://193.168.1.6:8082'
|
|
71
|
+
},
|
|
72
|
+
// 开发票
|
|
73
|
+
'/rs/logic/bjOpenEticket': {
|
|
74
|
+
target: 'http://193.168.1.6:8082'
|
|
75
|
+
},
|
|
76
|
+
// 获取发票明细
|
|
77
|
+
'/rs/logic/queryEticket': {
|
|
78
|
+
target: 'http://193.168.1.44:8400'
|
|
79
|
+
},
|
|
80
|
+
// 创建小区
|
|
81
|
+
'/rs/logic/address_updatearea': {
|
|
82
|
+
target: ldap
|
|
83
|
+
},
|
|
84
|
+
'/rs/phone/send': {
|
|
85
|
+
target: 'http://193.168.1.21:80'
|
|
86
|
+
},
|
|
87
|
+
// 用户登录服务地址
|
|
88
|
+
'/rs/user': {
|
|
89
|
+
target: ldap
|
|
90
|
+
},
|
|
91
|
+
'/rs/logic/getInitData': {
|
|
92
|
+
target: ldap?ldap:applyinstall
|
|
93
|
+
},
|
|
94
|
+
'/rs/logic/getLogin': {
|
|
95
|
+
target: ldap
|
|
96
|
+
},
|
|
97
|
+
'/rs/file': { // 文件上传
|
|
98
|
+
target: applyinstall
|
|
99
|
+
},
|
|
100
|
+
'/project': { // 文件回显
|
|
101
|
+
target: applyinstall
|
|
102
|
+
},
|
|
103
|
+
'/rs/apply': {
|
|
104
|
+
target: applyinstall,
|
|
105
|
+
pathRewrite: {
|
|
106
|
+
'^/rs/apply': '/rs'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
'/rs': {
|
|
110
|
+
target: applyinstall
|
|
111
|
+
},
|
|
112
|
+
'/ws': {
|
|
113
|
+
target: applyinstall,
|
|
114
|
+
ws: true // 代理webSocket
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
119
|
+
publicPath: config.output.publicPath,
|
|
120
|
+
stats: {
|
|
121
|
+
colors: true,
|
|
122
|
+
chunks: false
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
127
|
+
// force page reload when html-webpack-plugin template changes
|
|
128
|
+
compiler.plugin('compilation', function (compilation) {
|
|
129
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
130
|
+
hotMiddleware.publish({action: 'reload'})
|
|
131
|
+
cb()
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
// proxy api requests
|
|
136
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
137
|
+
var options = proxyTable[context]
|
|
138
|
+
if (typeof options === 'string') {
|
|
139
|
+
options = {target: options}
|
|
140
|
+
}
|
|
141
|
+
app.use(proxyMiddleware(context, options))
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
// handle fallback for HTML5 history API
|
|
145
|
+
app.use(require('connect-history-api-fallback')())
|
|
146
|
+
// app.use(function (req, res, next) {
|
|
147
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
148
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
149
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
150
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
151
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
152
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
153
|
+
// next()
|
|
154
|
+
// })
|
|
155
|
+
|
|
156
|
+
// serve webpack bundle output
|
|
157
|
+
app.use(devMiddleware)
|
|
158
|
+
|
|
159
|
+
// enable hot-reload and state-preserving
|
|
160
|
+
// compilation error display
|
|
161
|
+
app.use(hotMiddleware)
|
|
162
|
+
|
|
163
|
+
// serve pure static assets
|
|
164
|
+
app.use('/static', express.static('./static'))
|
|
165
|
+
|
|
166
|
+
module.exports = app.listen(8300, function (err) {
|
|
167
|
+
if (err) {
|
|
168
|
+
console.log(err)
|
|
169
|
+
return
|
|
170
|
+
}
|
|
171
|
+
console.log('Listening at http://localhost:8300')
|
|
172
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apply-clients",
|
|
3
|
-
"version": "7.1.36-yuchuan-
|
|
3
|
+
"version": "7.1.36-yuchuan-16",
|
|
4
4
|
"description": "报建前端模块",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"eventsource-polyfill": "^0.9.6",
|
|
66
66
|
"express": "^4.17.0",
|
|
67
67
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
68
|
+
"fadada-clients": "1.0.19",
|
|
68
69
|
"file-loader": "^0.8.4",
|
|
69
70
|
"function-bind": "^1.0.2",
|
|
70
71
|
"html-webpack-plugin": "^2.8.1",
|