manage-client-xy 3.1.78 → 3.1.81
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 +173 -173
- package/build/webpack.base.conf.js +81 -81
- package/package.json +1 -1
- package/src/App.vue +29 -29
- package/src/Util.js +357 -357
- package/src/components/SellReport/AccountCheckingReport.vue +254 -254
- package/src/components/SellReport/BusinessReport.vue +275 -275
- package/src/components/SellReport/DateCharge.vue +227 -227
- package/src/components/SellReport/DatePayment.vue +283 -283
- package/src/components/SellReport/FinancialStatement.vue +271 -271
- package/src/components/SellReport/Gasc.vue +264 -264
- package/src/components/SellReport/ManageUserCounta.vue +285 -0
- package/src/components/SellReport/OperatorCharge.vue +227 -227
- package/src/components/SellReport/OperatorPayment.vue +284 -284
- package/src/components/SellReport/UserNumber.vue +229 -229
- package/src/components/sale/businessquery/AreaGeneralQuery.vue +677 -677
- package/src/components/sale/businessquery/BusinessManage.vue +121 -121
- package/src/components/sale/businessquery/CMHGasQuery.vue +411 -411
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +578 -578
- package/src/components/sale/businessquery/ChargeQuery.vue +952 -952
- package/src/components/sale/businessquery/FMYGasQuery.vue +410 -410
- package/src/components/sale/businessquery/FillCardQuery.vue +440 -440
- package/src/components/sale/businessquery/HandplanQuery.vue +698 -698
- package/src/components/sale/businessquery/MoveQuery.vue +396 -396
- package/src/components/sale/businessquery/NewAccountQuery.vue +483 -483
- package/src/components/sale/businessquery/OtherChargeQuery.vue +392 -392
- package/src/components/sale/businessquery/ReverseQuery.vue +429 -429
- package/src/components/sale/businessquery/SpecialChargeQuery.vue +804 -804
- package/src/components/sale/common/TabButton.vue +152 -152
- package/src/components/sale/config/exportConfig.js +407 -407
- package/src/components/sale/filesquery/ArchivesManage.vue +32 -32
- package/src/components/sale/filesquery/DeviceQuery.vue +453 -453
- package/src/components/sale/filesquery/MeterQuery.vue +771 -771
- package/src/components/sale/filesquery/UserQuery.vue +764 -764
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +554 -554
- package/src/components/webmeter/DrillData/UserGasAll.vue +435 -435
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +517 -517
- package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +532 -532
- package/src/components/webmeter/newwebmeter/UserGasList.vue +327 -327
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +335 -335
- package/src/main.js +56 -56
- package/src/reportManage.js +4 -0
- package/src/stores/MagGetSaleParams.js +112 -112
- package/yarn-error.log +134 -134
package/build/dev-server.js
CHANGED
|
@@ -1,173 +1,173 @@
|
|
|
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 bendi = 'http://172.16.16.162:8300/'
|
|
15
|
-
,fuwu ='http://172.16.16.162:8300/'
|
|
16
|
-
// ,fuwu = 'http://172.16.16.163:8300/'
|
|
17
|
-
var proxyTable = {
|
|
18
|
-
|
|
19
|
-
'/rs/logic/exportfile': {
|
|
20
|
-
target: bendi
|
|
21
|
-
},
|
|
22
|
-
'/files': {
|
|
23
|
-
target: fuwu
|
|
24
|
-
},
|
|
25
|
-
'/rs/sql': {
|
|
26
|
-
target: bendi
|
|
27
|
-
},
|
|
28
|
-
// 查找资源服务数据
|
|
29
|
-
'/rs/search': {
|
|
30
|
-
target: fuwu
|
|
31
|
-
},
|
|
32
|
-
// 查找资源服务数据
|
|
33
|
-
'/rs/logic/getLogin': {
|
|
34
|
-
target: fuwu
|
|
35
|
-
},
|
|
36
|
-
// 查找资源服务数据
|
|
37
|
-
'/rs/logic/getInitData': {
|
|
38
|
-
target: fuwu
|
|
39
|
-
},
|
|
40
|
-
'/rs/logic/getSaleInitData':{
|
|
41
|
-
target: fuwu
|
|
42
|
-
},
|
|
43
|
-
// 用户登录服务地址
|
|
44
|
-
'/rs/user': {
|
|
45
|
-
target: fuwu
|
|
46
|
-
},
|
|
47
|
-
'/rs/path/getParams': {
|
|
48
|
-
target: fuwu
|
|
49
|
-
},
|
|
50
|
-
'/rs/data': {
|
|
51
|
-
target: fuwu
|
|
52
|
-
},
|
|
53
|
-
'/rs/license': {
|
|
54
|
-
target: fuwu
|
|
55
|
-
},
|
|
56
|
-
'/rs/db': {
|
|
57
|
-
target: fuwu
|
|
58
|
-
},
|
|
59
|
-
'/excel': {
|
|
60
|
-
target: fuwu
|
|
61
|
-
},
|
|
62
|
-
'/rs/config': {
|
|
63
|
-
target: fuwu
|
|
64
|
-
},
|
|
65
|
-
'/rs/sql/getLicenseById': {
|
|
66
|
-
target: fuwu
|
|
67
|
-
},
|
|
68
|
-
'/rs/report': {
|
|
69
|
-
target: bendi
|
|
70
|
-
},
|
|
71
|
-
'/rs/vue': {
|
|
72
|
-
target: fuwu
|
|
73
|
-
},
|
|
74
|
-
'/rs/file': {
|
|
75
|
-
target: fuwu
|
|
76
|
-
},
|
|
77
|
-
'/rs/logic/SumSettleFileImport':{
|
|
78
|
-
target: 'http://127.0.0.1:8087'
|
|
79
|
-
},
|
|
80
|
-
'/rs': {
|
|
81
|
-
target: fuwu
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
86
|
-
publicPath: config.output.publicPath,
|
|
87
|
-
stats: {
|
|
88
|
-
colors: true,
|
|
89
|
-
chunks: false
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
94
|
-
// force page reload when html-webpack-plugin template changes
|
|
95
|
-
compiler.plugin('compilation', function (compilation) {
|
|
96
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
97
|
-
hotMiddleware.publish({action: 'reload'})
|
|
98
|
-
cb()
|
|
99
|
-
})
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
// proxy api requests
|
|
103
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
104
|
-
var options = proxyTable[context]
|
|
105
|
-
if (typeof options === 'string') {
|
|
106
|
-
options = {target: options}
|
|
107
|
-
}
|
|
108
|
-
app.use(proxyMiddleware(context, options))
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
// handle fallback for HTML5 history API
|
|
112
|
-
app.use(require('connect-history-api-fallback')())
|
|
113
|
-
// app.use(function (req, res, next) {
|
|
114
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
115
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
116
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
117
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
118
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
119
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
120
|
-
// next()
|
|
121
|
-
// })
|
|
122
|
-
|
|
123
|
-
// serve webpack bundle output
|
|
124
|
-
app.use(devMiddleware)
|
|
125
|
-
|
|
126
|
-
// enable hot-reload and state-preserving
|
|
127
|
-
// compilation error display
|
|
128
|
-
app.use(hotMiddleware)
|
|
129
|
-
|
|
130
|
-
// serve pure static assets
|
|
131
|
-
app.use('/static', express.static('./static'))
|
|
132
|
-
|
|
133
|
-
// app.all('/rs/*', function (req, res) {
|
|
134
|
-
// proxy.web(req, res, {
|
|
135
|
-
// target: 'http://127.0.0.1:8081/reports'
|
|
136
|
-
// })
|
|
137
|
-
// })
|
|
138
|
-
|
|
139
|
-
// app.all('/rs/*', function (req, res) {
|
|
140
|
-
// proxy.web(req, res, {
|
|
141
|
-
// target: 'http://127.0.0.1:8081/ldap'
|
|
142
|
-
// })
|
|
143
|
-
// })
|
|
144
|
-
// app.all('/excel/*', function (req, res) {
|
|
145
|
-
// proxy.web(req, res, {
|
|
146
|
-
// target: 'http://127.0.0.1:8081/charge'
|
|
147
|
-
// })
|
|
148
|
-
// })
|
|
149
|
-
|
|
150
|
-
// app.all('/rs/*', function (req, res) {
|
|
151
|
-
// proxy.web(req, res, {
|
|
152
|
-
// target: 'http://127.0.0.1:82/charge'
|
|
153
|
-
// })
|
|
154
|
-
// })
|
|
155
|
-
|
|
156
|
-
// app.all('/*', function (req, res) {
|
|
157
|
-
// proxy.web(req, res, {
|
|
158
|
-
// target: 'http://127.0.0.1:82'
|
|
159
|
-
// })
|
|
160
|
-
// })
|
|
161
|
-
// app.all('/rs/user', function (req, res) {
|
|
162
|
-
// proxy.web(req, res, {
|
|
163
|
-
// target: 'http://127.0.0.1:82'
|
|
164
|
-
// })
|
|
165
|
-
// })
|
|
166
|
-
|
|
167
|
-
module.exports = app.listen(8085, function (err) {
|
|
168
|
-
if (err) {
|
|
169
|
-
console.log(err)
|
|
170
|
-
return
|
|
171
|
-
}
|
|
172
|
-
console.log('Listening at http://localhost:8085')
|
|
173
|
-
})
|
|
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 bendi = 'http://172.16.16.162:8300/'
|
|
15
|
+
,fuwu ='http://172.16.16.162:8300/'
|
|
16
|
+
// ,fuwu = 'http://172.16.16.163:8300/'
|
|
17
|
+
var proxyTable = {
|
|
18
|
+
|
|
19
|
+
'/rs/logic/exportfile': {
|
|
20
|
+
target: bendi
|
|
21
|
+
},
|
|
22
|
+
'/files': {
|
|
23
|
+
target: fuwu
|
|
24
|
+
},
|
|
25
|
+
'/rs/sql': {
|
|
26
|
+
target: bendi
|
|
27
|
+
},
|
|
28
|
+
// 查找资源服务数据
|
|
29
|
+
'/rs/search': {
|
|
30
|
+
target: fuwu
|
|
31
|
+
},
|
|
32
|
+
// 查找资源服务数据
|
|
33
|
+
'/rs/logic/getLogin': {
|
|
34
|
+
target: fuwu
|
|
35
|
+
},
|
|
36
|
+
// 查找资源服务数据
|
|
37
|
+
'/rs/logic/getInitData': {
|
|
38
|
+
target: fuwu
|
|
39
|
+
},
|
|
40
|
+
'/rs/logic/getSaleInitData':{
|
|
41
|
+
target: fuwu
|
|
42
|
+
},
|
|
43
|
+
// 用户登录服务地址
|
|
44
|
+
'/rs/user': {
|
|
45
|
+
target: fuwu
|
|
46
|
+
},
|
|
47
|
+
'/rs/path/getParams': {
|
|
48
|
+
target: fuwu
|
|
49
|
+
},
|
|
50
|
+
'/rs/data': {
|
|
51
|
+
target: fuwu
|
|
52
|
+
},
|
|
53
|
+
'/rs/license': {
|
|
54
|
+
target: fuwu
|
|
55
|
+
},
|
|
56
|
+
'/rs/db': {
|
|
57
|
+
target: fuwu
|
|
58
|
+
},
|
|
59
|
+
'/excel': {
|
|
60
|
+
target: fuwu
|
|
61
|
+
},
|
|
62
|
+
'/rs/config': {
|
|
63
|
+
target: fuwu
|
|
64
|
+
},
|
|
65
|
+
'/rs/sql/getLicenseById': {
|
|
66
|
+
target: fuwu
|
|
67
|
+
},
|
|
68
|
+
'/rs/report': {
|
|
69
|
+
target: bendi
|
|
70
|
+
},
|
|
71
|
+
'/rs/vue': {
|
|
72
|
+
target: fuwu
|
|
73
|
+
},
|
|
74
|
+
'/rs/file': {
|
|
75
|
+
target: fuwu
|
|
76
|
+
},
|
|
77
|
+
'/rs/logic/SumSettleFileImport':{
|
|
78
|
+
target: 'http://127.0.0.1:8087'
|
|
79
|
+
},
|
|
80
|
+
'/rs': {
|
|
81
|
+
target: fuwu
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
86
|
+
publicPath: config.output.publicPath,
|
|
87
|
+
stats: {
|
|
88
|
+
colors: true,
|
|
89
|
+
chunks: false
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
94
|
+
// force page reload when html-webpack-plugin template changes
|
|
95
|
+
compiler.plugin('compilation', function (compilation) {
|
|
96
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
97
|
+
hotMiddleware.publish({action: 'reload'})
|
|
98
|
+
cb()
|
|
99
|
+
})
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
// proxy api requests
|
|
103
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
104
|
+
var options = proxyTable[context]
|
|
105
|
+
if (typeof options === 'string') {
|
|
106
|
+
options = {target: options}
|
|
107
|
+
}
|
|
108
|
+
app.use(proxyMiddleware(context, options))
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
// handle fallback for HTML5 history API
|
|
112
|
+
app.use(require('connect-history-api-fallback')())
|
|
113
|
+
// app.use(function (req, res, next) {
|
|
114
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
115
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
116
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
117
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
118
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
119
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
120
|
+
// next()
|
|
121
|
+
// })
|
|
122
|
+
|
|
123
|
+
// serve webpack bundle output
|
|
124
|
+
app.use(devMiddleware)
|
|
125
|
+
|
|
126
|
+
// enable hot-reload and state-preserving
|
|
127
|
+
// compilation error display
|
|
128
|
+
app.use(hotMiddleware)
|
|
129
|
+
|
|
130
|
+
// serve pure static assets
|
|
131
|
+
app.use('/static', express.static('./static'))
|
|
132
|
+
|
|
133
|
+
// app.all('/rs/*', function (req, res) {
|
|
134
|
+
// proxy.web(req, res, {
|
|
135
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
136
|
+
// })
|
|
137
|
+
// })
|
|
138
|
+
|
|
139
|
+
// app.all('/rs/*', function (req, res) {
|
|
140
|
+
// proxy.web(req, res, {
|
|
141
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
142
|
+
// })
|
|
143
|
+
// })
|
|
144
|
+
// app.all('/excel/*', function (req, res) {
|
|
145
|
+
// proxy.web(req, res, {
|
|
146
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
147
|
+
// })
|
|
148
|
+
// })
|
|
149
|
+
|
|
150
|
+
// app.all('/rs/*', function (req, res) {
|
|
151
|
+
// proxy.web(req, res, {
|
|
152
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
153
|
+
// })
|
|
154
|
+
// })
|
|
155
|
+
|
|
156
|
+
// app.all('/*', function (req, res) {
|
|
157
|
+
// proxy.web(req, res, {
|
|
158
|
+
// target: 'http://127.0.0.1:82'
|
|
159
|
+
// })
|
|
160
|
+
// })
|
|
161
|
+
// app.all('/rs/user', function (req, res) {
|
|
162
|
+
// proxy.web(req, res, {
|
|
163
|
+
// target: 'http://127.0.0.1:82'
|
|
164
|
+
// })
|
|
165
|
+
// })
|
|
166
|
+
|
|
167
|
+
module.exports = app.listen(8085, function (err) {
|
|
168
|
+
if (err) {
|
|
169
|
+
console.log(err)
|
|
170
|
+
return
|
|
171
|
+
}
|
|
172
|
+
console.log('Listening at http://localhost:8085')
|
|
173
|
+
})
|
|
@@ -1,81 +1,81 @@
|
|
|
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\\sale-client\\src`,
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
test: /\.json$/,
|
|
47
|
-
loader: 'json'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
test: /\.html$/,
|
|
51
|
-
loader: 'vue-html'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
test: /\.less$/,
|
|
55
|
-
loader: 'style!css!less'
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
test: /\.css$/,
|
|
59
|
-
loader: 'style!css!less'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
63
|
-
loader: 'url',
|
|
64
|
-
query: {
|
|
65
|
-
limit: 10000,
|
|
66
|
-
name: '[name].[ext]?[hash:7]'
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
vue: {
|
|
72
|
-
loaders: cssLoaders({
|
|
73
|
-
sourceMap: false,
|
|
74
|
-
extract: false
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
plugins: [],
|
|
78
|
-
eslint: {
|
|
79
|
-
formatter: require('eslint-friendly-formatter')
|
|
80
|
-
}
|
|
81
|
-
}
|
|
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\\sale-client\\src`,
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
test: /\.json$/,
|
|
47
|
+
loader: 'json'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
test: /\.html$/,
|
|
51
|
+
loader: 'vue-html'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.less$/,
|
|
55
|
+
loader: 'style!css!less'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
test: /\.css$/,
|
|
59
|
+
loader: 'style!css!less'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
63
|
+
loader: 'url',
|
|
64
|
+
query: {
|
|
65
|
+
limit: 10000,
|
|
66
|
+
name: '[name].[ext]?[hash:7]'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
vue: {
|
|
72
|
+
loaders: cssLoaders({
|
|
73
|
+
sourceMap: false,
|
|
74
|
+
extract: false
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
plugins: [],
|
|
78
|
+
eslint: {
|
|
79
|
+
formatter: require('eslint-friendly-formatter')
|
|
80
|
+
}
|
|
81
|
+
}
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<!-- <route :comp="{name: 'manage-main'}"></route>-->
|
|
7
|
-
<route :comp="{name: 'login'}"></route>
|
|
8
|
-
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
9
|
-
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
10
|
-
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
11
|
-
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
12
|
-
<!--<route :comp="{name: 'login'}"></route>-->
|
|
13
|
-
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
14
|
-
<!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
|
|
15
|
-
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
16
|
-
</article>
|
|
17
|
-
</div>
|
|
18
|
-
</app-base>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<!-- <route :comp="{name: 'manage-main'}"></route>-->
|
|
7
|
+
<route :comp="{name: 'login'}"></route>
|
|
8
|
+
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
9
|
+
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
10
|
+
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
11
|
+
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
12
|
+
<!--<route :comp="{name: 'login'}"></route>-->
|
|
13
|
+
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
14
|
+
<!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
|
|
15
|
+
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
16
|
+
</article>
|
|
17
|
+
</div>
|
|
18
|
+
</app-base>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
</script>
|