apply-clients 3.3.217 → 3.4.2
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/android.html +23 -23
- 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 +84 -0
- package/build/webpack.baseandroid.conf.js +84 -0
- package/build/webpack.dev.conf.js +39 -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/index.html +33 -33
- package/package.json +3 -3
- package/src/AndroidApp.vue +35 -30
- package/src/App.vue +20 -20
- package/src/android.js +21 -21
- package/src/apply.js +81 -90
- package/src/applyAndroid.js +32 -53
- package/src/components/android/AppOnetomany.vue +301 -285
- package/src/components/android/AppServiceView.vue +566 -570
- package/src/components/android/AppSign.vue +142 -142
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +320 -270
- package/src/components/android/Process/AppServiceControl.vue +757 -686
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
- 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 +121 -115
- 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/Function/InstallFunction.vue +125 -122
- package/src/components/product/Function/InstallInfoSelect.vue +292 -318
- package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
- package/src/components/product/Function/functions/StopInstall.vue +106 -0
- package/src/components/product/Onetomany.vue +377 -296
- package/src/components/product/Order/OrderApply.vue +30 -30
- package/src/components/product/Order/OrderApplyList.vue +78 -67
- package/src/components/product/Order/OrderMessage.vue +11 -87
- package/src/components/product/Process/ExplorationSelect.vue +410 -369
- package/src/components/product/Process/ExplorationUser.vue +138 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
- 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 +1254 -883
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +631 -741
- package/src/components/product/Stop/StopApply.vue +103 -103
- package/src/components/product/Stop/StopApplyList.vue +269 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
- package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
- package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -517
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +731 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -456
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -0
- package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -0
- package/src/{components/android/Process/Processes/AppBuildSign.vue → filiale/yuchuan/android/Sign/BuildSign.vue} +50 -47
- package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -0
- package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -0
- package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -0
- package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -0
- package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
- package/src/filiale/yuchuan/android.js +14 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -131
- package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -0
- package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1074 -517
- package/src/filiale/yuchuan/pc.js +12 -13
- package/src/main.js +23 -23
- package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
- package/src/components/android/Function/AppInstallFunction.vue +0 -330
- 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/dwg.jpg +0 -0
- package/src/components/image/yasuobao.jpg +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/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var webpack = require('webpack')
|
|
2
|
+
var merge = require('webpack-merge')
|
|
3
|
+
var baseConfig = require('./webpack.base.conf')
|
|
4
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
5
|
+
|
|
6
|
+
// add hot-reload related code to entry chunks
|
|
7
|
+
Object.keys(baseConfig.entry).forEach(function (name) {
|
|
8
|
+
baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
module.exports = merge(baseConfig, {
|
|
12
|
+
// eval-source-map is faster for development
|
|
13
|
+
devtool: '#eval-source-map',
|
|
14
|
+
output: {
|
|
15
|
+
// necessary for the html plugin to work properly
|
|
16
|
+
// when serving the html from in-memory
|
|
17
|
+
publicPath: '/'
|
|
18
|
+
},
|
|
19
|
+
plugins: [
|
|
20
|
+
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
|
21
|
+
new webpack.optimize.OccurenceOrderPlugin(),
|
|
22
|
+
new webpack.HotModuleReplacementPlugin(),
|
|
23
|
+
new webpack.NoErrorsPlugin(),
|
|
24
|
+
// https://github.com/ampedandwired/html-webpack-plugin
|
|
25
|
+
new HtmlWebpackPlugin({
|
|
26
|
+
filename: 'index.html',
|
|
27
|
+
template: 'index.html',
|
|
28
|
+
inject: true,
|
|
29
|
+
chunks: ['app']
|
|
30
|
+
}),
|
|
31
|
+
// 安卓模拟页面
|
|
32
|
+
new HtmlWebpackPlugin({
|
|
33
|
+
filename: 'android.html',
|
|
34
|
+
template: 'android.html',
|
|
35
|
+
inject: true,
|
|
36
|
+
chunks: ['android-app']
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
})
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var webpack = require('webpack')
|
|
2
|
+
var merge = require('webpack-merge')
|
|
3
|
+
var baseConfig = require('./webpack.baseandroid.conf')
|
|
4
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
5
|
+
|
|
6
|
+
// add hot-reload related code to entry chunks
|
|
7
|
+
Object.keys(baseConfig.entry).forEach(function (name) {
|
|
8
|
+
baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
module.exports = merge(baseConfig, {
|
|
12
|
+
// eval-source-map is faster for development
|
|
13
|
+
devtool: 'source-map',
|
|
14
|
+
//devtool: '#eval-source-map',
|
|
15
|
+
output: {
|
|
16
|
+
// necessary for the html plugin to work properly
|
|
17
|
+
// when serving the html from in-memory
|
|
18
|
+
publicPath: '/'
|
|
19
|
+
},
|
|
20
|
+
plugins: [
|
|
21
|
+
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
|
22
|
+
new webpack.optimize.OccurenceOrderPlugin(),
|
|
23
|
+
new webpack.HotModuleReplacementPlugin(),
|
|
24
|
+
new webpack.NoErrorsPlugin(),
|
|
25
|
+
// https://github.com/ampedandwired/html-webpack-plugin
|
|
26
|
+
//plugin trick
|
|
27
|
+
new HtmlWebpackPlugin({
|
|
28
|
+
filename: 'android.html',
|
|
29
|
+
template: 'android.html',
|
|
30
|
+
inject: true,
|
|
31
|
+
chunks: ['android-app']
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
})
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var fs = require('fs')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var merge = require('webpack-merge')
|
|
4
|
+
var baseConfig = require('./webpack.base.conf')
|
|
5
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
6
|
+
|
|
7
|
+
// add hot-reload related code to entry chunks
|
|
8
|
+
Object.keys(baseConfig.entry).forEach(function (name) {
|
|
9
|
+
baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// 把examples下所有index.html转换成测试例子.html
|
|
13
|
+
fs.readdirSync('./examples').forEach((file) => {
|
|
14
|
+
baseConfig.plugins.push(
|
|
15
|
+
// https://github.com/ampedandwired/html-webpack-plugin
|
|
16
|
+
new HtmlWebpackPlugin({
|
|
17
|
+
filename: file + '.html',
|
|
18
|
+
template: `examples/${file}/index.html`,
|
|
19
|
+
inject: false
|
|
20
|
+
})
|
|
21
|
+
)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// 把examples下子目录里的main.js打包成对应组件名的App.js
|
|
25
|
+
fs.readdirSync('./examples').forEach((file) => {
|
|
26
|
+
baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
module.exports = merge(baseConfig, {
|
|
30
|
+
// eval-source-map is faster for development
|
|
31
|
+
devtool: '#eval-source-map',
|
|
32
|
+
output: {
|
|
33
|
+
// necessary for the html plugin to work properly
|
|
34
|
+
// when serving the html from in-memory
|
|
35
|
+
publicPath: '/'
|
|
36
|
+
},
|
|
37
|
+
plugins: [
|
|
38
|
+
// https://github.com/glenjamin/webpack-hot-middleware#installation--usage
|
|
39
|
+
new webpack.optimize.OccurenceOrderPlugin(),
|
|
40
|
+
new webpack.HotModuleReplacementPlugin(),
|
|
41
|
+
new webpack.NoErrorsPlugin(),
|
|
42
|
+
// https://github.com/ampedandwired/html-webpack-plugin
|
|
43
|
+
new HtmlWebpackPlugin({
|
|
44
|
+
filename: 'index.html',
|
|
45
|
+
template: 'index.html',
|
|
46
|
+
inject: true
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
})
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var webpack = require('webpack')
|
|
2
|
+
var merge = require('webpack-merge')
|
|
3
|
+
var baseConfig = require('./webpack.base.conf')
|
|
4
|
+
var cssLoaders = require('./css-loaders')
|
|
5
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
6
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
7
|
+
|
|
8
|
+
// whether to generate source map for production files.
|
|
9
|
+
// disabling this can speed up the build.
|
|
10
|
+
var SOURCE_MAP = true
|
|
11
|
+
|
|
12
|
+
module.exports = merge(baseConfig, {
|
|
13
|
+
stats: {
|
|
14
|
+
children: false
|
|
15
|
+
},
|
|
16
|
+
devtool: SOURCE_MAP ? '#source-map' : false,
|
|
17
|
+
output: {
|
|
18
|
+
// naming output files with hashes for better caching.
|
|
19
|
+
// dist/index.html will be auto-generated with correct URLs.
|
|
20
|
+
filename: '[name][chunkhash].js',
|
|
21
|
+
chunkFilename: '[id].[chunkhash].js'
|
|
22
|
+
},
|
|
23
|
+
vue: {
|
|
24
|
+
loaders: cssLoaders({
|
|
25
|
+
sourceMap: SOURCE_MAP,
|
|
26
|
+
extract: true
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
plugins: [
|
|
30
|
+
// http://vuejs.github.io/vue-loader/workflow/production.html
|
|
31
|
+
new webpack.DefinePlugin({
|
|
32
|
+
'process.env': {
|
|
33
|
+
NODE_ENV: '"production"'
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
37
|
+
compress: {
|
|
38
|
+
warnings: false
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
new webpack.optimize.OccurenceOrderPlugin(),
|
|
42
|
+
// extract css into its own file
|
|
43
|
+
new ExtractTextPlugin('[name].css'),
|
|
44
|
+
// generate dist index.html with correct asset hash for caching.
|
|
45
|
+
// you can customize output by editing /index.html
|
|
46
|
+
// see https://github.com/ampedandwired/html-webpack-plugin
|
|
47
|
+
new HtmlWebpackPlugin({
|
|
48
|
+
filename: '../index.html',
|
|
49
|
+
template: 'index.html',
|
|
50
|
+
inject: true,
|
|
51
|
+
minify: {
|
|
52
|
+
removeComments: true,
|
|
53
|
+
collapseWhitespace: true,
|
|
54
|
+
removeAttributeQuotes: true
|
|
55
|
+
// more options:
|
|
56
|
+
// https://github.com/kangax/html-minifier#options-quick-reference
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var webpack = require('webpack')
|
|
2
|
+
var merge = require('webpack-merge')
|
|
3
|
+
var baseConfig = require('./webpack.baseandroid.conf')
|
|
4
|
+
var cssLoaders = require('./css-loaders')
|
|
5
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
6
|
+
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
7
|
+
|
|
8
|
+
// whether to generate source map for production files.
|
|
9
|
+
// disabling this can speed up the build.
|
|
10
|
+
var SOURCE_MAP = true
|
|
11
|
+
|
|
12
|
+
module.exports = merge(baseConfig, {
|
|
13
|
+
stats: {
|
|
14
|
+
children: false
|
|
15
|
+
},
|
|
16
|
+
devtool: SOURCE_MAP ? '#source-map' : false,
|
|
17
|
+
output: {
|
|
18
|
+
// naming output files with hashes for better caching.
|
|
19
|
+
// dist/index.html will be auto-generated with correct URLs.
|
|
20
|
+
filename: '[name].js',
|
|
21
|
+
chunkFilename: '[id].js'
|
|
22
|
+
},
|
|
23
|
+
vue: {
|
|
24
|
+
loaders: cssLoaders({
|
|
25
|
+
sourceMap: SOURCE_MAP,
|
|
26
|
+
extract: true
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
plugins: [
|
|
30
|
+
// http://vuejs.github.io/vue-loader/workflow/production.html
|
|
31
|
+
new webpack.DefinePlugin({
|
|
32
|
+
'process.env': {
|
|
33
|
+
NODE_ENV: '"production"'
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
new webpack.optimize.UglifyJsPlugin({
|
|
37
|
+
compress: {
|
|
38
|
+
warnings: false
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
new webpack.optimize.OccurenceOrderPlugin(),
|
|
42
|
+
// extract css into its own file
|
|
43
|
+
new ExtractTextPlugin('[name].css'),
|
|
44
|
+
// generate dist index.html with correct asset hash for caching.
|
|
45
|
+
// you can customize output by editing /index.html
|
|
46
|
+
// see https://github.com/ampedandwired/html-webpack-plugin
|
|
47
|
+
new HtmlWebpackPlugin({
|
|
48
|
+
filename: '../index.html',
|
|
49
|
+
template: 'android.html',
|
|
50
|
+
inject: true,
|
|
51
|
+
minify: {
|
|
52
|
+
removeComments: true,
|
|
53
|
+
collapseWhitespace: true,
|
|
54
|
+
removeAttributeQuotes: true
|
|
55
|
+
// more options:
|
|
56
|
+
// https://github.com/kangax/html-minifier#options-quick-reference
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This is the webpack config used for unit tests.
|
|
2
|
+
|
|
3
|
+
var utils = require('./utils')
|
|
4
|
+
var webpack = require('webpack')
|
|
5
|
+
var merge = require('webpack-merge')
|
|
6
|
+
var baseConfig = require('./webpack.base.conf')
|
|
7
|
+
|
|
8
|
+
var webpackConfig = merge(baseConfig, {
|
|
9
|
+
module: {
|
|
10
|
+
rules: utils.styleLoaders()
|
|
11
|
+
},
|
|
12
|
+
// use inline sourcemap for karma-sourcemap-loader
|
|
13
|
+
devtool: '#inline-source-map',
|
|
14
|
+
resolveLoader: {
|
|
15
|
+
alias: {
|
|
16
|
+
// necessary to to make lang="scss" work in test when using vue-loader's ?inject option
|
|
17
|
+
// see discussion at https://github.com/vuejs/vue-loader/issues/724
|
|
18
|
+
'scss-loader': 'sass-loader'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
plugins: [
|
|
22
|
+
new webpack.DefinePlugin({
|
|
23
|
+
'process.env': require('../config/test.env')
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
// no need for app entry during tests
|
|
29
|
+
delete webpackConfig.entry
|
|
30
|
+
|
|
31
|
+
module.exports = webpackConfig
|
package/index.html
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6
|
-
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
7
|
-
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
8
|
-
<META HTTP-EQUIV="expires" CONTENT="0">
|
|
9
|
-
<title
|
|
10
|
-
<script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
|
|
11
|
-
<!--引入UI组件库(1.1版本) -->
|
|
12
|
-
<script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
|
|
13
|
-
<style media="screen">
|
|
14
|
-
/*url(./static/newmainbg.jpg)*/
|
|
15
|
-
|
|
16
|
-
body {
|
|
17
|
-
font-size:16px !important;
|
|
18
|
-
width: 100%;
|
|
19
|
-
background: #7f8eaf no-repeat center bottom;
|
|
20
|
-
background-size: cover;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
body .loginbg {
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
background: url(./static/loginbg.jpg) no-repeat center top;
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
29
|
-
</head>
|
|
30
|
-
<body id="bodymain" class="themeOne">
|
|
31
|
-
<app></app>
|
|
32
|
-
</body>
|
|
33
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6
|
+
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
7
|
+
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
8
|
+
<META HTTP-EQUIV="expires" CONTENT="0">
|
|
9
|
+
<title>报建系统</title>
|
|
10
|
+
<script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
|
|
11
|
+
<!--引入UI组件库(1.1版本) -->
|
|
12
|
+
<script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
|
|
13
|
+
<style media="screen">
|
|
14
|
+
/*url(./static/newmainbg.jpg)*/
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
font-size:16px !important;
|
|
18
|
+
width: 100%;
|
|
19
|
+
background: #7f8eaf no-repeat center bottom;
|
|
20
|
+
background-size: cover;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body .loginbg {
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
background: url(./static/loginbg.jpg) no-repeat center top;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
<body id="bodymain" class="themeOne">
|
|
31
|
+
<app></app>
|
|
32
|
+
</body>
|
|
33
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apply-clients",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "报建前端模块",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"style": "0.0.3",
|
|
94
94
|
"style-loader": "^0.20.3",
|
|
95
95
|
"system-clients": "3.1.87",
|
|
96
|
-
"system-phone": "1.
|
|
96
|
+
"system-phone": "1.2.80-49",
|
|
97
97
|
"url-loader": "^0.5.7",
|
|
98
|
-
"vue-client": "1.24.
|
|
98
|
+
"vue-client": "1.24.33",
|
|
99
99
|
"vue-hot-reload-api": "^1.2.0",
|
|
100
100
|
"vue-html-loader": "^1.0.0",
|
|
101
101
|
"vue-loader": "^8.2.1",
|
package/src/AndroidApp.vue
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- <app-base> -->
|
|
3
|
-
<div id="android-app">
|
|
4
|
-
<article>
|
|
5
|
-
<route :comp="{name: '
|
|
6
|
-
<!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
|
|
7
|
-
<!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
|
|
8
|
-
<!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
|
|
9
|
-
<!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<alert-box
|
|
15
|
-
|
|
16
|
-
</
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <app-base> -->
|
|
3
|
+
<div id="android-app">
|
|
4
|
+
<article>
|
|
5
|
+
<!-- <route :comp="{name: 'build-tsak'}" name="root"></route>-->
|
|
6
|
+
<!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
|
|
7
|
+
<!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
|
|
8
|
+
<!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
|
|
9
|
+
<!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
|
|
10
|
+
<route :comp="{name: 'login-app'}" name="root"></route>
|
|
11
|
+
</article>
|
|
12
|
+
<time-out></time-out>
|
|
13
|
+
<message-box></message-box>
|
|
14
|
+
<alert-box></alert-box>
|
|
15
|
+
<alert-box-batch></alert-box-batch>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
|
|
21
|
+
import AlertBox from "vue-client/src/components/AlertBox";
|
|
22
|
+
import AlertBoxBatch from "vue-client/src/components/AlertBoxBatch";
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
ready () {
|
|
26
|
+
if(!window.onerror) {
|
|
27
|
+
window.onerror = function (message, file, line, col, error) {
|
|
28
|
+
// HostApp.alert("Error occured: " + error.message)
|
|
29
|
+
return false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
components: { AlertBox, AlertBoxBatch }
|
|
34
|
+
}
|
|
35
|
+
</script>
|
package/src/App.vue
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<route :comp="{name: 'login'}"></route>
|
|
7
|
-
</article>
|
|
8
|
-
</div>
|
|
9
|
-
</app-base>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<route :comp="{name: 'login'}"></route>
|
|
7
|
+
</article>
|
|
8
|
+
</div>
|
|
9
|
+
</app-base>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
</script>
|
package/src/android.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import AndroidApp from './AndroidApp'
|
|
3
|
-
import { all } from 'vue-client'
|
|
4
|
-
import apply from './apply'
|
|
5
|
-
import {systemphonegrid} from 'system-phone'
|
|
6
|
-
import applyAndroid from './applyAndroid'
|
|
7
|
-
|
|
8
|
-
all()
|
|
9
|
-
apply()
|
|
10
|
-
applyAndroid()
|
|
11
|
-
systemphonegrid()
|
|
12
|
-
|
|
13
|
-
require('./android-bootstrap/less/bootstrap.less')
|
|
14
|
-
require('./expandcssAndroid.less')
|
|
15
|
-
|
|
16
|
-
Vue.android = true
|
|
17
|
-
/* eslint-disable no-new */
|
|
18
|
-
new Vue({
|
|
19
|
-
el: 'body',
|
|
20
|
-
components: { AndroidApp }
|
|
21
|
-
})
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import AndroidApp from './AndroidApp'
|
|
3
|
+
import { all } from 'vue-client'
|
|
4
|
+
import apply from './apply'
|
|
5
|
+
import {systemphonegrid} from 'system-phone'
|
|
6
|
+
import applyAndroid from './applyAndroid'
|
|
7
|
+
|
|
8
|
+
all()
|
|
9
|
+
apply()
|
|
10
|
+
applyAndroid('yuchuan')
|
|
11
|
+
systemphonegrid()
|
|
12
|
+
|
|
13
|
+
require('./android-bootstrap/less/bootstrap.less')
|
|
14
|
+
require('./expandcssAndroid.less')
|
|
15
|
+
|
|
16
|
+
Vue.android = true
|
|
17
|
+
/* eslint-disable no-new */
|
|
18
|
+
new Vue({
|
|
19
|
+
el: 'body',
|
|
20
|
+
components: { AndroidApp }
|
|
21
|
+
})
|