apply-clients 3.3.223 → 3.4.2-FuGu-6
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/css-loaders.js +34 -0
- package/build/dev-android.js +101 -0
- package/build/dev-client.js +8 -0
- package/build/dev-server-app.js +76 -0
- package/build/dev-server.js +119 -0
- package/build/example-server.js +80 -0
- package/build/release.sh +28 -0
- package/build/utils.js +80 -0
- package/build/webpack.base.conf.js +85 -0
- package/build/webpack.baseandroid.conf.js +84 -0
- package/build/webpack.dev.conf.js +51 -0
- package/build/webpack.devandroid.conf.js +34 -0
- package/build/webpack.example.conf.js +49 -0
- package/build/webpack.prod.conf.js +60 -0
- package/build/webpack.prodandroid.conf.js +60 -0
- package/build/webpack.test.conf.js +31 -0
- package/dingding.html +23 -0
- package/dist-android/static/doc.jpg +0 -0
- package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/dist-android/static/imgerror.jpg +0 -0
- package/dist-android/static/newStyle/clear.png +0 -0
- package/dist-android/static/newStyle/fife.png +0 -0
- package/dist-android/static/newStyle/hidden.png +0 -0
- package/dist-android/static/newStyle/label-clear.png +0 -0
- package/dist-android/static/newStyle/left-img.png +0 -0
- package/dist-android/static/newStyle/list_ok.png +0 -0
- package/dist-android/static/newStyle/login-check.png +0 -0
- package/dist-android/static/newStyle/login-con.png +0 -0
- package/dist-android/static/newStyle/login-do.gif +0 -0
- package/dist-android/static/newStyle/login-f.png +0 -0
- package/dist-android/static/newStyle/login-info.png +0 -0
- package/dist-android/static/newStyle/login-left.png +0 -0
- package/dist-android/static/newStyle/login-org.png +0 -0
- package/dist-android/static/newStyle/login-pwd.png +0 -0
- package/dist-android/static/newStyle/login-user.png +0 -0
- package/dist-android/static/newStyle/loginbg.gif +0 -0
- package/dist-android/static/newStyle/loginbg1280.gif +0 -0
- package/dist-android/static/newStyle/loginbg1366.gif +0 -0
- package/dist-android/static/newStyle/setting.png +0 -0
- package/dist-android/static/newStyle/setting1.png +0 -0
- package/dist-android/static/newStyle/shirk.png +0 -0
- package/dist-android/static/newStyle/stretch_bottom.png +0 -0
- package/dist-android/static/newStyle/stretch_left.png +0 -0
- package/dist-android/static/newStyle/stretch_right.png +0 -0
- package/dist-android/static/newStyle/stretch_top.png +0 -0
- package/dist-android/static/newStyle/system-off.png +0 -0
- package/dist-android/static/pdf.jpg +0 -0
- package/index.html +1 -1
- package/package.json +115 -114
- package/src/AndroidApp.vue +18 -13
- package/src/DingDingApp.vue +51 -0
- package/src/android.js +1 -1
- package/src/apply.js +10 -26
- package/src/applyAndroid.js +3 -32
- package/src/applyDingDing.js +12 -0
- package/src/components/android/AppOnetomany.vue +37 -21
- package/src/components/android/AppServiceView.vue +3 -7
- package/src/components/android/AppSign.vue +3 -3
- package/src/components/android/AppTakePic.vue +12 -13
- package/src/components/android/Process/AppExplorationUser.vue +88 -38
- package/src/components/android/Process/AppServiceControl.vue +87 -16
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +90 -100
- package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
- package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +29 -23
- package/src/components/android/TaskGraph.vue +125 -0
- package/src/components/build/Install/ExplorationUser.vue +304 -0
- package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/ApplyCharge/printCharge.vue +142 -0
- package/src/components/product/Function/InstallFunction.vue +11 -2
- package/src/components/product/Function/InstallInfoSelect.vue +29 -47
- package/src/components/product/Function/Service/FunctionServiceControl.vue +172 -6
- package/src/components/product/Onetomany.vue +105 -24
- package/src/components/product/Order/OrderApply.vue +30 -30
- package/src/components/product/Order/OrderApplyList.vue +79 -67
- package/src/components/product/Order/OrderMessage.vue +11 -88
- package/src/components/product/Process/ExplorationSelect.vue +176 -149
- package/src/components/product/Process/ExplorationUser.vue +95 -85
- package/src/components/product/Process/Processes/InstallationDetails.vue +440 -352
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +35 -9
- package/src/components/product/Process/Processes/chargeManagement.vue +188 -192
- package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
- package/src/components/product/Process/Processes/selectApply.vue +1 -1
- package/src/components/product/Process/Service/ServiceControl.vue +1111 -753
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +313 -423
- package/src/components/product/Stop/StopApply.vue +27 -25
- package/src/components/product/Stop/StopApplyList.vue +26 -11
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +18 -349
- package/src/components/product/Supervisory/SupervisoryControl.vue +110 -108
- package/src/components/product/Supervisory/SupervisoryList.vue +237 -253
- package/src/components/product/Supervisory/SupervisoryhCart.vue +32 -54
- package/src/components/product/VueUtils/ApplyUpload.vue +54 -45
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/dingding.js +20 -0
- package/src/expandcssAndroid.less +879 -362
- package/src/main.js +1 -1
- package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
- package/src/components/android/Function/AppInstallFunction.vue +0 -330
- package/src/components/android/Order/ApplyOrder.vue +0 -141
- package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
- package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
- package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
- package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
- package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
- package/src/components/image/danwei.png +0 -0
- package/src/components/image/dizhi.png +0 -0
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/name.png +0 -0
- package/src/components/image/phone.png +0 -0
- package/src/components/image/type.png +0 -0
- package/src/components/image/yasuobao.jpg +0 -0
- package/src/components/image/zaixiantousu1.png +0 -0
- package/src/components/image/zizhukaitong.png +0 -0
- package/src/components/image//346/210/221/347/232/204.png +0 -0
- package/src/components/product/Function/Inform.vue +0 -73
- package/src/components/product/Function/MarketSurvey.vue +0 -81
- package/src/components/product/Process/Processes/printCharge.vue +0 -121
- package/src/components/product/Process/ShowBackReason.vue +0 -33
- package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
- package/src/filiale/wuan/android.js +0 -0
- package/src/filiale/wuan/pc.js +0 -4
- package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
- package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/android.js +0 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
- package/src/filiale/yuchuan/pc.js +0 -13
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
2
|
+
|
|
3
|
+
module.exports = function (options) {
|
|
4
|
+
// generate loader string to be used with extract text plugin
|
|
5
|
+
function generateLoaders (loaders) {
|
|
6
|
+
var sourceLoader = loaders.map(function (loader) {
|
|
7
|
+
var extraParamChar
|
|
8
|
+
if (/\?/.test (loader)) {
|
|
9
|
+
loader = loader.replace(/\?/, '-loader?')
|
|
10
|
+
extraParamChar = '&'
|
|
11
|
+
} else {
|
|
12
|
+
loader = loader + '-loader'
|
|
13
|
+
extraParamChar = '?'
|
|
14
|
+
}
|
|
15
|
+
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
|
|
16
|
+
}).join('!')
|
|
17
|
+
|
|
18
|
+
if (options.extract) {
|
|
19
|
+
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
|
|
20
|
+
} else {
|
|
21
|
+
return ['vue-style-loader', sourceLoader].join('!')
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// http://vuejs.github.io/vue-loader/configurations/extract-css.html
|
|
26
|
+
return {
|
|
27
|
+
css: generateLoaders(['css']),
|
|
28
|
+
less: generateLoaders(['css', 'less']),
|
|
29
|
+
sass: generateLoaders(['css', 'sass?indentedSyntax']),
|
|
30
|
+
scss: generateLoaders(['css', 'sass']),
|
|
31
|
+
stylus: generateLoaders(['css', 'stylus']),
|
|
32
|
+
styl: generateLoaders(['css', 'stylus'])
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.devandroid.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
var http = require('http')
|
|
6
|
+
// var httpProxy = require('http-proxy')
|
|
7
|
+
|
|
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 proxyTable = {
|
|
15
|
+
// '/materials': {
|
|
16
|
+
// target: 'http://192.168.50.202:8081'
|
|
17
|
+
// },
|
|
18
|
+
// '/images': {
|
|
19
|
+
// // target: 'http://192.168.50.202:8081'
|
|
20
|
+
// target: 'http://192.168.50.202:8081'
|
|
21
|
+
// },
|
|
22
|
+
// '/rs/user': {
|
|
23
|
+
// target: 'http://192.168.50.202:8081'
|
|
24
|
+
// // target: 'http://127.0.0.1:82'
|
|
25
|
+
// },
|
|
26
|
+
// '/SaleRest/rs': {
|
|
27
|
+
// // target: 'http://127.0.0.1:8082'
|
|
28
|
+
// target: 'http://127.0.0.1:8081/'
|
|
29
|
+
// },
|
|
30
|
+
// '/rs/db': {
|
|
31
|
+
// // target: 'http://192.168.50.202:8081'
|
|
32
|
+
// target: 'http://192.168.50.202:8081'
|
|
33
|
+
// },
|
|
34
|
+
// '/excel': {
|
|
35
|
+
// // target: 'http://127.0.0.1:8082'
|
|
36
|
+
// target: 'http://127.0.0.1:8081/'
|
|
37
|
+
// },
|
|
38
|
+
'/rs': {
|
|
39
|
+
// target: 'http://127.0.0.1:8082'
|
|
40
|
+
target: 'http://127.0.0.1:8077'
|
|
41
|
+
},
|
|
42
|
+
'/AndroidRest/rs': {
|
|
43
|
+
// // target: 'http://127.0.0.1:8082'
|
|
44
|
+
target: 'http://127.0.0.1:8077'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
49
|
+
publicPath: config.output.publicPath,
|
|
50
|
+
stats: {
|
|
51
|
+
colors: true,
|
|
52
|
+
chunks: false
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
57
|
+
// force page reload when html-webpack-plugin template changes
|
|
58
|
+
compiler.plugin('compilation', function (compilation) {
|
|
59
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
60
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
61
|
+
cb()
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
// handle fallback for HTML5 history API
|
|
66
|
+
app.use(require('connect-history-api-fallback')())
|
|
67
|
+
|
|
68
|
+
// serve webpack bundle output
|
|
69
|
+
app.use(devMiddleware)
|
|
70
|
+
|
|
71
|
+
// enable hot-reload and state-preserving
|
|
72
|
+
// compilation error display
|
|
73
|
+
app.use(hotMiddleware)
|
|
74
|
+
|
|
75
|
+
// serve pure static assets
|
|
76
|
+
app.use('/static', express.static('./static'))
|
|
77
|
+
|
|
78
|
+
// proxy api requests
|
|
79
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
80
|
+
var options = proxyTable[context]
|
|
81
|
+
if (typeof options === 'string') {
|
|
82
|
+
options = { target: options }
|
|
83
|
+
}
|
|
84
|
+
// 改变源实现跨域
|
|
85
|
+
//options.changeOrigin = true
|
|
86
|
+
Object.assign(options, {
|
|
87
|
+
onProxyRes(proxyRes, req, res) {
|
|
88
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
89
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
app.use(proxyMiddleware(context, options))
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
app.listen(8082, function (err) {
|
|
96
|
+
if (err) {
|
|
97
|
+
console.log(err)
|
|
98
|
+
return
|
|
99
|
+
}
|
|
100
|
+
console.log('Listening at http://localhost:8082')
|
|
101
|
+
})
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
|
|
10
|
+
// Define HTTP proxies to your custom API backend
|
|
11
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
12
|
+
var proxyTable = {
|
|
13
|
+
'/rs': {
|
|
14
|
+
target: 'http://192.168.30.94:8555'
|
|
15
|
+
// target: 'http://192.168.30.86:8077'
|
|
16
|
+
},
|
|
17
|
+
'/AndroidRest/rs': {
|
|
18
|
+
target: 'http://192.168.30.94:8555'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
23
|
+
publicPath: config.output.publicPath,
|
|
24
|
+
stats: {
|
|
25
|
+
colors: true,
|
|
26
|
+
chunks: false
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
31
|
+
// force page reload when html-webpack-plugin template changes
|
|
32
|
+
compiler.plugin('compilation', function (compilation) {
|
|
33
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
34
|
+
hotMiddleware.publish({action: 'reload'})
|
|
35
|
+
cb()
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
// proxy api requests
|
|
40
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
41
|
+
var options = proxyTable[context]
|
|
42
|
+
if (typeof options === 'string') {
|
|
43
|
+
options = {target: options}
|
|
44
|
+
}
|
|
45
|
+
app.use(proxyMiddleware(context, options))
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// handle fallback for HTML5 history API
|
|
49
|
+
app.use(require('connect-history-api-fallback')())
|
|
50
|
+
// app.use(function (req, res, next) {
|
|
51
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
52
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
53
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
54
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
55
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
56
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
57
|
+
// next()
|
|
58
|
+
// })
|
|
59
|
+
|
|
60
|
+
// serve webpack bundle output
|
|
61
|
+
app.use(devMiddleware)
|
|
62
|
+
|
|
63
|
+
// enable hot-reload and state-preserving
|
|
64
|
+
// compilation error display
|
|
65
|
+
app.use(hotMiddleware)
|
|
66
|
+
|
|
67
|
+
// serve pure static assets
|
|
68
|
+
app.use('/static', express.static('./static'))
|
|
69
|
+
|
|
70
|
+
module.exports = app.listen(8089, function (err) {
|
|
71
|
+
if (err) {
|
|
72
|
+
console.log(err)
|
|
73
|
+
return
|
|
74
|
+
}
|
|
75
|
+
console.log('Listening at http://localhost:8089')
|
|
76
|
+
})
|
|
@@ -0,0 +1,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://192.168.50.4:8400'
|
|
12
|
+
var applyinstall = 'http://127.0.0.1:8086'
|
|
13
|
+
|
|
14
|
+
var proxyTable = {
|
|
15
|
+
'/rs/logic/getSaleInitData': {
|
|
16
|
+
target: ldap
|
|
17
|
+
},
|
|
18
|
+
'/rs/workflow': {
|
|
19
|
+
target: applyinstall
|
|
20
|
+
},
|
|
21
|
+
'/rs/vue': {
|
|
22
|
+
target: ldap
|
|
23
|
+
},
|
|
24
|
+
// 查找资源服务数据
|
|
25
|
+
'/rs/search': {
|
|
26
|
+
target: ldap
|
|
27
|
+
},
|
|
28
|
+
// 街道查询
|
|
29
|
+
'/rs/sql/address_getstreetlist': {
|
|
30
|
+
target: ldap
|
|
31
|
+
},
|
|
32
|
+
// 创建街道
|
|
33
|
+
'/rs/logic/address_updatestreet': {
|
|
34
|
+
target: ldap
|
|
35
|
+
},
|
|
36
|
+
// 创建小区
|
|
37
|
+
'/rs/logic/address_updatearea': {
|
|
38
|
+
target: ldap
|
|
39
|
+
},
|
|
40
|
+
// 用户登录服务地址
|
|
41
|
+
'/rs/user': {
|
|
42
|
+
target: ldap
|
|
43
|
+
},
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: ldap?ldap:applyinstall
|
|
46
|
+
},
|
|
47
|
+
'/rs/logic/getLogin': {
|
|
48
|
+
target: ldap
|
|
49
|
+
},
|
|
50
|
+
'/rs/file': { // 文件上传
|
|
51
|
+
target: applyinstall
|
|
52
|
+
},
|
|
53
|
+
'/project': { // 文件回显
|
|
54
|
+
target: applyinstall
|
|
55
|
+
},
|
|
56
|
+
'/rs': {
|
|
57
|
+
target: applyinstall
|
|
58
|
+
},
|
|
59
|
+
'/ws': {
|
|
60
|
+
target: applyinstall,
|
|
61
|
+
ws: true // 代理webSocket
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
66
|
+
publicPath: config.output.publicPath,
|
|
67
|
+
stats: {
|
|
68
|
+
colors: true,
|
|
69
|
+
chunks: false
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
74
|
+
// force page reload when html-webpack-plugin template changes
|
|
75
|
+
compiler.plugin('compilation', function (compilation) {
|
|
76
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
77
|
+
hotMiddleware.publish({action: 'reload'})
|
|
78
|
+
cb()
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// proxy api requests
|
|
83
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
84
|
+
var options = proxyTable[context]
|
|
85
|
+
if (typeof options === 'string') {
|
|
86
|
+
options = {target: options}
|
|
87
|
+
}
|
|
88
|
+
app.use(proxyMiddleware(context, options))
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// handle fallback for HTML5 history API
|
|
92
|
+
app.use(require('connect-history-api-fallback')())
|
|
93
|
+
// app.use(function (req, res, next) {
|
|
94
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
95
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
96
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
97
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
98
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
99
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
100
|
+
// next()
|
|
101
|
+
// })
|
|
102
|
+
|
|
103
|
+
// serve webpack bundle output
|
|
104
|
+
app.use(devMiddleware)
|
|
105
|
+
|
|
106
|
+
// enable hot-reload and state-preserving
|
|
107
|
+
// compilation error display
|
|
108
|
+
app.use(hotMiddleware)
|
|
109
|
+
|
|
110
|
+
// serve pure static assets
|
|
111
|
+
app.use('/static', express.static('./static'))
|
|
112
|
+
|
|
113
|
+
module.exports = app.listen(8300, function (err) {
|
|
114
|
+
if (err) {
|
|
115
|
+
console.log(err)
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
console.log('Listening at http://localhost:8300')
|
|
119
|
+
})
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.example.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 proxyTable = {
|
|
14
|
+
// '/api': {
|
|
15
|
+
// target: 'http://jsonplaceholder.typicode.com',
|
|
16
|
+
// changeOrigin: true,
|
|
17
|
+
// pathRewrite: {
|
|
18
|
+
// '^/api': ''
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
24
|
+
publicPath: config.output.publicPath,
|
|
25
|
+
stats: {
|
|
26
|
+
colors: true,
|
|
27
|
+
chunks: false
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
32
|
+
// force page reload when html-webpack-plugin template changes
|
|
33
|
+
compiler.plugin('compilation', function (compilation) {
|
|
34
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
35
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
36
|
+
cb()
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
// proxy api requests
|
|
41
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
42
|
+
var options = proxyTable[context]
|
|
43
|
+
if (typeof options === 'string') {
|
|
44
|
+
options = { target: options }
|
|
45
|
+
}
|
|
46
|
+
app.use(proxyMiddleware(context, options))
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
// handle fallback for HTML5 history API
|
|
50
|
+
app.use(require('connect-history-api-fallback')())
|
|
51
|
+
|
|
52
|
+
// serve webpack bundle output
|
|
53
|
+
app.use(devMiddleware)
|
|
54
|
+
|
|
55
|
+
// enable hot-reload and state-preserving
|
|
56
|
+
// compilation error display
|
|
57
|
+
app.use(hotMiddleware)
|
|
58
|
+
|
|
59
|
+
// serve pure static assets
|
|
60
|
+
app.use('/static', express.static('./static'))
|
|
61
|
+
|
|
62
|
+
// app.all('/images/*', function (req, res) {
|
|
63
|
+
// proxy.web(req, res, {
|
|
64
|
+
// target: 'http://127.0.0.1:82'
|
|
65
|
+
// })
|
|
66
|
+
// })
|
|
67
|
+
//
|
|
68
|
+
// app.all('/*', function (req, res) {
|
|
69
|
+
// proxy.web(req, res, {
|
|
70
|
+
// target: 'http://127.0.0.1:8082'
|
|
71
|
+
// })
|
|
72
|
+
// })
|
|
73
|
+
|
|
74
|
+
module.exports = app.listen(8081, function (err) {
|
|
75
|
+
if (err) {
|
|
76
|
+
console.log(err)
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
console.log('Listening at http://localhost:8081')
|
|
80
|
+
})
|
package/build/release.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
set -e
|
|
2
|
+
echo "Enter release version: "
|
|
3
|
+
read VERSION
|
|
4
|
+
|
|
5
|
+
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
|
|
6
|
+
echo # (optional) move to a new line
|
|
7
|
+
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
8
|
+
then
|
|
9
|
+
echo "Releasing $VERSION ..."
|
|
10
|
+
|
|
11
|
+
# lint
|
|
12
|
+
npm run lint 2>/dev/null
|
|
13
|
+
|
|
14
|
+
# e2e
|
|
15
|
+
npm run e2e 2>/dev/null
|
|
16
|
+
|
|
17
|
+
#build
|
|
18
|
+
npm run build
|
|
19
|
+
|
|
20
|
+
# commit
|
|
21
|
+
git add -A
|
|
22
|
+
git commit -m "[build] $VERSION"
|
|
23
|
+
npm version $VERSION --message "[release] $VERSION"
|
|
24
|
+
|
|
25
|
+
# publish
|
|
26
|
+
git push origin refs/tags/v$VERSION
|
|
27
|
+
git push
|
|
28
|
+
fi
|
package/build/utils.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var path = require('path')
|
|
2
|
+
var config = require('../config')
|
|
3
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
4
|
+
|
|
5
|
+
exports.assetsPath = function (_path) {
|
|
6
|
+
var assetsSubDirectory = process.env.NODE_ENV === 'production'
|
|
7
|
+
? config.build.assetsSubDirectory
|
|
8
|
+
: config.dev.assetsSubDirectory
|
|
9
|
+
return path.posix.join(assetsSubDirectory, _path)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.cssLoaders = function (options) {
|
|
13
|
+
options = options || {}
|
|
14
|
+
|
|
15
|
+
var cssLoader = {
|
|
16
|
+
loader: 'css-loader',
|
|
17
|
+
options: {
|
|
18
|
+
minimize: process.env.NODE_ENV === 'production',
|
|
19
|
+
sourceMap: options.sourceMap
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* const px2remLoader = {
|
|
25
|
+
loader: 'px2rem-loader',
|
|
26
|
+
options: {
|
|
27
|
+
remUnit: 37.5
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
*/
|
|
31
|
+
// generate loader string to be used with extract text plugin
|
|
32
|
+
function generateLoaders (loader, loaderOptions) {
|
|
33
|
+
// const loaders = [cssLoader, px2remLoader]
|
|
34
|
+
var loaders = [cssLoader]
|
|
35
|
+
if (loader) {
|
|
36
|
+
loaders.push({
|
|
37
|
+
loader: loader + '-loader',
|
|
38
|
+
options: Object.assign({}, loaderOptions, {
|
|
39
|
+
sourceMap: options.sourceMap
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Extract CSS when that option is specified
|
|
45
|
+
// (which is the case during production build)
|
|
46
|
+
if (options.extract) {
|
|
47
|
+
return ExtractTextPlugin.extract({
|
|
48
|
+
use: loaders,
|
|
49
|
+
fallback: 'vue-style-loader'
|
|
50
|
+
})
|
|
51
|
+
} else {
|
|
52
|
+
return ['vue-style-loader'].concat(loaders)
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
|
57
|
+
return {
|
|
58
|
+
css: generateLoaders(),
|
|
59
|
+
postcss: generateLoaders(),
|
|
60
|
+
less: generateLoaders('less'),
|
|
61
|
+
sass: generateLoaders('sass', { indentedSyntax: true }),
|
|
62
|
+
scss: generateLoaders('sass'),
|
|
63
|
+
stylus: generateLoaders('stylus'),
|
|
64
|
+
styl: generateLoaders('stylus')
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Generate loaders for standalone style files (outside of .vue)
|
|
69
|
+
exports.styleLoaders = function (options) {
|
|
70
|
+
var output = []
|
|
71
|
+
var loaders = exports.cssLoaders(options)
|
|
72
|
+
for (var extension in loaders) {
|
|
73
|
+
var loader = loaders[extension]
|
|
74
|
+
output.push({
|
|
75
|
+
test: new RegExp('\\.' + extension + '$'),
|
|
76
|
+
use: loader
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
return output
|
|
80
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var path = require('path')
|
|
2
|
+
var cssLoaders = require('./css-loaders')
|
|
3
|
+
var projectRoot = path.resolve(__dirname, '../')
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
entry: {
|
|
7
|
+
app: './src/main.js',
|
|
8
|
+
'android-app': './src/android.js',
|
|
9
|
+
'dingding-app': './src/dingding.js'
|
|
10
|
+
},
|
|
11
|
+
output: {
|
|
12
|
+
path: path.resolve(__dirname, '../dist/static'),
|
|
13
|
+
publicPath: 'static/',
|
|
14
|
+
filename: '[name].js'
|
|
15
|
+
},
|
|
16
|
+
resolve: {
|
|
17
|
+
extensions: ['', '.js', '.vue'],
|
|
18
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
19
|
+
alias: {
|
|
20
|
+
'src': path.resolve(__dirname, '../src')
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
resolveLoader: {
|
|
24
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
25
|
+
},
|
|
26
|
+
module: {
|
|
27
|
+
loaders: [
|
|
28
|
+
{
|
|
29
|
+
test: /\.vue$/,
|
|
30
|
+
loader: 'vue'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
test: /\.js$/,
|
|
34
|
+
loader: 'babel',
|
|
35
|
+
include: [
|
|
36
|
+
`${projectRoot}\\src`,
|
|
37
|
+
`${projectRoot}\\build`,
|
|
38
|
+
`${projectRoot}\\examples`,
|
|
39
|
+
`${projectRoot}\\test`,
|
|
40
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
41
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
42
|
+
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
43
|
+
`${projectRoot}\\node_modules\\ldap-clients\\src`,
|
|
44
|
+
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
45
|
+
`${projectRoot}\\node_modules\\system-phone\\src`,
|
|
46
|
+
`${projectRoot}\\node_modules\\material-client\\src`
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
test: /\.json$/,
|
|
51
|
+
loader: 'json'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.html$/,
|
|
55
|
+
loader: 'vue-html'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
test: /\.less$/,
|
|
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
|
+
test: /\.css/,
|
|
71
|
+
loader: 'style!css'
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
vue: {
|
|
76
|
+
loaders: cssLoaders({
|
|
77
|
+
sourceMap: false,
|
|
78
|
+
extract: false
|
|
79
|
+
})
|
|
80
|
+
},
|
|
81
|
+
plugins: [],
|
|
82
|
+
eslint: {
|
|
83
|
+
formatter: require('eslint-friendly-formatter')
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//path is a built-in node.js module,
|
|
2
|
+
var path = require('path')
|
|
3
|
+
//css-loaders.js in the same directory
|
|
4
|
+
var cssLoaders = require('./css-loaders')
|
|
5
|
+
//__dirname The name of the directory that the currently executing script resides in.
|
|
6
|
+
var projectRoot = path.resolve(__dirname, '../')
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
//entry point
|
|
10
|
+
entry: {
|
|
11
|
+
app: './src/android.js'
|
|
12
|
+
},
|
|
13
|
+
//output
|
|
14
|
+
output: {
|
|
15
|
+
//build output absolute directory
|
|
16
|
+
path: path.resolve(__dirname, '../dist-android/static'),
|
|
17
|
+
//public URL address of the output files when referenced in a browser
|
|
18
|
+
publicPath: './static/',
|
|
19
|
+
filename: '[name].js'
|
|
20
|
+
},
|
|
21
|
+
//resolve modules and files path
|
|
22
|
+
resolve: {
|
|
23
|
+
extensions: ['', '.js', '.vue'],
|
|
24
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
25
|
+
alias: {
|
|
26
|
+
'src': path.resolve(__dirname, '../src')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
//resolve loaders path
|
|
30
|
+
resolveLoader: {
|
|
31
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
32
|
+
},
|
|
33
|
+
module: {
|
|
34
|
+
loaders: [
|
|
35
|
+
{
|
|
36
|
+
test: /\.vue$/,
|
|
37
|
+
loader: 'vue'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
test: /\.js$/,
|
|
41
|
+
loader: 'babel',
|
|
42
|
+
include: [
|
|
43
|
+
`${projectRoot}\\src`,
|
|
44
|
+
`${projectRoot}\\build`,
|
|
45
|
+
`${projectRoot}\\examples`,
|
|
46
|
+
`${projectRoot}\\test`,
|
|
47
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
48
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
49
|
+
`${projectRoot}\\node_modules\\system-phone\\src`
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
test: /\.json$/,
|
|
54
|
+
loader: 'json'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
test: /\.html$/,
|
|
58
|
+
loader: 'vue-html'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
test: /\.less$/,
|
|
62
|
+
loader: 'style!css!less'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
66
|
+
loader: 'url',
|
|
67
|
+
query: {
|
|
68
|
+
limit: 10000,
|
|
69
|
+
name: '[name].[ext]?[hash:7]'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
vue: {
|
|
75
|
+
loaders: cssLoaders({
|
|
76
|
+
sourceMap: false,
|
|
77
|
+
extract: false
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
plugins: [],
|
|
81
|
+
eslint: {
|
|
82
|
+
formatter: require('eslint-friendly-formatter')
|
|
83
|
+
}
|
|
84
|
+
}
|