address-client 3.2.7 → 3.2.8-zk

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 (65) hide show
  1. package/build/dev-server.js +151 -125
  2. package/package.json +7 -2
  3. package/src/address.js +6 -6
  4. package/src/components/AddAreaMsg.vue +394 -388
  5. package/src/components/AddressList.vue +250 -466
  6. package/src/components/AddressManage.vue +112 -117
  7. package/src/components/AreaList.vue +146 -257
  8. package/src/components/AreaManage.vue +76 -75
  9. package/src/components/UserAddress.vue +723 -708
  10. package/src/main.js +21 -21
  11. package/yarn-error.log +7619 -0
  12. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  13. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  14. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  15. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  16. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  17. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  18. package/AddressClient.iml +0 -13
  19. package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
  20. package/src/filiale/WEINAN/AddressList.vue +0 -588
  21. package/src/filiale/WEINAN/AddressManage.vue +0 -122
  22. package/src/filiale/WEINAN/AreaList.vue +0 -388
  23. package/src/filiale/WEINAN/UserAddress.vue +0 -783
  24. package/src/filiale/WEINAN/sale.js +0 -16
  25. package/src/filiale/gaomi/AddressList.vue +0 -430
  26. package/src/filiale/gaomi/UserAddress.vue +0 -832
  27. package/src/filiale/gaomi/sale.js +0 -14
  28. package/src/filiale/gongyi/AddAreaMsg.vue +0 -651
  29. package/src/filiale/gongyi/AreaManage.vue +0 -100
  30. package/src/filiale/gongyi/UserAddress.vue +0 -751
  31. package/src/filiale/gongyi/sale.js +0 -14
  32. package/src/filiale/jingwei/UserAddress.vue +0 -764
  33. package/src/filiale/jingwei/sale.js +0 -12
  34. package/src/filiale/macheng/AddAreaMsg.vue +0 -635
  35. package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
  36. package/src/filiale/macheng/AddressList.vue +0 -306
  37. package/src/filiale/macheng/AreaList.vue +0 -279
  38. package/src/filiale/macheng/CityManage.vue +0 -76
  39. package/src/filiale/macheng/StreetList.vue +0 -186
  40. package/src/filiale/macheng/UserAddress.vue +0 -743
  41. package/src/filiale/macheng/sale.js +0 -17
  42. package/src/filiale/rongcheng/AddressList.vue +0 -363
  43. package/src/filiale/rongcheng/UserAddress.vue +0 -799
  44. package/src/filiale/rongcheng/sale.js +0 -11
  45. package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
  46. package/src/filiale/shaoguan/UserAddress.vue +0 -764
  47. package/src/filiale/shaoguan/sale.js +0 -11
  48. package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
  49. package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
  50. package/src/filiale/tongchuan/AddressList.vue +0 -379
  51. package/src/filiale/tongchuan/AreaList.vue +0 -315
  52. package/src/filiale/tongchuan/AreaManage.vue +0 -100
  53. package/src/filiale/tongchuan/CityList.vue +0 -133
  54. package/src/filiale/tongchuan/StreetList.vue +0 -208
  55. package/src/filiale/tongchuan/UserAddress.vue +0 -822
  56. package/src/filiale/tongchuan/sale.js +0 -19
  57. package/src/filiale/wuhai/UserAddress.vue +0 -795
  58. package/src/filiale/wuhai/sale.js +0 -12
  59. package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
  60. package/src/filiale/zhoukou/AddressList.vue +0 -391
  61. package/src/filiale/zhoukou/AddressManage.vue +0 -115
  62. package/src/filiale/zhoukou/AreaList.vue +0 -319
  63. package/src/filiale/zhoukou/AreaManage.vue +0 -100
  64. package/src/filiale/zhoukou/UserAddress.vue +0 -925
  65. package/src/filiale/zhoukou/sale.js +0 -23
@@ -1,125 +1,151 @@
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 str = 'http://127.0.0.1:8080', str2= 'http://192.168.50.4:8400/'
14
- var proxyTable = {
15
-
16
- '/rs/logic/getLogin': {
17
- target: str2
18
- },
19
- '/rs/vue': {
20
- target: str2
21
- },
22
- '/rs/user': {
23
- target: str2
24
- },
25
- '/rs/db': {
26
- target: str2
27
- },
28
- '/rs/search': {
29
- target: str2
30
- },
31
- '/rs/data': {
32
- target: str2
33
- },
34
- '/rs/logic/getInitData': {
35
- target: str2
36
- },
37
- '/rs/logic/getSaleInitData': {
38
- target: str2
39
- },
40
- '/rs': {
41
- // target: 'http://192.168.50.199:8300'
42
- target: str
43
- }
44
- }
45
-
46
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
47
- publicPath: config.output.publicPath,
48
- stats: {
49
- colors: true,
50
- chunks: false
51
- }
52
- })
53
-
54
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
55
- // force page reload when html-webpack-plugin template changes
56
- compiler.plugin('compilation', function (compilation) {
57
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
58
- hotMiddleware.publish({ action: 'reload' })
59
- cb()
60
- })
61
- })
62
-
63
- // proxy api requests
64
- Object.keys(proxyTable).forEach(function (context) {
65
- var options = proxyTable[context]
66
- if (typeof options === 'string') {
67
- options = { target: options }
68
- }
69
- app.use(proxyMiddleware(context, options))
70
- })
71
-
72
- // handle fallback for HTML5 history API
73
- app.use(require('connect-history-api-fallback')())
74
-
75
- // serve webpack bundle output
76
- app.use(devMiddleware)
77
-
78
- // enable hot-reload and state-preserving
79
- // compilation error display
80
- app.use(hotMiddleware)
81
-
82
- // serve pure static assets
83
- app.use('/static', express.static('./static'))
84
-
85
- // app.all('/rs/*', function (req, res) {
86
- // proxy.web(req, res, {
87
- // target: 'http://127.0.0.1:8081/reports'
88
- // })
89
- // })
90
-
91
- // app.all('/rs/*', function (req, res) {
92
- // proxy.web(req, res, {
93
- // target: 'http://127.0.0.1:8081/ldap'
94
- // })
95
- // })
96
- // app.all('/excel/*', function (req, res) {
97
- // proxy.web(req, res, {
98
- // target: 'http://127.0.0.1:8081/charge'
99
- // })
100
- // })
101
-
102
- // app.all('/rs/*', function (req, res) {
103
- // proxy.web(req, res, {
104
- // target: 'http://127.0.0.1:82/charge'
105
- // })
106
- // })
107
-
108
- // app.all('/*', function (req, res) {
109
- // proxy.web(req, res, {
110
- // target: 'http://127.0.0.1:82'
111
- // })
112
- // })
113
- // app.all('/rs/user', function (req, res) {
114
- // proxy.web(req, res, {
115
- // target: 'http://127.0.0.1:82'
116
- // })
117
- // })
118
-
119
- module.exports = app.listen(8085, function (err) {
120
- if (err) {
121
- console.log(err)
122
- return
123
- }
124
- console.log('Listening at http://localhost:8085')
125
- })
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', fuwu= 'http://192.168.20.28:8400'
14
+ // var bendi = 'http://192.168.20.28:8400', fuwu= 'http://192.168.20.28:8400'
15
+ var bendi = 'http://192.168.20.27:8400', fuwu= 'http://192.168.20.27:8400'
16
+ // var bendi = 'http://61.163.127.69:8557/', fuwu= 'http://61.163.127.69:8557/'
17
+ var proxyTable = {
18
+ '/rs/logic/getLogin': {
19
+ target: fuwu
20
+ },
21
+ '/rs/sql/address_getAddress': {
22
+ target: bendi
23
+ },
24
+ '/rs/sql/address_singleTableOrderBy': {
25
+ target: bendi
26
+ },
27
+ '/rs/logic/address_updateuseraddress': {
28
+ target: bendi
29
+ },
30
+ '/rs/vue': {
31
+ target: fuwu
32
+ },
33
+ '/rs/user': {
34
+ target: fuwu
35
+ },
36
+ '/rs/db': {
37
+ target: fuwu
38
+ },
39
+ '/rs/search': {
40
+ target: fuwu
41
+ },
42
+ '/rs/data': {
43
+ target: fuwu
44
+ },
45
+ '/rs/logic/getInitData': {
46
+ target: fuwu
47
+ },
48
+ '/rs/logic/exportfile': {
49
+ target: fuwu
50
+ },
51
+ '/rs/logic/getBatchOperaPro': {
52
+ target: fuwu
53
+ },
54
+ '/rs/logic/getSaleInitData': {
55
+ target: fuwu
56
+ },
57
+ '/rs/logic/address_useraddressimport': {
58
+ target: bendi
59
+ },
60
+ '/rs/sql': {
61
+ target: bendi
62
+ },
63
+ '/rs/logic': {
64
+ target: bendi
65
+ },
66
+ '/rs': {
67
+ // target: 'http://192.168.50.199:8300'
68
+ target: fuwu
69
+ }
70
+ }
71
+
72
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
73
+ publicPath: config.output.publicPath,
74
+ stats: {
75
+ colors: true,
76
+ chunks: false
77
+ }
78
+ })
79
+
80
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
81
+ // force page reload when html-webpack-plugin template changes
82
+ compiler.plugin('compilation', function (compilation) {
83
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
84
+ hotMiddleware.publish({ action: 'reload' })
85
+ cb()
86
+ })
87
+ })
88
+
89
+ // proxy api requests
90
+ Object.keys(proxyTable).forEach(function (context) {
91
+ var options = proxyTable[context]
92
+ if (typeof options === 'string') {
93
+ options = { target: options }
94
+ }
95
+ app.use(proxyMiddleware(context, options))
96
+ })
97
+
98
+ // handle fallback for HTML5 history API
99
+ app.use(require('connect-history-api-fallback')())
100
+
101
+ // serve webpack bundle output
102
+ app.use(devMiddleware)
103
+
104
+ // enable hot-reload and state-preserving
105
+ // compilation error display
106
+ app.use(hotMiddleware)
107
+
108
+ // serve pure static assets
109
+ app.use('/static', express.static('./static'))
110
+
111
+ // app.all('/rs/*', function (req, res) {
112
+ // proxy.web(req, res, {
113
+ // target: 'http://127.0.0.1:8081/reports'
114
+ // })
115
+ // })
116
+
117
+ // app.all('/rs/*', function (req, res) {
118
+ // proxy.web(req, res, {
119
+ // target: 'http://127.0.0.1:8081/ldap'
120
+ // })
121
+ // })
122
+ // app.all('/excel/*', function (req, res) {
123
+ // proxy.web(req, res, {
124
+ // target: 'http://127.0.0.1:8081/charge'
125
+ // })
126
+ // })
127
+
128
+ // app.all('/rs/*', function (req, res) {
129
+ // proxy.web(req, res, {
130
+ // target: 'http://127.0.0.1:82/charge'
131
+ // })
132
+ // })
133
+
134
+ // app.all('/*', function (req, res) {
135
+ // proxy.web(req, res, {
136
+ // target: 'http://127.0.0.1:82'
137
+ // })
138
+ // })
139
+ // app.all('/rs/user', function (req, res) {
140
+ // proxy.web(req, res, {
141
+ // target: 'http://127.0.0.1:82'
142
+ // })
143
+ // })
144
+
145
+ module.exports = app.listen(8085, function (err) {
146
+ if (err) {
147
+ console.log(err)
148
+ return
149
+ }
150
+ console.log('Listening at http://localhost:8085')
151
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "3.2.7",
3
+ "version": "3.2.8-zk",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -80,7 +80,7 @@
80
80
  "style-loader": "^0.20.3",
81
81
  "system-clients": "3.1.88-5",
82
82
  "url-loader": "^0.5.7",
83
- "vue-client": "1.24.27",
83
+ "vue-client": "1.24.31",
84
84
  "vue-hot-reload-api": "^1.2.0",
85
85
  "vue-html-loader": "^1.0.0",
86
86
  "vue-loader": "^8.2.1",
@@ -95,5 +95,10 @@
95
95
  "webpack-merge": "^0.8.3",
96
96
  "jsencrypt": "3.0.0-rc.1",
97
97
  "axios": "0.15.3"
98
+ },
99
+ "directories": {
100
+ "doc": "doc",
101
+ "example": "examples",
102
+ "test": "test"
98
103
  }
99
104
  }
package/src/address.js CHANGED
@@ -46,10 +46,10 @@ export default function (filiale) {
46
46
  //批量置换接单
47
47
  Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
48
48
  // 分公司特殊页面注册替换
49
- if (filiale) {
50
- let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
51
- for (let key in filialeComp) {
52
- Vue.component(key, filialeComp[key])
53
- }
54
- }
49
+ // if (filiale) {
50
+ // let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
51
+ // for (let key in filialeComp) {
52
+ // Vue.component(key, filialeComp[key])
53
+ // }
54
+ // }
55
55
  }