address-client 3.2.111 → 4.0.1
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/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/CHANGELOG.md +15 -15
- package/build/dev-server.js +185 -185
- package/build/versionCheck.js +31 -31
- package/build/webpack.base.conf.js +82 -82
- package/examples/showAdd/App.vue +40 -40
- package/index.html +44 -44
- package/package.json +101 -101
- package/src/address.js +74 -74
- package/src/components/AddAreaMsg.vue +757 -757
- package/src/components/AddCommunityManageMsg.vue +220 -220
- package/src/components/AddStreetManageMsg.vue +204 -204
- package/src/components/AddStreetOrPcd.vue +316 -316
- package/src/components/AddressAddAddress.vue +479 -479
- package/src/components/AddressFiles.vue +156 -156
- package/src/components/AddressList.vue +637 -637
- package/src/components/AddressListLiuLi.vue +17 -17
- package/src/components/AddressManage.vue +117 -117
- package/src/components/AddressTree.vue +501 -501
- package/src/components/AreaFiles.vue +73 -73
- package/src/components/AreaList.vue +410 -410
- package/src/components/AreaManage.vue +104 -104
- package/src/components/AreaTree.vue +508 -508
- package/src/components/Basch.vue +72 -72
- package/src/components/BatchOrders.vue +328 -328
- package/src/components/BuildingList.vue +129 -129
- package/src/components/CityList.vue +134 -134
- package/src/components/CityManage.vue +76 -76
- package/src/components/CommunityAreaList.vue +87 -87
- package/src/components/CommunityManage.vue +78 -78
- package/src/components/CommunityManageList.vue +244 -244
- package/src/components/NewAddressInfo.vue +432 -432
- package/src/components/StreetList.vue +241 -241
- package/src/components/StreetManage.vue +68 -68
- package/src/components/StreetManageList.vue +225 -225
- package/src/components/UserAddress.vue +907 -908
- package/src/components/UserAddressChange.vue +58 -58
- package/src/components/selectAddress/BatchList.vue +326 -326
- package/src/filiale/WEINAN/AddAreaMsg.vue +745 -745
- package/src/filiale/WEINAN/AddressList.vue +588 -588
- package/src/filiale/WEINAN/AddressManage.vue +122 -122
- package/src/filiale/WEINAN/AreaList.vue +435 -435
- package/src/filiale/WEINAN/AreaManage.vue +109 -109
- package/src/filiale/WEINAN/AreaUserList.vue +226 -226
- package/src/filiale/WEINAN/UserAddress.vue +783 -783
- package/src/filiale/WEINAN/sale.js +18 -18
- package/src/filiale/chengtou/UserAddress.vue +894 -894
- package/src/filiale/chengtou/sale.js +7 -7
- package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -422
- package/src/filiale/dongguan/sale.js +7 -7
- package/src/filiale/gaomi/AddressList.vue +430 -430
- package/src/filiale/gaomi/UserAddress.vue +832 -832
- package/src/filiale/gaomi/sale.js +14 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +651 -651
- package/src/filiale/gongyi/AreaManage.vue +100 -100
- package/src/filiale/gongyi/UserAddress.vue +751 -751
- package/src/filiale/gongyi/sale.js +14 -14
- package/src/filiale/haile/AddressList.vue +615 -615
- package/src/filiale/haile/sale.js +8 -8
- package/src/filiale/jingwei/UserAddress.vue +764 -764
- package/src/filiale/jingwei/sale.js +12 -12
- package/src/filiale/lixianV3/AreaList.vue +416 -416
- package/src/filiale/lixianV3/sale.js +12 -12
- package/src/filiale/macheng/AddAreaMsg.vue +635 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +231 -231
- package/src/filiale/macheng/AddressList.vue +613 -613
- package/src/filiale/macheng/AreaList.vue +318 -318
- package/src/filiale/macheng/CityManage.vue +76 -76
- package/src/filiale/macheng/StreetList.vue +186 -186
- package/src/filiale/macheng/UserAddress.vue +743 -743
- package/src/filiale/macheng/sale.js +17 -17
- package/src/filiale/meihekou/UserAddress.vue +898 -898
- package/src/filiale/meihekou/sale.js +8 -8
- package/src/filiale/qianneng/AddAreaMsg.vue +755 -755
- package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -328
- package/src/filiale/qianneng/AddressList.vue +638 -638
- package/src/filiale/qianneng/AreaList.vue +431 -431
- package/src/filiale/qianneng/CityManage.vue +81 -81
- package/src/filiale/qianneng/UserAddress.vue +1125 -1125
- package/src/filiale/qianneng/sale.js +20 -20
- package/src/filiale/qinhua/AddAreaMsg.vue +743 -743
- package/src/filiale/qinhua/AddressList.vue +627 -627
- package/src/filiale/qinhua/AddressManage.vue +117 -117
- package/src/filiale/qinhua/AreaList.vue +425 -425
- package/src/filiale/qinhua/AreaManage.vue +100 -100
- package/src/filiale/qinhua/CityManage.vue +76 -76
- package/src/filiale/qinhua/StreetList.vue +241 -241
- package/src/filiale/qinhua/UserAddress.vue +894 -894
- package/src/filiale/qinhua/sale.js +20 -20
- package/src/filiale/rizhao/UserAddress.vue +897 -897
- package/src/filiale/rizhao/sale.js +8 -8
- package/src/filiale/rongcheng/AddressList.vue +363 -363
- package/src/filiale/rongcheng/UserAddress.vue +799 -799
- package/src/filiale/rongcheng/sale.js +11 -11
- package/src/filiale/shanggao/AddAreaMsg.vue +752 -752
- package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -312
- package/src/filiale/shanggao/AddressList.vue +613 -613
- package/src/filiale/shanggao/AreaList.vue +436 -436
- package/src/filiale/shanggao/BuildingList.vue +129 -129
- package/src/filiale/shanggao/StreetList.vue +240 -240
- package/src/filiale/shanggao/UserAddress.vue +953 -953
- package/src/filiale/shanggao/sale.js +16 -16
- package/src/filiale/shanxian/AddAreaMsg.vue +766 -766
- package/src/filiale/shanxian/AddressList.vue +658 -658
- package/src/filiale/shanxian/AreaList.vue +458 -458
- package/src/filiale/shanxian/AreaManage.vue +107 -107
- package/src/filiale/shanxian/UserAddress.vue +900 -900
- package/src/filiale/shanxian/sale.js +15 -15
- package/src/filiale/shaoguan/AddAreaMsg.vue +629 -629
- package/src/filiale/shaoguan/UserAddress.vue +762 -762
- package/src/filiale/shaoguan/sale.js +11 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +635 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -351
- package/src/filiale/tongchuan/AddressList.vue +379 -379
- package/src/filiale/tongchuan/AreaList.vue +315 -315
- package/src/filiale/tongchuan/AreaManage.vue +100 -100
- package/src/filiale/tongchuan/CityList.vue +133 -133
- package/src/filiale/tongchuan/StreetList.vue +215 -215
- package/src/filiale/tongchuan/UserAddress.vue +822 -822
- package/src/filiale/tongchuan/sale.js +19 -19
- package/src/filiale/wuhai/UserAddress.vue +795 -795
- package/src/filiale/wuhai/sale.js +12 -12
- package/src/filiale/xihu/AreaList.vue +409 -409
- package/src/filiale/xihu/StreetList.vue +238 -238
- package/src/filiale/xihu/sale.js +14 -14
- package/src/filiale/xinkang/AddAreaMsg.vue +780 -780
- package/src/filiale/xinkang/AreaList.vue +413 -413
- package/src/filiale/xinkang/sale.js +9 -9
- package/src/filiale/yangchun/AddAreaMsg.vue +764 -764
- package/src/filiale/yangchun/sale.js +7 -7
- package/src/filiale/zhongsheng/AddressList.vue +671 -671
- package/src/filiale/zhongsheng/AreaList.vue +500 -500
- package/src/filiale/zhongsheng/sale.js +12 -12
- package/src/filiale/zhongyi/AddAreaMsg.vue +757 -757
- package/src/filiale/zhongyi/sale.js +12 -12
- package/src/filiale/zhoukou/AddAreaMsg.vue +673 -673
- package/src/filiale/zhoukou/AddressList.vue +391 -391
- package/src/filiale/zhoukou/AddressManage.vue +115 -115
- package/src/filiale/zhoukou/AreaList.vue +319 -319
- package/src/filiale/zhoukou/AreaManage.vue +100 -100
- package/src/filiale/zhoukou/UserAddress.vue +925 -925
- package/src/filiale/zhoukou/sale.js +23 -23
- package/src/main.js +23 -23
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Mon Dec 07 15:35:10 CST 2020
|
|
2
|
-
gradle.version=5.2.1
|
|
1
|
+
#Mon Dec 07 15:35:10 CST 2020
|
|
2
|
+
gradle.version=5.2.1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
所有关于本产品的变化都在该文档里。
|
|
3
|
-
|
|
4
|
-
## 3.0.24-2020-10-15 @张科科
|
|
5
|
-
--地址管理 特殊建档 增加小区选择
|
|
6
|
-
|
|
7
|
-
## 1.3.2-2018-11-12 @刘江涛
|
|
8
|
-
- 地址查询修改
|
|
9
|
-
|
|
10
|
-
## 1.3.1-2018-11-11 @何宁社
|
|
11
|
-
- 地址管理完成
|
|
12
|
-
- 地址查询完成
|
|
13
|
-
|
|
14
|
-
## 1.2.0-2018-11-11 @何宁社
|
|
15
|
-
- 删除样式
|
|
1
|
+
# Change Log
|
|
2
|
+
所有关于本产品的变化都在该文档里。
|
|
3
|
+
|
|
4
|
+
## 3.0.24-2020-10-15 @张科科
|
|
5
|
+
--地址管理 特殊建档 增加小区选择
|
|
6
|
+
|
|
7
|
+
## 1.3.2-2018-11-12 @刘江涛
|
|
8
|
+
- 地址查询修改
|
|
9
|
+
|
|
10
|
+
## 1.3.1-2018-11-11 @何宁社
|
|
11
|
+
- 地址管理完成
|
|
12
|
+
- 地址查询完成
|
|
13
|
+
|
|
14
|
+
## 1.2.0-2018-11-11 @何宁社
|
|
15
|
+
- 删除样式
|
package/build/dev-server.js
CHANGED
|
@@ -1,185 +1,185 @@
|
|
|
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 checkVersion = require('./versionCheck.js')
|
|
7
|
-
checkVersion()
|
|
8
|
-
var app = express()
|
|
9
|
-
var compiler = webpack(config)
|
|
10
|
-
var proxy = httpProxy.createProxyServer()
|
|
11
|
-
|
|
12
|
-
// Define HTTP proxies to your custom API backend
|
|
13
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
14
|
-
var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
|
|
15
|
-
var str3= 'http://192.168.50.4:8400'
|
|
16
|
-
var proxyTable = {
|
|
17
|
-
'/api/af-auth': {
|
|
18
|
-
target: str
|
|
19
|
-
},
|
|
20
|
-
'/api/af-system': {
|
|
21
|
-
target: str
|
|
22
|
-
},
|
|
23
|
-
'/api/af-revenue': {
|
|
24
|
-
pathRewrite: {'/api/af-revenue': '/'},
|
|
25
|
-
target: 'http://127.0.0.1:9026'
|
|
26
|
-
},
|
|
27
|
-
'/rs/entity': {
|
|
28
|
-
target: str
|
|
29
|
-
// secure:true,
|
|
30
|
-
// changeOrigin:true
|
|
31
|
-
// target: 'http://127.0.0.1:8080'
|
|
32
|
-
},
|
|
33
|
-
'/webapps':{
|
|
34
|
-
target: str3,
|
|
35
|
-
secure:true,
|
|
36
|
-
changeOrigin:true
|
|
37
|
-
// target: 'http://127.0.0.1:8080'
|
|
38
|
-
},
|
|
39
|
-
'/rs/logic/getLogin': {
|
|
40
|
-
target: str3,
|
|
41
|
-
secure:true,
|
|
42
|
-
changeOrigin:true
|
|
43
|
-
},
|
|
44
|
-
'/rs/logic/getInitData': {
|
|
45
|
-
target: str3,
|
|
46
|
-
secure:true,
|
|
47
|
-
changeOrigin:true,
|
|
48
|
-
},
|
|
49
|
-
'/rs/logic/getSaleInitData': {
|
|
50
|
-
target: str3,
|
|
51
|
-
secure:true,
|
|
52
|
-
changeOrigin:true
|
|
53
|
-
},
|
|
54
|
-
// '/rs/logic':{
|
|
55
|
-
// target: str3,
|
|
56
|
-
// secure:true,
|
|
57
|
-
// changeOrigin:true
|
|
58
|
-
// // target: 'http://127.0.0.1:8080'
|
|
59
|
-
// },
|
|
60
|
-
'/rs/vue': {
|
|
61
|
-
target: str3,
|
|
62
|
-
secure:true,
|
|
63
|
-
changeOrigin:true
|
|
64
|
-
},
|
|
65
|
-
'/rs/user': {
|
|
66
|
-
target: str3,
|
|
67
|
-
secure:true,
|
|
68
|
-
changeOrigin:true
|
|
69
|
-
},
|
|
70
|
-
'/rs/db': {
|
|
71
|
-
target: str3,
|
|
72
|
-
secure:true,
|
|
73
|
-
changeOrigin:true
|
|
74
|
-
},
|
|
75
|
-
'/rs/search': {
|
|
76
|
-
target: str3,
|
|
77
|
-
secure:true,
|
|
78
|
-
changeOrigin:true
|
|
79
|
-
// target: 'http://127.0.0.1:8080'
|
|
80
|
-
},
|
|
81
|
-
'/rs/data': {
|
|
82
|
-
target: str3,
|
|
83
|
-
secure:true,
|
|
84
|
-
changeOrigin:true
|
|
85
|
-
},
|
|
86
|
-
'/rs/sql': {
|
|
87
|
-
target: str
|
|
88
|
-
// secure: true,
|
|
89
|
-
// changeOrigin:true
|
|
90
|
-
// target: 'http://127.0.0.1:8080'
|
|
91
|
-
},
|
|
92
|
-
'/rs/logic': {
|
|
93
|
-
target: str
|
|
94
|
-
// secure: true,
|
|
95
|
-
// changeOrigin:true
|
|
96
|
-
// target: 'http://127.0.0.1:8080'
|
|
97
|
-
},
|
|
98
|
-
'/rs': {
|
|
99
|
-
// target: 'http://192.168.50.199:8300'
|
|
100
|
-
target: str3,
|
|
101
|
-
secure:true,
|
|
102
|
-
changeOrigin:true
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
107
|
-
publicPath: config.output.publicPath,
|
|
108
|
-
stats: {
|
|
109
|
-
colors: true,
|
|
110
|
-
chunks: false
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
115
|
-
// force page reload when html-webpack-plugin template changes
|
|
116
|
-
compiler.plugin('compilation', function (compilation) {
|
|
117
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
118
|
-
hotMiddleware.publish({ action: 'reload' })
|
|
119
|
-
cb()
|
|
120
|
-
})
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
// proxy api requests
|
|
124
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
125
|
-
var options = proxyTable[context]
|
|
126
|
-
if (typeof options === 'string') {
|
|
127
|
-
options = { target: options }
|
|
128
|
-
}
|
|
129
|
-
app.use(proxyMiddleware(context, options))
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
// handle fallback for HTML5 history API
|
|
133
|
-
app.use(require('connect-history-api-fallback')())
|
|
134
|
-
|
|
135
|
-
// serve webpack bundle output
|
|
136
|
-
app.use(devMiddleware)
|
|
137
|
-
|
|
138
|
-
// enable hot-reload and state-preserving
|
|
139
|
-
// compilation error display
|
|
140
|
-
app.use(hotMiddleware)
|
|
141
|
-
|
|
142
|
-
// serve pure static assets
|
|
143
|
-
app.use('/static', express.static('./static'))
|
|
144
|
-
|
|
145
|
-
// app.all('/rs/*', function (req, res) {
|
|
146
|
-
// proxy.web(req, res, {
|
|
147
|
-
// target: 'http://127.0.0.1:8081/reports'
|
|
148
|
-
// })
|
|
149
|
-
// })
|
|
150
|
-
|
|
151
|
-
// app.all('/rs/*', function (req, res) {
|
|
152
|
-
// proxy.web(req, res, {
|
|
153
|
-
// target: 'http://127.0.0.1:8081/ldap'
|
|
154
|
-
// })
|
|
155
|
-
// })
|
|
156
|
-
// app.all('/excel/*', function (req, res) {
|
|
157
|
-
// proxy.web(req, res, {
|
|
158
|
-
// target: 'http://127.0.0.1:8081/charge'
|
|
159
|
-
// })
|
|
160
|
-
// })
|
|
161
|
-
|
|
162
|
-
// app.all('/rs/*', function (req, res) {
|
|
163
|
-
// proxy.web(req, res, {
|
|
164
|
-
// target: 'http://127.0.0.1:82/charge'
|
|
165
|
-
// })
|
|
166
|
-
// })
|
|
167
|
-
|
|
168
|
-
// app.all('/*', function (req, res) {
|
|
169
|
-
// proxy.web(req, res, {
|
|
170
|
-
// target: 'http://127.0.0.1:82'
|
|
171
|
-
// })
|
|
172
|
-
// })
|
|
173
|
-
// app.all('/rs/user', function (req, res) {
|
|
174
|
-
// proxy.web(req, res, {
|
|
175
|
-
// target: 'http://127.0.0.1:82'
|
|
176
|
-
// })
|
|
177
|
-
// })
|
|
178
|
-
|
|
179
|
-
module.exports = app.listen(8085, function (err) {
|
|
180
|
-
if (err) {
|
|
181
|
-
console.log(err)
|
|
182
|
-
return
|
|
183
|
-
}
|
|
184
|
-
console.log('Listening at http://localhost:8085')
|
|
185
|
-
})
|
|
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 checkVersion = require('./versionCheck.js')
|
|
7
|
+
checkVersion()
|
|
8
|
+
var app = express()
|
|
9
|
+
var compiler = webpack(config)
|
|
10
|
+
var proxy = httpProxy.createProxyServer()
|
|
11
|
+
|
|
12
|
+
// Define HTTP proxies to your custom API backend
|
|
13
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
14
|
+
var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
|
|
15
|
+
var str3= 'http://192.168.50.4:8400'
|
|
16
|
+
var proxyTable = {
|
|
17
|
+
'/api/af-auth': {
|
|
18
|
+
target: str
|
|
19
|
+
},
|
|
20
|
+
'/api/af-system': {
|
|
21
|
+
target: str
|
|
22
|
+
},
|
|
23
|
+
'/api/af-revenue': {
|
|
24
|
+
pathRewrite: {'/api/af-revenue': '/'},
|
|
25
|
+
target: 'http://127.0.0.1:9026'
|
|
26
|
+
},
|
|
27
|
+
'/rs/entity': {
|
|
28
|
+
target: str
|
|
29
|
+
// secure:true,
|
|
30
|
+
// changeOrigin:true
|
|
31
|
+
// target: 'http://127.0.0.1:8080'
|
|
32
|
+
},
|
|
33
|
+
'/webapps':{
|
|
34
|
+
target: str3,
|
|
35
|
+
secure:true,
|
|
36
|
+
changeOrigin:true
|
|
37
|
+
// target: 'http://127.0.0.1:8080'
|
|
38
|
+
},
|
|
39
|
+
'/rs/logic/getLogin': {
|
|
40
|
+
target: str3,
|
|
41
|
+
secure:true,
|
|
42
|
+
changeOrigin:true
|
|
43
|
+
},
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: str3,
|
|
46
|
+
secure:true,
|
|
47
|
+
changeOrigin:true,
|
|
48
|
+
},
|
|
49
|
+
'/rs/logic/getSaleInitData': {
|
|
50
|
+
target: str3,
|
|
51
|
+
secure:true,
|
|
52
|
+
changeOrigin:true
|
|
53
|
+
},
|
|
54
|
+
// '/rs/logic':{
|
|
55
|
+
// target: str3,
|
|
56
|
+
// secure:true,
|
|
57
|
+
// changeOrigin:true
|
|
58
|
+
// // target: 'http://127.0.0.1:8080'
|
|
59
|
+
// },
|
|
60
|
+
'/rs/vue': {
|
|
61
|
+
target: str3,
|
|
62
|
+
secure:true,
|
|
63
|
+
changeOrigin:true
|
|
64
|
+
},
|
|
65
|
+
'/rs/user': {
|
|
66
|
+
target: str3,
|
|
67
|
+
secure:true,
|
|
68
|
+
changeOrigin:true
|
|
69
|
+
},
|
|
70
|
+
'/rs/db': {
|
|
71
|
+
target: str3,
|
|
72
|
+
secure:true,
|
|
73
|
+
changeOrigin:true
|
|
74
|
+
},
|
|
75
|
+
'/rs/search': {
|
|
76
|
+
target: str3,
|
|
77
|
+
secure:true,
|
|
78
|
+
changeOrigin:true
|
|
79
|
+
// target: 'http://127.0.0.1:8080'
|
|
80
|
+
},
|
|
81
|
+
'/rs/data': {
|
|
82
|
+
target: str3,
|
|
83
|
+
secure:true,
|
|
84
|
+
changeOrigin:true
|
|
85
|
+
},
|
|
86
|
+
'/rs/sql': {
|
|
87
|
+
target: str
|
|
88
|
+
// secure: true,
|
|
89
|
+
// changeOrigin:true
|
|
90
|
+
// target: 'http://127.0.0.1:8080'
|
|
91
|
+
},
|
|
92
|
+
'/rs/logic': {
|
|
93
|
+
target: str
|
|
94
|
+
// secure: true,
|
|
95
|
+
// changeOrigin:true
|
|
96
|
+
// target: 'http://127.0.0.1:8080'
|
|
97
|
+
},
|
|
98
|
+
'/rs': {
|
|
99
|
+
// target: 'http://192.168.50.199:8300'
|
|
100
|
+
target: str3,
|
|
101
|
+
secure:true,
|
|
102
|
+
changeOrigin:true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
107
|
+
publicPath: config.output.publicPath,
|
|
108
|
+
stats: {
|
|
109
|
+
colors: true,
|
|
110
|
+
chunks: false
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
115
|
+
// force page reload when html-webpack-plugin template changes
|
|
116
|
+
compiler.plugin('compilation', function (compilation) {
|
|
117
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
118
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
119
|
+
cb()
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
|
|
123
|
+
// proxy api requests
|
|
124
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
125
|
+
var options = proxyTable[context]
|
|
126
|
+
if (typeof options === 'string') {
|
|
127
|
+
options = { target: options }
|
|
128
|
+
}
|
|
129
|
+
app.use(proxyMiddleware(context, options))
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
// handle fallback for HTML5 history API
|
|
133
|
+
app.use(require('connect-history-api-fallback')())
|
|
134
|
+
|
|
135
|
+
// serve webpack bundle output
|
|
136
|
+
app.use(devMiddleware)
|
|
137
|
+
|
|
138
|
+
// enable hot-reload and state-preserving
|
|
139
|
+
// compilation error display
|
|
140
|
+
app.use(hotMiddleware)
|
|
141
|
+
|
|
142
|
+
// serve pure static assets
|
|
143
|
+
app.use('/static', express.static('./static'))
|
|
144
|
+
|
|
145
|
+
// app.all('/rs/*', function (req, res) {
|
|
146
|
+
// proxy.web(req, res, {
|
|
147
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
148
|
+
// })
|
|
149
|
+
// })
|
|
150
|
+
|
|
151
|
+
// app.all('/rs/*', function (req, res) {
|
|
152
|
+
// proxy.web(req, res, {
|
|
153
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
154
|
+
// })
|
|
155
|
+
// })
|
|
156
|
+
// app.all('/excel/*', function (req, res) {
|
|
157
|
+
// proxy.web(req, res, {
|
|
158
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
159
|
+
// })
|
|
160
|
+
// })
|
|
161
|
+
|
|
162
|
+
// app.all('/rs/*', function (req, res) {
|
|
163
|
+
// proxy.web(req, res, {
|
|
164
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
165
|
+
// })
|
|
166
|
+
// })
|
|
167
|
+
|
|
168
|
+
// app.all('/*', function (req, res) {
|
|
169
|
+
// proxy.web(req, res, {
|
|
170
|
+
// target: 'http://127.0.0.1:82'
|
|
171
|
+
// })
|
|
172
|
+
// })
|
|
173
|
+
// app.all('/rs/user', function (req, res) {
|
|
174
|
+
// proxy.web(req, res, {
|
|
175
|
+
// target: 'http://127.0.0.1:82'
|
|
176
|
+
// })
|
|
177
|
+
// })
|
|
178
|
+
|
|
179
|
+
module.exports = app.listen(8085, function (err) {
|
|
180
|
+
if (err) {
|
|
181
|
+
console.log(err)
|
|
182
|
+
return
|
|
183
|
+
}
|
|
184
|
+
console.log('Listening at http://localhost:8085')
|
|
185
|
+
})
|
package/build/versionCheck.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
function isVersionGreaterThan (version1, version2) {
|
|
2
|
-
const v1parts = version1.split('.')
|
|
3
|
-
const v2parts = version2.split('.')
|
|
4
|
-
let flag = false
|
|
5
|
-
for (let i = 0; i < v1parts.length; ++i) {
|
|
6
|
-
if (v1parts[i] > v2parts[i]) {
|
|
7
|
-
flag = true
|
|
8
|
-
break
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return flag
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const pkg = require('../package.json')
|
|
16
|
-
const checkVersion = () => {
|
|
17
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
|
|
18
|
-
const {devDependencies} = pkg
|
|
19
|
-
if (devDependencies && devDependencies['system-clients']) {
|
|
20
|
-
if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
|
|
21
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
|
|
22
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
|
|
23
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
|
|
24
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
|
|
25
|
-
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
|
|
26
|
-
'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
module.exports = checkVersion
|
|
1
|
+
function isVersionGreaterThan (version1, version2) {
|
|
2
|
+
const v1parts = version1.split('.')
|
|
3
|
+
const v2parts = version2.split('.')
|
|
4
|
+
let flag = false
|
|
5
|
+
for (let i = 0; i < v1parts.length; ++i) {
|
|
6
|
+
if (v1parts[i] > v2parts[i]) {
|
|
7
|
+
flag = true
|
|
8
|
+
break
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return flag
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const pkg = require('../package.json')
|
|
16
|
+
const checkVersion = () => {
|
|
17
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
|
|
18
|
+
const {devDependencies} = pkg
|
|
19
|
+
if (devDependencies && devDependencies['system-clients']) {
|
|
20
|
+
if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
|
|
21
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
|
|
22
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
|
|
23
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
|
|
24
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
|
|
25
|
+
console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
|
|
26
|
+
'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
module.exports = checkVersion
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
var cssLoaders = require('./css-loaders')
|
|
3
|
-
var projectRoot = path.resolve(__dirname, '../')
|
|
4
|
-
module.exports = {
|
|
5
|
-
entry: {
|
|
6
|
-
app: './src/main.js'
|
|
7
|
-
},
|
|
8
|
-
output: {
|
|
9
|
-
path: path.resolve(__dirname, '../dist/static'),
|
|
10
|
-
publicPath: 'static/',
|
|
11
|
-
filename: '[name].js'
|
|
12
|
-
},
|
|
13
|
-
resolve: {
|
|
14
|
-
extensions: ['', '.js', '.vue'],
|
|
15
|
-
fallback: [path.join(__dirname, '../node_modules')],
|
|
16
|
-
alias: {
|
|
17
|
-
'src': path.resolve(__dirname, '../src'),
|
|
18
|
-
'test': path.resolve(__dirname, '../test'),
|
|
19
|
-
'@src': path.resolve('src')
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
resolveLoader: {
|
|
23
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
-
},
|
|
25
|
-
module: {
|
|
26
|
-
loaders: [
|
|
27
|
-
{
|
|
28
|
-
test: /\.vue$/,
|
|
29
|
-
loader: 'vue'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
test: /\.js$/,
|
|
33
|
-
loader: 'babel',
|
|
34
|
-
include: [
|
|
35
|
-
`${projectRoot}\\src`,
|
|
36
|
-
`${projectRoot}\\build`,
|
|
37
|
-
`${projectRoot}\\examples`,
|
|
38
|
-
`${projectRoot}\\test`,
|
|
39
|
-
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
40
|
-
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
-
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
-
`${projectRoot}\\node_modules\\ldap-clients\\src`,
|
|
43
|
-
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
test: /\.json$/,
|
|
48
|
-
loader: 'json'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
test: /\.html$/,
|
|
52
|
-
loader: 'vue-html'
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
test: /\.less$/,
|
|
56
|
-
loader: 'style!css!less'
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
test: /\.css$/,
|
|
60
|
-
loader: 'style!css'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
64
|
-
loader: 'url',
|
|
65
|
-
query: {
|
|
66
|
-
limit: 10000,
|
|
67
|
-
name: '[name].[ext]?[hash:7]'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
vue: {
|
|
73
|
-
loaders: cssLoaders({
|
|
74
|
-
sourceMap: false,
|
|
75
|
-
extract: false
|
|
76
|
-
})
|
|
77
|
-
},
|
|
78
|
-
plugins: [],
|
|
79
|
-
eslint: {
|
|
80
|
-
formatter: require('eslint-friendly-formatter')
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
var path = require('path')
|
|
2
|
+
var cssLoaders = require('./css-loaders')
|
|
3
|
+
var projectRoot = path.resolve(__dirname, '../')
|
|
4
|
+
module.exports = {
|
|
5
|
+
entry: {
|
|
6
|
+
app: './src/main.js'
|
|
7
|
+
},
|
|
8
|
+
output: {
|
|
9
|
+
path: path.resolve(__dirname, '../dist/static'),
|
|
10
|
+
publicPath: 'static/',
|
|
11
|
+
filename: '[name].js'
|
|
12
|
+
},
|
|
13
|
+
resolve: {
|
|
14
|
+
extensions: ['', '.js', '.vue'],
|
|
15
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
16
|
+
alias: {
|
|
17
|
+
'src': path.resolve(__dirname, '../src'),
|
|
18
|
+
'test': path.resolve(__dirname, '../test'),
|
|
19
|
+
'@src': path.resolve('src')
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
resolveLoader: {
|
|
23
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
loaders: [
|
|
27
|
+
{
|
|
28
|
+
test: /\.vue$/,
|
|
29
|
+
loader: 'vue'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
test: /\.js$/,
|
|
33
|
+
loader: 'babel',
|
|
34
|
+
include: [
|
|
35
|
+
`${projectRoot}\\src`,
|
|
36
|
+
`${projectRoot}\\build`,
|
|
37
|
+
`${projectRoot}\\examples`,
|
|
38
|
+
`${projectRoot}\\test`,
|
|
39
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
40
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
+
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
+
`${projectRoot}\\node_modules\\ldap-clients\\src`,
|
|
43
|
+
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
test: /\.json$/,
|
|
48
|
+
loader: 'json'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
test: /\.html$/,
|
|
52
|
+
loader: 'vue-html'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
test: /\.less$/,
|
|
56
|
+
loader: 'style!css!less'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
test: /\.css$/,
|
|
60
|
+
loader: 'style!css'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
64
|
+
loader: 'url',
|
|
65
|
+
query: {
|
|
66
|
+
limit: 10000,
|
|
67
|
+
name: '[name].[ext]?[hash:7]'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
vue: {
|
|
73
|
+
loaders: cssLoaders({
|
|
74
|
+
sourceMap: false,
|
|
75
|
+
extract: false
|
|
76
|
+
})
|
|
77
|
+
},
|
|
78
|
+
plugins: [],
|
|
79
|
+
eslint: {
|
|
80
|
+
formatter: require('eslint-friendly-formatter')
|
|
81
|
+
}
|
|
82
|
+
}
|