address-client 1.3.55 → 1.3.56-taiyuan
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev-server.js +141 -134
- package/build/webpack.base.conf.js +77 -78
- package/build.gradle +14 -14
- package/index.html +0 -1
- package/package.json +97 -98
- package/src/address.js +37 -48
- package/src/components/AddressAddAddress.vue +4 -4
- package/src/components/AddressList.vue +213 -211
- package/src/components/AddressManage.vue +170 -92
- package/src/components/AddressSelect.vue +1 -1
- package/src/components/AddressTree.vue +1 -1
- package/src/components/AreaFiles.vue +248 -80
- package/src/components/AreaList.vue +80 -180
- package/src/components/UserAddress.vue +316 -626
- package/src/main.js +23 -25
- package/.npmignore +0 -9
- package/build/.npmignore +0 -1
- package/src/components/AddAreaMsg.vue +0 -544
- package/src/components/AddStreetOrPcd.vue +0 -237
- package/src/components/AreaManage.vue +0 -75
- package/src/components/CityManage.vue +0 -63
- package/src/components/StreetList.vue +0 -146
- package/src/components/UserAddressChange.vue +0 -58
- package/yarn.lock +0 -7463
package/build/dev-server.js
CHANGED
|
@@ -1,134 +1,141 @@
|
|
|
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 proxyTable = {
|
|
14
|
-
'/images': {
|
|
15
|
-
// target: 'http://localhost:8086'
|
|
16
|
-
target: 'http://
|
|
17
|
-
},
|
|
18
|
-
// 查找资源服务数据
|
|
19
|
-
'/rs/search': {
|
|
20
|
-
// target: 'http://192.168.50.202:8099'
|
|
21
|
-
// target: 'http://192.168.20.2:8081'
|
|
22
|
-
target: 'http://
|
|
23
|
-
// target: 'http://192.168.20.191:8011'
|
|
24
|
-
},
|
|
25
|
-
// 用户登录服务地址
|
|
26
|
-
'/rs/user': {
|
|
27
|
-
// target: 'http://192.168.50.202:8099'
|
|
28
|
-
// target: 'http://192.168.2.77:8081'
|
|
29
|
-
target: 'http://
|
|
30
|
-
// target: 'http://192.168.20.191:8011'
|
|
31
|
-
},
|
|
32
|
-
'/rs/
|
|
33
|
-
target: 'http://
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
target: 'http://
|
|
37
|
-
},
|
|
38
|
-
'/rs/
|
|
39
|
-
target: 'http://
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
target: 'http://192.168.50.222:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
target: 'http://
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
app.use(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
//
|
|
89
|
-
app.use(
|
|
90
|
-
|
|
91
|
-
// serve
|
|
92
|
-
app.use(
|
|
93
|
-
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
//
|
|
119
|
-
//
|
|
120
|
-
//
|
|
121
|
-
//
|
|
122
|
-
//
|
|
123
|
-
|
|
124
|
-
//
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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 proxyTable = {
|
|
14
|
+
'/images': {
|
|
15
|
+
// target: 'http://localhost:8086'
|
|
16
|
+
target: 'http://192.168.50.222:7000/ldap'
|
|
17
|
+
},
|
|
18
|
+
// 查找资源服务数据
|
|
19
|
+
'/rs/search': {
|
|
20
|
+
// target: 'http://192.168.50.202:8099'
|
|
21
|
+
// target: 'http://192.168.20.2:8081'
|
|
22
|
+
target: 'http://192.168.50.222:7000/ldap'
|
|
23
|
+
// target: 'http://192.168.20.191:8011'
|
|
24
|
+
},
|
|
25
|
+
// 用户登录服务地址
|
|
26
|
+
'/rs/user': {
|
|
27
|
+
// target: 'http://192.168.50.202:8099'
|
|
28
|
+
// target: 'http://192.168.2.77:8081'
|
|
29
|
+
target: 'http://192.168.50.222:7000/ldap'
|
|
30
|
+
// target: 'http://192.168.20.191:8011'
|
|
31
|
+
},
|
|
32
|
+
'/rs/path/getParams': {
|
|
33
|
+
// target: 'http://192.168.50.202:8099'
|
|
34
|
+
//target: 'http://127.0.0.1:8888/product'
|
|
35
|
+
target: 'http://192.168.50.222:8200/system'
|
|
36
|
+
// target: 'http://192.168.20.191:8011'
|
|
37
|
+
},
|
|
38
|
+
'/rs/logic/getInitData': {
|
|
39
|
+
// target: 'http://192.168.50.202:8099'
|
|
40
|
+
//target: 'http://127.0.0.1:8888/product'
|
|
41
|
+
target: 'http://192.168.50.222:8200/system'
|
|
42
|
+
// target: 'http://192.168.20.191:8011'
|
|
43
|
+
},
|
|
44
|
+
'/rs/db': {
|
|
45
|
+
target: 'http://192.168.50.222:7000/ldap'
|
|
46
|
+
// target: 'http://127.0.0.1:8012'
|
|
47
|
+
// target: 'http://192.168.20.191:s8011'
|
|
48
|
+
},
|
|
49
|
+
'/excel': {
|
|
50
|
+
// target: 'http://127.0.0.1:9090/product'
|
|
51
|
+
target: 'http://192.168.50.222:8300'
|
|
52
|
+
},
|
|
53
|
+
'/rs/file': {
|
|
54
|
+
target: 'http://192.168.50.222:8300'
|
|
55
|
+
},
|
|
56
|
+
'/rs': {
|
|
57
|
+
// target: 'http://127.0.0.1:8090/address'
|
|
58
|
+
target: 'http://192.168.50.222:8300'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
63
|
+
publicPath: config.output.publicPath,
|
|
64
|
+
stats: {
|
|
65
|
+
colors: true,
|
|
66
|
+
chunks: false
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
71
|
+
// force page reload when html-webpack-plugin template changes
|
|
72
|
+
compiler.plugin('compilation', function (compilation) {
|
|
73
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
74
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
75
|
+
cb()
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// proxy api requests
|
|
80
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
81
|
+
var options = proxyTable[context]
|
|
82
|
+
if (typeof options === 'string') {
|
|
83
|
+
options = { target: options }
|
|
84
|
+
}
|
|
85
|
+
app.use(proxyMiddleware(context, options))
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
// handle fallback for HTML5 history API
|
|
89
|
+
app.use(require('connect-history-api-fallback')())
|
|
90
|
+
|
|
91
|
+
// serve webpack bundle output
|
|
92
|
+
app.use(devMiddleware)
|
|
93
|
+
|
|
94
|
+
// enable hot-reload and state-preserving
|
|
95
|
+
// compilation error display
|
|
96
|
+
app.use(hotMiddleware)
|
|
97
|
+
|
|
98
|
+
// serve pure static assets
|
|
99
|
+
app.use('/static', express.static('./static'))
|
|
100
|
+
|
|
101
|
+
// app.all('/rs/*', function (req, res) {
|
|
102
|
+
// proxy.web(req, res, {
|
|
103
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
104
|
+
// })
|
|
105
|
+
// })
|
|
106
|
+
|
|
107
|
+
// app.all('/rs/*', function (req, res) {
|
|
108
|
+
// proxy.web(req, res, {
|
|
109
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
110
|
+
// })
|
|
111
|
+
// })
|
|
112
|
+
// app.all('/excel/*', function (req, res) {
|
|
113
|
+
// proxy.web(req, res, {
|
|
114
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
115
|
+
// })
|
|
116
|
+
// })
|
|
117
|
+
|
|
118
|
+
// app.all('/rs/*', function (req, res) {
|
|
119
|
+
// proxy.web(req, res, {
|
|
120
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
121
|
+
// })
|
|
122
|
+
// })
|
|
123
|
+
|
|
124
|
+
// app.all('/*', function (req, res) {
|
|
125
|
+
// proxy.web(req, res, {
|
|
126
|
+
// target: 'http://127.0.0.1:82'
|
|
127
|
+
// })
|
|
128
|
+
// })
|
|
129
|
+
// app.all('/rs/user', function (req, res) {
|
|
130
|
+
// proxy.web(req, res, {
|
|
131
|
+
// target: 'http://127.0.0.1:82'
|
|
132
|
+
// })
|
|
133
|
+
// })
|
|
134
|
+
|
|
135
|
+
module.exports = app.listen(8084, function (err) {
|
|
136
|
+
if (err) {
|
|
137
|
+
console.log(err)
|
|
138
|
+
return
|
|
139
|
+
}
|
|
140
|
+
console.log('Listening at http://localhost:8084')
|
|
141
|
+
})
|
|
@@ -1,78 +1,77 @@
|
|
|
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
|
-
},
|
|
9
|
-
output: {
|
|
10
|
-
path: path.resolve(__dirname, '../dist/static'),
|
|
11
|
-
publicPath: 'static/',
|
|
12
|
-
filename: '[name].js'
|
|
13
|
-
},
|
|
14
|
-
resolve: {
|
|
15
|
-
extensions: ['', '.js', '.vue'],
|
|
16
|
-
fallback: [path.join(__dirname, '../node_modules')],
|
|
17
|
-
alias: {
|
|
18
|
-
'src': path.resolve(__dirname, '../src'),
|
|
19
|
-
'test': path.resolve(__dirname, '../test')
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
resolveLoader: {
|
|
23
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
-
},
|
|
25
|
-
module: {
|
|
26
|
-
loaders: [
|
|
27
|
-
{
|
|
28
|
-
test: /\.vue$/,
|
|
29
|
-
loader: 'vue'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
test: /\.js$/,
|
|
33
|
-
loader: 'babel',
|
|
34
|
-
include: [
|
|
35
|
-
`${projectRoot}\\src`,
|
|
36
|
-
`${projectRoot}\\build`,
|
|
37
|
-
`${projectRoot}\\examples`,
|
|
38
|
-
`${projectRoot}\\test`,
|
|
39
|
-
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
40
|
-
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
-
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
-
`${projectRoot}\\node_modules\\
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
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
|
+
},
|
|
9
|
+
output: {
|
|
10
|
+
path: path.resolve(__dirname, '../dist/static'),
|
|
11
|
+
publicPath: 'static/',
|
|
12
|
+
filename: '[name].js'
|
|
13
|
+
},
|
|
14
|
+
resolve: {
|
|
15
|
+
extensions: ['', '.js', '.vue'],
|
|
16
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
17
|
+
alias: {
|
|
18
|
+
'src': path.resolve(__dirname, '../src'),
|
|
19
|
+
'test': path.resolve(__dirname, '../test')
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
resolveLoader: {
|
|
23
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
loaders: [
|
|
27
|
+
{
|
|
28
|
+
test: /\.vue$/,
|
|
29
|
+
loader: 'vue'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
test: /\.js$/,
|
|
33
|
+
loader: 'babel',
|
|
34
|
+
include: [
|
|
35
|
+
`${projectRoot}\\src`,
|
|
36
|
+
`${projectRoot}\\build`,
|
|
37
|
+
`${projectRoot}\\examples`,
|
|
38
|
+
`${projectRoot}\\test`,
|
|
39
|
+
`${projectRoot}\\node_modules\\vue-client\\src`,
|
|
40
|
+
`${projectRoot}\\node_modules\\vue-strap\\src`,
|
|
41
|
+
`${projectRoot}\\node_modules\\system-clients\\src`,
|
|
42
|
+
`${projectRoot}\\node_modules\\sale-client\\src`,
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
test: /\.json$/,
|
|
47
|
+
loader: 'json'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
test: /\.html$/,
|
|
51
|
+
loader: 'vue-html'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.less$/,
|
|
55
|
+
loader: 'style!css!less'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
59
|
+
loader: 'url',
|
|
60
|
+
query: {
|
|
61
|
+
limit: 10000,
|
|
62
|
+
name: '[name].[ext]?[hash:7]'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
vue: {
|
|
68
|
+
loaders: cssLoaders({
|
|
69
|
+
sourceMap: false,
|
|
70
|
+
extract: false
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
plugins: [],
|
|
74
|
+
eslint: {
|
|
75
|
+
formatter: require('eslint-friendly-formatter')
|
|
76
|
+
}
|
|
77
|
+
}
|
package/build.gradle
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
repositories {
|
|
3
|
-
mavenCentral()
|
|
4
|
-
jcenter()
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
version = '1.3.
|
|
9
|
-
|
|
10
|
-
apply plugin: 'java'
|
|
11
|
-
task release(type:Exec) {
|
|
12
|
-
workingDir '.'
|
|
13
|
-
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
14
|
-
}
|
|
1
|
+
buildscript {
|
|
2
|
+
repositories {
|
|
3
|
+
mavenCentral()
|
|
4
|
+
jcenter()
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
version = '1.3.52'
|
|
9
|
+
|
|
10
|
+
apply plugin: 'java'
|
|
11
|
+
task release(type:Exec) {
|
|
12
|
+
workingDir '.'
|
|
13
|
+
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
14
|
+
}
|