manage-client 3.2.34 → 3.2.35

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.
File without changes
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Oct 20 10:54:09 CST 2021
2
- gradle.version=5.5
1
+ #Mon Oct 26 16:02:57 CST 2020
2
+ gradle.version=6.1.1
File without changes
@@ -1,174 +1,174 @@
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:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan='http://119.146.1.106:8300/'
15
- var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://127.0.0.1:8086/', fuwu_login = 'http://192.168.50.4:8400'
17
- var fuwu = 'http://192.168.50.4:8400'
18
- var system = 'http://192.168.50.4:8400'
19
- //192.168.
20
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
21
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
22
- var proxyTable = {
23
- '/rs/logic/exportfile': {
24
- target: fuwu
25
- },
26
- '/files': {
27
- target: fuwu
28
- },
29
- // 查找资源服务数据
30
- '/rs/search': {
31
- target: fuwu
32
- },
33
- // 查找资源服务数据
34
- '/rs/logic/getLogin': {
35
- target: fuwu
36
- },
37
- // 查找资源服务数据
38
- '/rs/logic/getInitData': {
39
- target: fuwu
40
- },
41
- '/rs/logic/getSaleInitData':{
42
- target: fuwu
43
- },
44
- // 用户登录服务地址
45
- '/rs/user': {
46
- target: fuwu
47
- },
48
- '/rs/path/getParams': {
49
- target: fuwu
50
- },
51
- '/rs/data': {
52
- target: fuwu
53
- },
54
- '/rs/license': {
55
- target: fuwu
56
- },
57
- '/rs/db': {
58
- target: fuwu
59
- },
60
- '/excel': {
61
- target: fuwu
62
- },
63
- '/rs/config': {
64
- target: fuwu
65
- },
66
- '/rs/sql/getLicenseById': {
67
- target: fuwu
68
- },
69
- '/rs/report': {
70
- target: fuwu
71
- },
72
- '/rs/vue': {
73
- target: fuwu
74
- },
75
- '/rs/file': {
76
- target: fuwu
77
- },
78
- '/rs/logic/SumSettleFileImport': {
79
- target: 'http://127.0.0.1:8080'
80
- },
81
- '/rs': {
82
- target: fuwu
83
- }
84
- }
85
-
86
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
87
- publicPath: config.output.publicPath,
88
- stats: {
89
- colors: true,
90
- chunks: false
91
- }
92
- })
93
-
94
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
95
- // force page reload when html-webpack-plugin template changes
96
- compiler.plugin('compilation', function (compilation) {
97
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
98
- hotMiddleware.publish({action: 'reload'})
99
- cb()
100
- })
101
- })
102
-
103
- // proxy api requests
104
- Object.keys(proxyTable).forEach(function (context) {
105
- var options = proxyTable[context]
106
- if (typeof options === 'string') {
107
- options = {target: options}
108
- }
109
- app.use(proxyMiddleware(context, options))
110
- })
111
-
112
- // handle fallback for HTML5 history API
113
- app.use(require('connect-history-api-fallback')())
114
- // app.use(function (req, res, next) {
115
- // res.header('Access-Control-Allow-Origin', '*')
116
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
117
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
118
- // res.header('X-Powered-By', '3,2,1')
119
- // res.header('Access-Control-Allow-Credentials', 'true')
120
- // res.header('Content-Type', 'application/json;charset=utf-8')
121
- // next()
122
- // })
123
-
124
- // serve webpack bundle output
125
- app.use(devMiddleware)
126
-
127
- // enable hot-reload and state-preserving
128
- // compilation error display
129
- app.use(hotMiddleware)
130
-
131
- // serve pure static assets
132
- app.use('/static', express.static('./static'))
133
-
134
- // app.all('/rs/*', function (req, res) {
135
- // proxy.web(req, res, {
136
- // target: 'http://127.0.0.1:8081/reports'
137
- // })
138
- // })
139
-
140
- // app.all('/rs/*', function (req, res) {
141
- // proxy.web(req, res, {
142
- // target: 'http://127.0.0.1:8081/ldap'
143
- // })
144
- // })
145
- // app.all('/excel/*', function (req, res) {
146
- // proxy.web(req, res, {
147
- // target: 'http://127.0.0.1:8081/charge'
148
- // })
149
- // })
150
-
151
- // app.all('/rs/*', function (req, res) {
152
- // proxy.web(req, res, {
153
- // target: 'http://127.0.0.1:82/charge'
154
- // })
155
- // })
156
-
157
- // app.all('/*', function (req, res) {
158
- // proxy.web(req, res, {
159
- // target: 'http://127.0.0.1:82'
160
- // })
161
- // })
162
- // app.all('/rs/user', function (req, res) {
163
- // proxy.web(req, res, {
164
- // target: 'http://127.0.0.1:82'
165
- // })
166
- // })
167
-
168
- module.exports = app.listen(8087, function (err) {
169
- if (err) {
170
- console.log(err)
171
- return
172
- }
173
- console.log('Listening at http://localhost:8085')
174
- })
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:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
+ var shaoguan='http://119.146.1.106:8300/'
15
+ var qtx='http://36.103.222.144:6300/'
16
+ var bendi = 'http://127.0.0.1:8084/', fuwu_login = 'http://192.168.50.4:8400'
17
+ var fuwu = 'http://192.168.50.4:8400'
18
+ var system = 'http://192.168.50.4:8400'
19
+ //192.168.
20
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
21
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
22
+ var proxyTable = {
23
+ '/rs/logic/exportfile': {
24
+ target: fuwu
25
+ },
26
+ '/files': {
27
+ target: fuwu
28
+ },
29
+ // 查找资源服务数据
30
+ '/rs/search': {
31
+ target: fuwu
32
+ },
33
+ // 查找资源服务数据
34
+ '/rs/logic/getLogin': {
35
+ target: fuwu
36
+ },
37
+ // 查找资源服务数据
38
+ '/rs/logic/getInitData': {
39
+ target: fuwu
40
+ },
41
+ '/rs/logic/getSaleInitData':{
42
+ target: fuwu
43
+ },
44
+ // 用户登录服务地址
45
+ '/rs/user': {
46
+ target: fuwu
47
+ },
48
+ '/rs/path/getParams': {
49
+ target: fuwu
50
+ },
51
+ '/rs/data': {
52
+ target: fuwu
53
+ },
54
+ '/rs/license': {
55
+ target: fuwu
56
+ },
57
+ '/rs/db': {
58
+ target: fuwu
59
+ },
60
+ '/excel': {
61
+ target: fuwu
62
+ },
63
+ '/rs/config': {
64
+ target: fuwu
65
+ },
66
+ '/rs/sql/getLicenseById': {
67
+ target: fuwu
68
+ },
69
+ '/rs/report': {
70
+ target: fuwu
71
+ },
72
+ '/rs/vue': {
73
+ target: fuwu
74
+ },
75
+ '/rs/file': {
76
+ target: fuwu
77
+ },
78
+ '/rs/logic/SumSettleFileImport': {
79
+ target: 'http://127.0.0.1:8080'
80
+ },
81
+ '/rs': {
82
+ target: bendi
83
+ }
84
+ }
85
+
86
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
87
+ publicPath: config.output.publicPath,
88
+ stats: {
89
+ colors: true,
90
+ chunks: false
91
+ }
92
+ })
93
+
94
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
95
+ // force page reload when html-webpack-plugin template changes
96
+ compiler.plugin('compilation', function (compilation) {
97
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
98
+ hotMiddleware.publish({action: 'reload'})
99
+ cb()
100
+ })
101
+ })
102
+
103
+ // proxy api requests
104
+ Object.keys(proxyTable).forEach(function (context) {
105
+ var options = proxyTable[context]
106
+ if (typeof options === 'string') {
107
+ options = {target: options}
108
+ }
109
+ app.use(proxyMiddleware(context, options))
110
+ })
111
+
112
+ // handle fallback for HTML5 history API
113
+ app.use(require('connect-history-api-fallback')())
114
+ // app.use(function (req, res, next) {
115
+ // res.header('Access-Control-Allow-Origin', '*')
116
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
117
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
118
+ // res.header('X-Powered-By', '3,2,1')
119
+ // res.header('Access-Control-Allow-Credentials', 'true')
120
+ // res.header('Content-Type', 'application/json;charset=utf-8')
121
+ // next()
122
+ // })
123
+
124
+ // serve webpack bundle output
125
+ app.use(devMiddleware)
126
+
127
+ // enable hot-reload and state-preserving
128
+ // compilation error display
129
+ app.use(hotMiddleware)
130
+
131
+ // serve pure static assets
132
+ app.use('/static', express.static('./static'))
133
+
134
+ // app.all('/rs/*', function (req, res) {
135
+ // proxy.web(req, res, {
136
+ // target: 'http://127.0.0.1:8081/reports'
137
+ // })
138
+ // })
139
+
140
+ // app.all('/rs/*', function (req, res) {
141
+ // proxy.web(req, res, {
142
+ // target: 'http://127.0.0.1:8081/ldap'
143
+ // })
144
+ // })
145
+ // app.all('/excel/*', function (req, res) {
146
+ // proxy.web(req, res, {
147
+ // target: 'http://127.0.0.1:8081/charge'
148
+ // })
149
+ // })
150
+
151
+ // app.all('/rs/*', function (req, res) {
152
+ // proxy.web(req, res, {
153
+ // target: 'http://127.0.0.1:82/charge'
154
+ // })
155
+ // })
156
+
157
+ // app.all('/*', function (req, res) {
158
+ // proxy.web(req, res, {
159
+ // target: 'http://127.0.0.1:82'
160
+ // })
161
+ // })
162
+ // app.all('/rs/user', function (req, res) {
163
+ // proxy.web(req, res, {
164
+ // target: 'http://127.0.0.1:82'
165
+ // })
166
+ // })
167
+
168
+ module.exports = app.listen(8085, function (err) {
169
+ if (err) {
170
+ console.log(err)
171
+ return
172
+ }
173
+ console.log('Listening at http://localhost:8085')
174
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.34",
3
+ "version": "3.2.35",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {