address-client 1.5.19 → 1.5.23

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.
@@ -1,114 +1,115 @@
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
- /* '/rs/user': {
15
- target: 'http://192.168.50.199:8300'
16
- },
17
- '/rs/search': {
18
- target: 'http://192.168.50.199:8300'
19
- },
20
- '/rs/logic/getLogin': {
21
- target: 'http://192.168.50.199:8300'
22
- },
23
- '/rs/logic/getInitData': {
24
- target: 'http://192.168.50.199:8300'
25
- },
26
- '/rs/vue': {
27
- target: 'http://192.168.50.199:8300'
28
- },*/
29
- '/rs': {
30
- target: 'http://192.168.2.84:7003'
31
- //target: 'http://127.0.0.1:8099/address'
32
- }
33
- }
34
-
35
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
36
- publicPath: config.output.publicPath,
37
- stats: {
38
- colors: true,
39
- chunks: false
40
- }
41
- })
42
-
43
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
44
- // force page reload when html-webpack-plugin template changes
45
- compiler.plugin('compilation', function (compilation) {
46
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
47
- hotMiddleware.publish({ action: 'reload' })
48
- cb()
49
- })
50
- })
51
-
52
- // proxy api requests
53
- Object.keys(proxyTable).forEach(function (context) {
54
- var options = proxyTable[context]
55
- if (typeof options === 'string') {
56
- options = { target: options }
57
- }
58
- app.use(proxyMiddleware(context, options))
59
- })
60
-
61
- // handle fallback for HTML5 history API
62
- app.use(require('connect-history-api-fallback')())
63
-
64
- // serve webpack bundle output
65
- app.use(devMiddleware)
66
-
67
- // enable hot-reload and state-preserving
68
- // compilation error display
69
- app.use(hotMiddleware)
70
-
71
- // serve pure static assets
72
- app.use('/static', express.static('./static'))
73
-
74
- // app.all('/rs/*', function (req, res) {
75
- // proxy.web(req, res, {
76
- // target: 'http://127.0.0.1:8081/reports'
77
- // })
78
- // })
79
-
80
- // app.all('/rs/*', function (req, res) {
81
- // proxy.web(req, res, {
82
- // target: 'http://127.0.0.1:8081/ldap'
83
- // })
84
- // })
85
- // app.all('/excel/*', function (req, res) {
86
- // proxy.web(req, res, {
87
- // target: 'http://127.0.0.1:8081/charge'
88
- // })
89
- // })
90
-
91
- // app.all('/rs/*', function (req, res) {
92
- // proxy.web(req, res, {
93
- // target: 'http://127.0.0.1:82/charge'
94
- // })
95
- // })
96
-
97
- // app.all('/*', function (req, res) {
98
- // proxy.web(req, res, {
99
- // target: 'http://127.0.0.1:82'
100
- // })
101
- // })
102
- // app.all('/rs/user', function (req, res) {
103
- // proxy.web(req, res, {
104
- // target: 'http://127.0.0.1:82'
105
- // })
106
- // })
107
-
108
- module.exports = app.listen(8084, function (err) {
109
- if (err) {
110
- console.log(err)
111
- return
112
- }
113
- console.log('Listening at http://localhost:8084')
114
- })
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://219.138.230.241:7005/'
14
+ var proxyTable = {
15
+ '/rs/user': {
16
+ target: str
17
+ },
18
+ '/rs/search': {
19
+ target: str
20
+ },
21
+ '/rs/logic/getLogin': {
22
+ target: str
23
+ },
24
+ '/rs/logic/getInitData': {
25
+ target: str
26
+ },
27
+ '/rs/vue': {
28
+ target: str
29
+ },
30
+ '/rs': {
31
+ target: str
32
+ //target: 'http://127.0.0.1:8099/address'
33
+ }
34
+ }
35
+
36
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
37
+ publicPath: config.output.publicPath,
38
+ stats: {
39
+ colors: true,
40
+ chunks: false
41
+ }
42
+ })
43
+
44
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
45
+ // force page reload when html-webpack-plugin template changes
46
+ compiler.plugin('compilation', function (compilation) {
47
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
48
+ hotMiddleware.publish({ action: 'reload' })
49
+ cb()
50
+ })
51
+ })
52
+
53
+ // proxy api requests
54
+ Object.keys(proxyTable).forEach(function (context) {
55
+ var options = proxyTable[context]
56
+ if (typeof options === 'string') {
57
+ options = { target: options }
58
+ }
59
+ app.use(proxyMiddleware(context, options))
60
+ })
61
+
62
+ // handle fallback for HTML5 history API
63
+ app.use(require('connect-history-api-fallback')())
64
+
65
+ // serve webpack bundle output
66
+ app.use(devMiddleware)
67
+
68
+ // enable hot-reload and state-preserving
69
+ // compilation error display
70
+ app.use(hotMiddleware)
71
+
72
+ // serve pure static assets
73
+ app.use('/static', express.static('./static'))
74
+
75
+ // app.all('/rs/*', function (req, res) {
76
+ // proxy.web(req, res, {
77
+ // target: 'http://127.0.0.1:8081/reports'
78
+ // })
79
+ // })
80
+
81
+ // app.all('/rs/*', function (req, res) {
82
+ // proxy.web(req, res, {
83
+ // target: 'http://127.0.0.1:8081/ldap'
84
+ // })
85
+ // })
86
+ // app.all('/excel/*', function (req, res) {
87
+ // proxy.web(req, res, {
88
+ // target: 'http://127.0.0.1:8081/charge'
89
+ // })
90
+ // })
91
+
92
+ // app.all('/rs/*', function (req, res) {
93
+ // proxy.web(req, res, {
94
+ // target: 'http://127.0.0.1:82/charge'
95
+ // })
96
+ // })
97
+
98
+ // app.all('/*', function (req, res) {
99
+ // proxy.web(req, res, {
100
+ // target: 'http://127.0.0.1:82'
101
+ // })
102
+ // })
103
+ // app.all('/rs/user', function (req, res) {
104
+ // proxy.web(req, res, {
105
+ // target: 'http://127.0.0.1:82'
106
+ // })
107
+ // })
108
+
109
+ module.exports = app.listen(8085, function (err) {
110
+ if (err) {
111
+ console.log(err)
112
+ return
113
+ }
114
+ console.log('Listening at http://localhost:8085')
115
+ })
package/build.gradle CHANGED
@@ -1,14 +1,14 @@
1
- buildscript {
2
- repositories {
3
- mavenCentral()
4
- jcenter()
5
- }
6
- }
7
-
8
- version = '1.5.19'
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.5.19'
9
+
10
+ apply plugin: 'java'
11
+ task release(type:Exec) {
12
+ workingDir '.'
13
+ commandLine 'cmd', '/c', 'release.bat ' + version
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "1.5.19",
3
+ "version": "1.5.23",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -70,7 +70,7 @@
70
70
  <th><nobr>门牌号</nobr></th>
71
71
  <th><nobr>详细地址</nobr></th>
72
72
  <th><nobr>时间</nobr></th>
73
- <th><nobr>操作</nobr></th>
73
+ <th ><nobr>操作</nobr></th>
74
74
  </tr>
75
75
  </template>
76
76
  <template partial='body'>
@@ -86,10 +86,8 @@
86
86
  <td style="text-align:center"><nobr>{{row.f_room}}{{row.f_room_suffix}}</nobr></td>
87
87
  <td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
88
88
  <td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
89
- <td style="text-align:center">
90
- <!-- <button type="button" name="button" class="btn btn-link"
91
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
92
- <button type="button" name="button" class="btn btn-link"
89
+ <td style="text-align:center" >
90
+ <button type="button" name="button" class="btn btn-danger" style="padding: 5px 12px"
93
91
  @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
94
92
  </td>
95
93
  </tr>
@@ -123,6 +121,7 @@
123
121
  source:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
124
122
  addflag: false,
125
123
  addtitle:'',
124
+ jurisdiction: this.$login.r,
126
125
  //文件上传弹框
127
126
  showFile: false
128
127
  }