sale-client 3.4.93 → 3.4.94

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.
Files changed (105) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.gradle/{3.5/file-changes → 5.2.1/fileChanges}/last-build.bin +0 -0
  4. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  5. package/.gradle/{buildOutputCleanup/built.bin → 5.2.1/gc.properties} +0 -0
  6. package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  7. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  8. package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
  9. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  10. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  11. package/.gradle/6.1.1/gc.properties +0 -0
  12. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  13. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  14. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  15. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  16. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  17. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  18. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  19. package/.gradle/7.1/gc.properties +0 -0
  20. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  21. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  22. package/.gradle/checksums/checksums.lock +0 -0
  23. package/.gradle/vcs-1/gc.properties +0 -0
  24. package/.project +11 -11
  25. package/README.md +38 -38
  26. package/build/css-loaders.js +34 -34
  27. package/build/dev-client.js +8 -8
  28. package/build/dev-server.js +160 -157
  29. package/build/release.sh +28 -28
  30. package/build/utils.js +71 -71
  31. package/build/webpack.dev.conf.js +31 -31
  32. package/build/webpack.example.conf.js +49 -49
  33. package/build/webpack.test.conf.js +31 -31
  34. package/config/dev.env.js +6 -6
  35. package/config/index.js +38 -38
  36. package/config/prod.env.js +3 -3
  37. package/config/test.env.js +6 -6
  38. package/examples/ReadCard/index.html +11 -11
  39. package/package.json +1 -1
  40. package/release.bat +5 -5
  41. package/sale-client.iml +8 -8
  42. package/src/assets/binding.svg +1 -1
  43. package/src/assets/unbind.svg +1 -1
  44. package/src/assets//345/205/254/345/221/212.svg +1 -1
  45. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  46. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  47. package/src/components/FilesManage/MeterinfoTest.vue +905 -905
  48. package/src/components/Hello.vue +39 -39
  49. package/src/components/List.vue +51 -51
  50. package/src/components/SellGasCharge/FakaList.vue +23 -23
  51. package/src/components/UserFiles/admissibility.vue +46 -46
  52. package/src/components/charge/ChargeManage.vue +243 -243
  53. package/src/components/charge/ChargeOper.vue +230 -230
  54. package/src/components/charge/business/OtherChargeByPay.vue +471 -471
  55. package/src/components/charge/gasloss/gasLossOperate.vue +357 -354
  56. package/src/components/getNowDate.js +25 -25
  57. package/src/components/revenue/bank/BankDocking.vue +62 -62
  58. package/src/components/revenue/base/CardServer/CardInfoModal.vue +52 -52
  59. package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
  60. package/src/components/revenue/base/leftview/Userinfo.vue +175 -175
  61. package/src/components/revenue/base/leftview/meterinfodetail.vue +190 -190
  62. package/src/components/revenue/base/rightview/carddetail/StopApplyDetail.vue +70 -70
  63. package/src/components/revenue/comprehen/CardManage/CardManage.vue +83 -83
  64. package/src/components/revenue/comprehen/ComprehenOperation/ChangeMeter/NoMessage.vue +30 -30
  65. package/src/components/revenue/comprehen/ComprehenOperation/ComprehenSearch.vue +13 -13
  66. package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
  67. package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
  68. package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +6 -1
  69. package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
  70. package/src/components/revenue/comprehen/TotalSplit/TotalSplitManage.vue +45 -45
  71. package/src/components/revenue/comprehen/wechatpay/wechatValidateManage.vue +295 -295
  72. package/src/filiale/macheng/UserBaseInfoNew.vue +346 -346
  73. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +2 -6
  74. package/src/filiale/qianneng/HandManager.vue +1824 -1824
  75. package/src/filiale/qianneng/sale.js +23 -23
  76. package/src/filiale/rongchuang/CardMeterCenter.vue +857 -857
  77. package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
  78. package/src/main.js +23 -23
  79. package/src/plugins/CardListen.js +29 -29
  80. package/src/plugins/CardManageService.js +21 -21
  81. package/src/plugins/SelectService.js +41 -41
  82. package/src/project/ProjectPage.vue +24 -24
  83. package/src/project/State.js +17 -17
  84. package/test/e2e/custom-assertions/elementCount.js +26 -26
  85. package/test/e2e/nightwatch.conf.js +40 -40
  86. package/test/e2e/runner.js +30 -30
  87. package/test/e2e/specs/test.js +13 -13
  88. package/test/unit/.eslintrc +5 -5
  89. package/test/unit/context.html +20 -20
  90. package/test/unit/index.js +13 -13
  91. package/test/unit/init.js +13 -13
  92. package/test/unit/karma.conf.js +55 -55
  93. package/test/unit/specs/components/UserFiles/AreaList.spec.js +25 -25
  94. package/test/unit/specs/components/UserFiles/UserFiles.spec.js +22 -22
  95. package/test/unit/specs/components/UserFiles/UserGeneralInfo.spec.js +55 -55
  96. package/test/unit/specs/components/revenue/Common/ReissueBill.spec.js +29 -29
  97. package/test/unit/specs/components/revenue/base/CardServer/ReadCard.spec.js +23 -23
  98. package/test/unit/specs/components/revenue/base/UserList.spec.js +21 -21
  99. package/test/unit/specs/components/revenue/base/rightview/CardList.spec.js +29 -29
  100. package/test/unit/specs/components/revenue/todoList/ToDoListManage.spec.js +20 -20
  101. package/test/unit/specs/service/delete.spec.js +8 -8
  102. package/test/unit/specs/service/getSaleInitData.spec.js +16 -16
  103. package/test/unit/specs/service/uploadFile.spec.js +8 -8
  104. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  105. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
package/.babelrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "presets": ["es2015", "stage-2"],
3
- "plugins": ["transform-runtime"],
4
- "comments": false
5
- }
1
+ {
2
+ "presets": ["es2015", "stage-2"],
3
+ "plugins": ["transform-runtime"],
4
+ "comments": false
5
+ }
package/.editorconfig CHANGED
@@ -1,9 +1,9 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- insert_final_newline = true
9
- trim_trailing_whitespace = true
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
File without changes
File without changes
@@ -1,2 +1,2 @@
1
- #Tue Aug 24 11:08:37 CST 2021
2
- gradle.version=3.5
1
+ #Fri Jan 21 16:32:44 CST 2022
2
+ gradle.version=5.2.1
Binary file
File without changes
package/.project CHANGED
@@ -1,11 +1,11 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>SaleClient</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- </buildSpec>
9
- <natures>
10
- </natures>
11
- </projectDescription>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>SaleClient</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ </buildSpec>
9
+ <natures>
10
+ </natures>
11
+ </projectDescription>
package/README.md CHANGED
@@ -1,39 +1,39 @@
1
- # sale-client
2
-
3
- #### 项目介绍
4
- {**以下是码云平台说明,您可以替换为您的项目简介**
5
- 码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
6
- 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
7
-
8
- #### 软件架构
9
- 软件架构说明
10
-
11
-
12
- #### 安装教程
13
-
14
- 1. xxxx
15
- 2. xxxx
16
- 3. xxxx
17
-
18
- #### 使用说明
19
-
20
- 1. xxxx
21
- 2. xxxx
22
- 3. xxxx
23
-
24
- #### 参与贡献
25
-
26
- 1. Fork 本项目
27
- 2. 新建 Feat_xxx 分支
28
- 3. 提交代码
29
- 4. 新建 Pull Request
30
-
31
-
32
- #### 码云特技
33
-
34
- 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
35
- 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
36
- 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
37
- 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
38
- 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
1
+ # sale-client
2
+
3
+ #### 项目介绍
4
+ {**以下是码云平台说明,您可以替换为您的项目简介**
5
+ 码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
6
+ 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
7
+
8
+ #### 软件架构
9
+ 软件架构说明
10
+
11
+
12
+ #### 安装教程
13
+
14
+ 1. xxxx
15
+ 2. xxxx
16
+ 3. xxxx
17
+
18
+ #### 使用说明
19
+
20
+ 1. xxxx
21
+ 2. xxxx
22
+ 3. xxxx
23
+
24
+ #### 参与贡献
25
+
26
+ 1. Fork 本项目
27
+ 2. 新建 Feat_xxx 分支
28
+ 3. 提交代码
29
+ 4. 新建 Pull Request
30
+
31
+
32
+ #### 码云特技
33
+
34
+ 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
35
+ 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
36
+ 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
37
+ 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
38
+ 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
39
39
  6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
@@ -1,34 +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
- }
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
+ }
@@ -1,8 +1,8 @@
1
- require('eventsource-polyfill')
2
- var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
3
-
4
- hotClient.subscribe(function (event) {
5
- if (event.action === 'reload') {
6
- window.location.reload()
7
- }
8
- })
1
+ require('eventsource-polyfill')
2
+ var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
3
+
4
+ hotClient.subscribe(function (event) {
5
+ if (event.action === 'reload') {
6
+ window.location.reload()
7
+ }
8
+ })
@@ -1,157 +1,160 @@
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:8080/',bendi1 = 'http://119.146.1.106:8300/'
14
- // 公司测试服务
15
- var fuwu = 'http://192.168.50.4:8400/'
16
- //铜川正式
17
- // var fuwu = 'http://61.134.55.234:9999/'
18
- //铜川测试
19
- // var fuwu = 'http://61.134.55.234:9999/'
20
- // var fuwu = 'http://60.222.250.39:8300/'
21
- //韶关
22
- // var fuwu = 'http://119.146.1.106:8300/'
23
- // 巩义测试服务
24
- // var fuwu = 'http://192.168.0.227:8400'
25
- // 燎原测试服务
26
- // var fuwu = 'http://121.41.19.238:8400 '
27
- // var fuwu = 'http://121.41.19.238:9001/'
28
-
29
- // var fuwu = 'http://139.214.92.34:8301/'
30
-
31
- var proxyTable = {
32
- '/rs/logic/saleExport': {
33
- target: fuwu
34
- },
35
- '/rs/logic/saleGetExportProgress': {
36
- target: fuwu
37
- },
38
- '/files': {
39
- target: fuwu
40
- },
41
- // 查找资源服务数据
42
- '/rs/search': {
43
- target: fuwu
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getLogin': {
47
- target: fuwu
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getInitData': {
51
- target: fuwu
52
- },
53
- '/rs/logic/getSaleInitData': {
54
- target: fuwu
55
- },
56
- '/invoice':{
57
- target: fuwu
58
- },
59
- // 用户登录服务地址
60
- '/rs/user': {
61
- target: fuwu
62
- },
63
- '/rs/path/getParams': {
64
- target: fuwu
65
- },
66
- '/rs/data': {
67
- target: fuwu
68
- },
69
- '/rs/license': {
70
- target: fuwu
71
- },
72
- '/rs/db': {
73
- target: fuwu
74
- },
75
- '/excel': {
76
- target: fuwu
77
- },
78
- '/rs/config': {
79
- target: fuwu
80
- },
81
- '/rs/sql/getLicenseById': {
82
- target: fuwu
83
- },
84
- '/rs/sql/manage_getarealist': {
85
- target: fuwu
86
- },
87
- '/rs/sql/manage_getstreetlist': {
88
- target: fuwu
89
- },
90
- '/rs/report': {
91
- target: 'http://127.0.0.1:8079'
92
- },
93
- '/rs/vue': {
94
- target: fuwu
95
- },
96
- '/rs': {
97
- // target: 'http://192.168.30.63:8081/'
98
- target: 'http://127.0.0.1:8080'
99
- // target:fuwu
100
- }
101
- }
102
-
103
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
104
- publicPath: config.output.publicPath,
105
- stats: {
106
- colors: true,
107
- chunks: false
108
- }
109
- })
110
-
111
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
112
- // force page reload when html-webpack-plugin template changes
113
- compiler.plugin('compilation', function (compilation) {
114
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
115
- hotMiddleware.publish({action: 'reload'})
116
- cb()
117
- })
118
- })
119
-
120
- // proxy api requests
121
- Object.keys(proxyTable).forEach(function (context) {
122
- var options = proxyTable[context]
123
- if (typeof options === 'string') {
124
- options = {target: options}
125
- }
126
- app.use(proxyMiddleware(context, options))
127
- })
128
-
129
- // handle fallback for HTML5 history API
130
- app.use(require('connect-history-api-fallback')())
131
- // app.use(function (req, res, next) {
132
- // res.header('Access-Control-Allow-Origin', '*')
133
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
134
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
135
- // res.header('X-Powered-By', '3,2,1')
136
- // res.header('Access-Control-Allow-Credentials', 'true')
137
- // res.header('Content-Type', 'application/json;charset=utf-8')
138
- // next()
139
- // })
140
-
141
- // serve webpack bundle output
142
- app.use(devMiddleware)
143
-
144
- // enable hot-reload and state-preserving
145
- // compilation error display
146
- app.use(hotMiddleware)
147
-
148
- // serve pure static assets
149
- app.use('/static', express.static('./static'))
150
-
151
- module.exports = app.listen(8089, function (err) {
152
- if (err) {
153
- console.log(err)
154
- return
155
- }
156
- console.log('Listening at http://localhost:8089')
157
- })
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:6666/sale',bendi1 = ''
14
+ // 公司测试服务
15
+ var fuwu = 'http://192.168.50.4:8400/'
16
+ //铜川正式
17
+ // var fuwu = 'http://61.134.55.234:9999/'
18
+ //铜川测试
19
+ // var fuwu = 'http://61.134.55.234:9999/'
20
+ // var fuwu = 'http://60.222.250.39:8300/'
21
+ //韶关
22
+ // var fuwu = 'http://119.146.1.106:8300/'
23
+ // 巩义测试服务
24
+ // var fuwu = 'http://192.168.0.227:8400'
25
+ // 燎原测试服务
26
+ // var fuwu = 'http://121.41.19.238:8400 '
27
+ // var fuwu = 'http://121.41.19.238:9001/'
28
+
29
+ // var fuwu = 'http://139.214.92.34:8301/'
30
+
31
+ var proxyTable = {
32
+ '/rs/logic/saleExport': {
33
+ target: fuwu
34
+ },
35
+ '/rs/logic/saleGetExportProgress': {
36
+ target: fuwu
37
+ },
38
+ '/files': {
39
+ target: fuwu
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/search': {
43
+ target: fuwu
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getLogin': {
47
+ target: fuwu
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getInitData': {
51
+ target: fuwu
52
+ },
53
+ '/rs/logic/getSaleInitData': {
54
+ target: fuwu
55
+ },
56
+ '/invoice':{
57
+ target: fuwu
58
+ },
59
+ // 用户登录服务地址
60
+ '/rs/user': {
61
+ target: fuwu
62
+ },
63
+ '/rs/path/getParams': {
64
+ target: fuwu
65
+ },
66
+ '/rs/data': {
67
+ target: fuwu
68
+ },
69
+ '/rs/license': {
70
+ target: fuwu
71
+ },
72
+ '/rs/db': {
73
+ target: fuwu
74
+ },
75
+ '/excel': {
76
+ target: fuwu
77
+ },
78
+ '/rs/config': {
79
+ target: fuwu
80
+ },
81
+ '/rs/sql/getLicenseById': {
82
+ target: fuwu
83
+ },
84
+ '/rs/sql/manage_getarealist': {
85
+ target: fuwu
86
+ },
87
+ '/rs/sql/manage_getstreetlist': {
88
+ target: fuwu
89
+ },
90
+ '/rs/sql/arrearsQuery':{
91
+ target: 'http://127.0.0.1:8079'
92
+ },
93
+ '/rs/report': {
94
+ target: 'http://127.0.0.1:8079'
95
+ },
96
+ '/rs/vue': {
97
+ target: fuwu
98
+ },
99
+ '/rs': {
100
+ // target: 'http://192.168.30.63:8081/'
101
+ target: bendi
102
+ // target:fuwu
103
+ }
104
+ }
105
+
106
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
+ publicPath: config.output.publicPath,
108
+ stats: {
109
+ colors: true,
110
+ chunks: false
111
+ }
112
+ })
113
+
114
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
+ // force page reload when html-webpack-plugin template changes
116
+ compiler.plugin('compilation', function (compilation) {
117
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
+ hotMiddleware.publish({action: 'reload'})
119
+ cb()
120
+ })
121
+ })
122
+
123
+ // proxy api requests
124
+ Object.keys(proxyTable).forEach(function (context) {
125
+ var options = proxyTable[context]
126
+ if (typeof options === 'string') {
127
+ options = {target: options}
128
+ }
129
+ app.use(proxyMiddleware(context, options))
130
+ })
131
+
132
+ // handle fallback for HTML5 history API
133
+ app.use(require('connect-history-api-fallback')())
134
+ // app.use(function (req, res, next) {
135
+ // res.header('Access-Control-Allow-Origin', '*')
136
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
137
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
138
+ // res.header('X-Powered-By', '3,2,1')
139
+ // res.header('Access-Control-Allow-Credentials', 'true')
140
+ // res.header('Content-Type', 'application/json;charset=utf-8')
141
+ // next()
142
+ // })
143
+
144
+ // serve webpack bundle output
145
+ app.use(devMiddleware)
146
+
147
+ // enable hot-reload and state-preserving
148
+ // compilation error display
149
+ app.use(hotMiddleware)
150
+
151
+ // serve pure static assets
152
+ app.use('/static', express.static('./static'))
153
+
154
+ module.exports = app.listen(8089, function (err) {
155
+ if (err) {
156
+ console.log(err)
157
+ return
158
+ }
159
+ console.log('Listening at http://localhost:8089')
160
+ })
package/build/release.sh CHANGED
@@ -1,28 +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
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