manage-client 3.2.65-aode → 3.2.66-aode
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 +193 -193
- package/build/webpack.base.conf.js +79 -79
- package/client.iml +14 -14
- package/package.json +1 -1
- package/src/Util.js +383 -383
- package/src/components/MeterManage/MeterList.vue +336 -336
- package/src/components/WebReport/UserGasAll.vue +214 -214
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
- package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
- package/src/components/sale/businessquery/DeductionGas.vue +149 -149
- package/src/components/sale/businessquery/DisableQuery.vue +315 -315
- package/src/components/sale/businessquery/EnableQuery.vue +315 -315
- package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
- package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
- package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
- package/src/components/sale/businessquery/InspectListGas.vue +456 -456
- package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
- package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
- package/src/components/sale/businessquery/QueryUserState.vue +313 -313
- package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
- package/src/components/sale/businessquery/TransferQuery.vue +363 -363
- package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
- package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
- package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
- package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
- package/src/components/sale/filesquery/MeterQuery.vue +593 -593
- package/src/components/sale/filesquery/UserQuery.vue +556 -556
- package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
- package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
- package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
- package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
- package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
- package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
- package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
- package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
- package/src/components/sale/report/aode/DayReportList.vue +516 -516
- package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
- package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
- package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
- package/src/components/sale/report/aode/YearByUserType.vue +342 -342
- package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
- package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
- package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
- package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
- package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
- package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
- package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
- package/src/components/webmeter/ArreasuserQuery.vue +193 -193
- package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
- package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
- package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
- package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
- package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
- package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
- package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
- package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
- package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
- package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
- package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
- package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
- package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
- package/src/components/webmeter/report/ReportList.vue +211 -211
- package/src/main.js +56 -56
- package/src/saleManage.js +4 -0
package/build/dev-server.js
CHANGED
|
@@ -1,193 +1,193 @@
|
|
|
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
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
11
|
-
// Define HTTP proxies to your custom API backend
|
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
|
-
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
15
|
-
var str = 'http://192.168.10.14:8300', fuwu = 'http://192.168.10.233:8300', bendi = 'http://localhost:9025/'
|
|
16
|
-
// var str = 'http://121.36.106.17:8400' , fuwu = 'http://121.36.106.17:8400' , bendi = 'http://192.168.10.14:8300'
|
|
17
|
-
var proxyTable = {
|
|
18
|
-
|
|
19
|
-
'/rs/easyexcel/': {
|
|
20
|
-
target: 'http://192.168.10.14:8600/manage/'
|
|
21
|
-
},
|
|
22
|
-
'/rs/logic/exportfile': {
|
|
23
|
-
target: fuwu
|
|
24
|
-
},
|
|
25
|
-
'/rs/sql/aode_YearByChargeType':{
|
|
26
|
-
target:fuwu+"/staticpage/yearbychargetype/"
|
|
27
|
-
},
|
|
28
|
-
'/rs/sql/aode_YearByUserType':{
|
|
29
|
-
target:fuwu+"/staticpage/yearbyusertype/"
|
|
30
|
-
},
|
|
31
|
-
'/rs/sql/aode_monthByChargeType':{
|
|
32
|
-
target:fuwu+"/staticpage/monthbychargetype/"
|
|
33
|
-
},
|
|
34
|
-
'/files': {
|
|
35
|
-
target: fuwu
|
|
36
|
-
},
|
|
37
|
-
// 查找资源服务数据
|
|
38
|
-
'/rs/search': {
|
|
39
|
-
target: fuwu
|
|
40
|
-
},
|
|
41
|
-
'/rs/ckh/singleTableParam': {
|
|
42
|
-
target: fuwu
|
|
43
|
-
},
|
|
44
|
-
'/rs/easyexcel/exportCkh': {
|
|
45
|
-
target: fuwu
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
'/rs/sql/webmeter_getNewHandChanceList': {
|
|
49
|
-
target: bendi
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
'/rs/logic/chargevaluesave': {
|
|
53
|
-
target: 'http://localhost:8025'
|
|
54
|
-
},
|
|
55
|
-
'/rs/logic/chargevalueaddinfo': {
|
|
56
|
-
target: 'http://localhost:8025'
|
|
57
|
-
},
|
|
58
|
-
'/rs/logic/valueaddinfo': {
|
|
59
|
-
target: 'http://localhost:8025'
|
|
60
|
-
},
|
|
61
|
-
// 查找资源服务数据
|
|
62
|
-
'/rs/logic/getLogin': {
|
|
63
|
-
target: fuwu
|
|
64
|
-
},
|
|
65
|
-
// 查找资源服务数据
|
|
66
|
-
'/rs/logic/getInitData': {
|
|
67
|
-
target: fuwu
|
|
68
|
-
},
|
|
69
|
-
// 用户登录服务地址
|
|
70
|
-
'/rs/user': {
|
|
71
|
-
target: fuwu
|
|
72
|
-
},
|
|
73
|
-
'/rs/path/getParams': {
|
|
74
|
-
target: fuwu
|
|
75
|
-
},
|
|
76
|
-
'/rs/data': {
|
|
77
|
-
target: fuwu
|
|
78
|
-
},
|
|
79
|
-
'/rs/license': {
|
|
80
|
-
target: fuwu
|
|
81
|
-
},
|
|
82
|
-
'/rs/db': {
|
|
83
|
-
target: fuwu
|
|
84
|
-
},
|
|
85
|
-
'/excel': {
|
|
86
|
-
target: fuwu
|
|
87
|
-
},
|
|
88
|
-
'/rs/config': {
|
|
89
|
-
target: fuwu
|
|
90
|
-
},
|
|
91
|
-
'/rs/sql/getLicenseById': {
|
|
92
|
-
target: fuwu
|
|
93
|
-
},
|
|
94
|
-
'/rs/report': {
|
|
95
|
-
target: fuwu
|
|
96
|
-
},
|
|
97
|
-
'/rs/vue': {
|
|
98
|
-
target: fuwu
|
|
99
|
-
},
|
|
100
|
-
'/rs': {
|
|
101
|
-
target: fuwu
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
106
|
-
publicPath: config.output.publicPath,
|
|
107
|
-
stats: {
|
|
108
|
-
colors: true,
|
|
109
|
-
chunks: false
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
114
|
-
// force page reload when html-webpack-plugin template changes
|
|
115
|
-
compiler.plugin('compilation', function (compilation) {
|
|
116
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
117
|
-
hotMiddleware.publish({action: 'reload'})
|
|
118
|
-
cb()
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
|
|
122
|
-
// proxy api requests
|
|
123
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
124
|
-
var options = proxyTable[context]
|
|
125
|
-
if (typeof options === 'string') {
|
|
126
|
-
options = {target: options}
|
|
127
|
-
}
|
|
128
|
-
app.use(proxyMiddleware(context, options))
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
// handle fallback for HTML5 history API
|
|
132
|
-
app.use(require('connect-history-api-fallback')())
|
|
133
|
-
// app.use(function (req, res, next) {
|
|
134
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
135
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
136
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
137
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
138
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
139
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
140
|
-
// next()
|
|
141
|
-
// })
|
|
142
|
-
|
|
143
|
-
// serve webpack bundle output
|
|
144
|
-
app.use(devMiddleware)
|
|
145
|
-
|
|
146
|
-
// enable hot-reload and state-preserving
|
|
147
|
-
// compilation error display
|
|
148
|
-
app.use(hotMiddleware)
|
|
149
|
-
|
|
150
|
-
// serve pure static assets
|
|
151
|
-
app.use('/static', express.static('./static'))
|
|
152
|
-
|
|
153
|
-
// app.all('/rs/*', function (req, res) {
|
|
154
|
-
// proxy.web(req, res, {
|
|
155
|
-
// target: 'http://127.0.0.1:8081/reports'
|
|
156
|
-
// })
|
|
157
|
-
// })
|
|
158
|
-
|
|
159
|
-
// app.all('/rs/*', function (req, res) {
|
|
160
|
-
// proxy.web(req, res, {
|
|
161
|
-
// target: 'http://127.0.0.1:8081/ldap'
|
|
162
|
-
// })
|
|
163
|
-
// })
|
|
164
|
-
// app.all('/excel/*', function (req, res) {
|
|
165
|
-
// proxy.web(req, res, {
|
|
166
|
-
// target: 'http://127.0.0.1:8081/charge'
|
|
167
|
-
// })
|
|
168
|
-
// })
|
|
169
|
-
|
|
170
|
-
// app.all('/rs/*', function (req, res) {
|
|
171
|
-
// proxy.web(req, res, {
|
|
172
|
-
// target: 'http://127.0.0.1:82/charge'
|
|
173
|
-
// })
|
|
174
|
-
// })
|
|
175
|
-
|
|
176
|
-
// app.all('/*', function (req, res) {
|
|
177
|
-
// proxy.web(req, res, {
|
|
178
|
-
// target: 'http://127.0.0.1:82'
|
|
179
|
-
// })
|
|
180
|
-
// })
|
|
181
|
-
// app.all('/rs/user', function (req, res) {
|
|
182
|
-
// proxy.web(req, res, {
|
|
183
|
-
// target: 'http://127.0.0.1:82'
|
|
184
|
-
// })
|
|
185
|
-
// })
|
|
186
|
-
|
|
187
|
-
module.exports = app.listen(8099, function (err) {
|
|
188
|
-
if (err) {
|
|
189
|
-
console.log(err)
|
|
190
|
-
return
|
|
191
|
-
}
|
|
192
|
-
console.log('Listening at http://localhost:8099')
|
|
193
|
-
})
|
|
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
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
11
|
+
// Define HTTP proxies to your custom API backend
|
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
+
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
|
+
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
15
|
+
var str = 'http://192.168.10.14:8300', fuwu = 'http://192.168.10.233:8300', bendi = 'http://localhost:9025/'
|
|
16
|
+
// var str = 'http://121.36.106.17:8400' , fuwu = 'http://121.36.106.17:8400' , bendi = 'http://192.168.10.14:8300'
|
|
17
|
+
var proxyTable = {
|
|
18
|
+
|
|
19
|
+
'/rs/easyexcel/': {
|
|
20
|
+
target: 'http://192.168.10.14:8600/manage/'
|
|
21
|
+
},
|
|
22
|
+
'/rs/logic/exportfile': {
|
|
23
|
+
target: fuwu
|
|
24
|
+
},
|
|
25
|
+
'/rs/sql/aode_YearByChargeType':{
|
|
26
|
+
target:fuwu+"/staticpage/yearbychargetype/"
|
|
27
|
+
},
|
|
28
|
+
'/rs/sql/aode_YearByUserType':{
|
|
29
|
+
target:fuwu+"/staticpage/yearbyusertype/"
|
|
30
|
+
},
|
|
31
|
+
'/rs/sql/aode_monthByChargeType':{
|
|
32
|
+
target:fuwu+"/staticpage/monthbychargetype/"
|
|
33
|
+
},
|
|
34
|
+
'/files': {
|
|
35
|
+
target: fuwu
|
|
36
|
+
},
|
|
37
|
+
// 查找资源服务数据
|
|
38
|
+
'/rs/search': {
|
|
39
|
+
target: fuwu
|
|
40
|
+
},
|
|
41
|
+
'/rs/ckh/singleTableParam': {
|
|
42
|
+
target: fuwu
|
|
43
|
+
},
|
|
44
|
+
'/rs/easyexcel/exportCkh': {
|
|
45
|
+
target: fuwu
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
'/rs/sql/webmeter_getNewHandChanceList': {
|
|
49
|
+
target: bendi
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
'/rs/logic/chargevaluesave': {
|
|
53
|
+
target: 'http://localhost:8025'
|
|
54
|
+
},
|
|
55
|
+
'/rs/logic/chargevalueaddinfo': {
|
|
56
|
+
target: 'http://localhost:8025'
|
|
57
|
+
},
|
|
58
|
+
'/rs/logic/valueaddinfo': {
|
|
59
|
+
target: 'http://localhost:8025'
|
|
60
|
+
},
|
|
61
|
+
// 查找资源服务数据
|
|
62
|
+
'/rs/logic/getLogin': {
|
|
63
|
+
target: fuwu
|
|
64
|
+
},
|
|
65
|
+
// 查找资源服务数据
|
|
66
|
+
'/rs/logic/getInitData': {
|
|
67
|
+
target: fuwu
|
|
68
|
+
},
|
|
69
|
+
// 用户登录服务地址
|
|
70
|
+
'/rs/user': {
|
|
71
|
+
target: fuwu
|
|
72
|
+
},
|
|
73
|
+
'/rs/path/getParams': {
|
|
74
|
+
target: fuwu
|
|
75
|
+
},
|
|
76
|
+
'/rs/data': {
|
|
77
|
+
target: fuwu
|
|
78
|
+
},
|
|
79
|
+
'/rs/license': {
|
|
80
|
+
target: fuwu
|
|
81
|
+
},
|
|
82
|
+
'/rs/db': {
|
|
83
|
+
target: fuwu
|
|
84
|
+
},
|
|
85
|
+
'/excel': {
|
|
86
|
+
target: fuwu
|
|
87
|
+
},
|
|
88
|
+
'/rs/config': {
|
|
89
|
+
target: fuwu
|
|
90
|
+
},
|
|
91
|
+
'/rs/sql/getLicenseById': {
|
|
92
|
+
target: fuwu
|
|
93
|
+
},
|
|
94
|
+
'/rs/report': {
|
|
95
|
+
target: fuwu
|
|
96
|
+
},
|
|
97
|
+
'/rs/vue': {
|
|
98
|
+
target: fuwu
|
|
99
|
+
},
|
|
100
|
+
'/rs': {
|
|
101
|
+
target: fuwu
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
106
|
+
publicPath: config.output.publicPath,
|
|
107
|
+
stats: {
|
|
108
|
+
colors: true,
|
|
109
|
+
chunks: false
|
|
110
|
+
}
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
114
|
+
// force page reload when html-webpack-plugin template changes
|
|
115
|
+
compiler.plugin('compilation', function (compilation) {
|
|
116
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
117
|
+
hotMiddleware.publish({action: 'reload'})
|
|
118
|
+
cb()
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
// proxy api requests
|
|
123
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
124
|
+
var options = proxyTable[context]
|
|
125
|
+
if (typeof options === 'string') {
|
|
126
|
+
options = {target: options}
|
|
127
|
+
}
|
|
128
|
+
app.use(proxyMiddleware(context, options))
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
// handle fallback for HTML5 history API
|
|
132
|
+
app.use(require('connect-history-api-fallback')())
|
|
133
|
+
// app.use(function (req, res, next) {
|
|
134
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
135
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
136
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
137
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
138
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
139
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
140
|
+
// next()
|
|
141
|
+
// })
|
|
142
|
+
|
|
143
|
+
// serve webpack bundle output
|
|
144
|
+
app.use(devMiddleware)
|
|
145
|
+
|
|
146
|
+
// enable hot-reload and state-preserving
|
|
147
|
+
// compilation error display
|
|
148
|
+
app.use(hotMiddleware)
|
|
149
|
+
|
|
150
|
+
// serve pure static assets
|
|
151
|
+
app.use('/static', express.static('./static'))
|
|
152
|
+
|
|
153
|
+
// app.all('/rs/*', function (req, res) {
|
|
154
|
+
// proxy.web(req, res, {
|
|
155
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
156
|
+
// })
|
|
157
|
+
// })
|
|
158
|
+
|
|
159
|
+
// app.all('/rs/*', function (req, res) {
|
|
160
|
+
// proxy.web(req, res, {
|
|
161
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
162
|
+
// })
|
|
163
|
+
// })
|
|
164
|
+
// app.all('/excel/*', function (req, res) {
|
|
165
|
+
// proxy.web(req, res, {
|
|
166
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
167
|
+
// })
|
|
168
|
+
// })
|
|
169
|
+
|
|
170
|
+
// app.all('/rs/*', function (req, res) {
|
|
171
|
+
// proxy.web(req, res, {
|
|
172
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
173
|
+
// })
|
|
174
|
+
// })
|
|
175
|
+
|
|
176
|
+
// app.all('/*', function (req, res) {
|
|
177
|
+
// proxy.web(req, res, {
|
|
178
|
+
// target: 'http://127.0.0.1:82'
|
|
179
|
+
// })
|
|
180
|
+
// })
|
|
181
|
+
// app.all('/rs/user', function (req, res) {
|
|
182
|
+
// proxy.web(req, res, {
|
|
183
|
+
// target: 'http://127.0.0.1:82'
|
|
184
|
+
// })
|
|
185
|
+
// })
|
|
186
|
+
|
|
187
|
+
module.exports = app.listen(8099, function (err) {
|
|
188
|
+
if (err) {
|
|
189
|
+
console.log(err)
|
|
190
|
+
return
|
|
191
|
+
}
|
|
192
|
+
console.log('Listening at http://localhost:8099')
|
|
193
|
+
})
|
|
@@ -1,79 +1,79 @@
|
|
|
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
|
-
}
|
|
20
|
-
},
|
|
21
|
-
resolveLoader: {
|
|
22
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
|
23
|
-
},
|
|
24
|
-
module: {
|
|
25
|
-
loaders: [
|
|
26
|
-
{
|
|
27
|
-
test: /\.vue$/,
|
|
28
|
-
loader: 'vue'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
test: /\.js$/,
|
|
32
|
-
loader: 'babel',
|
|
33
|
-
include: [
|
|
34
|
-
`${projectRoot}\\src`,
|
|
35
|
-
`${projectRoot}\\build`,
|
|
36
|
-
`${projectRoot}\\examples`,
|
|
37
|
-
`${projectRoot}\\test`,
|
|
38
|
-
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
39
|
-
`${projectRoot}\\node_modules\\vue-client\\src\\plugins`,
|
|
40
|
-
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
-
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
-
`${projectRoot}\\node_modules\\jsencrypt`,
|
|
43
|
-
`${projectRoot}\\node_modules\\axios`,
|
|
44
|
-
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
test: /\.json$/,
|
|
49
|
-
loader: 'json'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
test: /\.html$/,
|
|
53
|
-
loader: 'vue-html'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
test: /\.less$/,
|
|
57
|
-
loader: 'style!css!less'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
61
|
-
loader: 'url',
|
|
62
|
-
query: {
|
|
63
|
-
limit: 10000,
|
|
64
|
-
name: '[name].[ext]?[hash:7]'
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
vue: {
|
|
70
|
-
loaders: cssLoaders({
|
|
71
|
-
sourceMap: false,
|
|
72
|
-
extract: false
|
|
73
|
-
})
|
|
74
|
-
},
|
|
75
|
-
plugins: [],
|
|
76
|
-
eslint: {
|
|
77
|
-
formatter: require('eslint-friendly-formatter')
|
|
78
|
-
}
|
|
79
|
-
}
|
|
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
|
+
}
|
|
20
|
+
},
|
|
21
|
+
resolveLoader: {
|
|
22
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
23
|
+
},
|
|
24
|
+
module: {
|
|
25
|
+
loaders: [
|
|
26
|
+
{
|
|
27
|
+
test: /\.vue$/,
|
|
28
|
+
loader: 'vue'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
test: /\.js$/,
|
|
32
|
+
loader: 'babel',
|
|
33
|
+
include: [
|
|
34
|
+
`${projectRoot}\\src`,
|
|
35
|
+
`${projectRoot}\\build`,
|
|
36
|
+
`${projectRoot}\\examples`,
|
|
37
|
+
`${projectRoot}\\test`,
|
|
38
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
39
|
+
`${projectRoot}\\node_modules\\vue-client\\src\\plugins`,
|
|
40
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
+
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
+
`${projectRoot}\\node_modules\\jsencrypt`,
|
|
43
|
+
`${projectRoot}\\node_modules\\axios`,
|
|
44
|
+
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
test: /\.json$/,
|
|
49
|
+
loader: 'json'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
test: /\.html$/,
|
|
53
|
+
loader: 'vue-html'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
test: /\.less$/,
|
|
57
|
+
loader: 'style!css!less'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
61
|
+
loader: 'url',
|
|
62
|
+
query: {
|
|
63
|
+
limit: 10000,
|
|
64
|
+
name: '[name].[ext]?[hash:7]'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
vue: {
|
|
70
|
+
loaders: cssLoaders({
|
|
71
|
+
sourceMap: false,
|
|
72
|
+
extract: false
|
|
73
|
+
})
|
|
74
|
+
},
|
|
75
|
+
plugins: [],
|
|
76
|
+
eslint: {
|
|
77
|
+
formatter: require('eslint-friendly-formatter')
|
|
78
|
+
}
|
|
79
|
+
}
|
package/client.iml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="EclipseModuleManager">
|
|
4
|
-
<conelement value="org.springsource.ide.eclipse.gradle.classpathcontainer" />
|
|
5
|
-
<src_description expected_position="0" />
|
|
6
|
-
</component>
|
|
7
|
-
<component name="NewModuleRootManager">
|
|
8
|
-
<output url="file://$MODULE_DIR$/bin" />
|
|
9
|
-
<exclude-output />
|
|
10
|
-
<content url="file://$MODULE_DIR$" />
|
|
11
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
12
|
-
<orderEntry type="inheritedJdk" />
|
|
13
|
-
<orderEntry type="library" exported="" name="org.springsource.ide.eclipse.gradle.classpathcontainer" level="application" />
|
|
14
|
-
</component>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="EclipseModuleManager">
|
|
4
|
+
<conelement value="org.springsource.ide.eclipse.gradle.classpathcontainer" />
|
|
5
|
+
<src_description expected_position="0" />
|
|
6
|
+
</component>
|
|
7
|
+
<component name="NewModuleRootManager">
|
|
8
|
+
<output url="file://$MODULE_DIR$/bin" />
|
|
9
|
+
<exclude-output />
|
|
10
|
+
<content url="file://$MODULE_DIR$" />
|
|
11
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
12
|
+
<orderEntry type="inheritedJdk" />
|
|
13
|
+
<orderEntry type="library" exported="" name="org.springsource.ide.eclipse.gradle.classpathcontainer" level="application" />
|
|
14
|
+
</component>
|
|
15
15
|
</module>
|