manage-client 3.2.93-aode → 3.2.94-aode

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,200 +1,193 @@
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 str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
15
- var str = 'http://192.168.10.14:8300', fuwu = 'http://192.168.10.233:8300', bendi = 'http://localhost:8488/'
16
- // var str = 'http://121.36.106.17:8400' , fuwu = 'http://121.36.106.17:8400' , bendi = 'http://192.168.10.14:8300'
17
- var proxyTable = {
18
-
19
- '/rs/easyexcel/': {
20
- target: fuwu
21
- },
22
- '/rs/logic/exportfile': {
23
- target: fuwu
24
- },
25
- '/rs/sql/aode_YearByChargeType': {
26
- target: fuwu + '/staticpage/yearbychargetype/'
27
- },
28
- '/rs/sql/aode_YearByUserType': {
29
- target: fuwu + '/staticpage/yearbyusertype/'
30
- },
31
- '/rs/sql/aode_monthByChargeType': {
32
- target: fuwu + '/staticpage/monthbychargetype/'
33
- },
34
- '/files': {
35
- target: fuwu
36
- },
37
- // 查找资源服务数据
38
- '/rs/search': {
39
- target: fuwu
40
- },
41
- '/rs/ckh/singleTableParam': {
42
- target: fuwu
43
- },
44
- '/rs/easyexcel/exportCkh': {
45
- target: fuwu
46
- },
47
-
48
- '/rs/sql/webmeter_getNewHandChanceList': {
49
- target: bendi
50
- },
51
-
52
- '/rs/sql/inspectList': {
53
- target: bendi
54
- },
55
- '/rs/sql/handinspectList': {
56
- target: bendi
57
- },
58
-
59
- '/rs/sql/manage_handplanRecord': {
60
- target: 'http://192.168.10.233:8300'
61
- },
62
- '/rs/logic/chargevalueaddinfo': {
63
- target: 'http://localhost:8025'
64
- },
65
- '/rs/logic/valueaddinfo': {
66
- target: 'http://localhost:8025'
67
- },
68
- // 查找资源服务数据
69
- '/rs/logic/getLogin': {
70
- target: fuwu
71
- },
72
- // 查找资源服务数据
73
- '/rs/logic/getInitData': {
74
- target: fuwu
75
- },
76
- // 用户登录服务地址
77
- '/rs/user': {
78
- target: fuwu
79
- },
80
- '/rs/path/getParams': {
81
- target: fuwu
82
- },
83
- '/rs/data': {
84
- target: fuwu
85
- },
86
- '/rs/license': {
87
- target: fuwu
88
- },
89
- '/rs/db': {
90
- target: fuwu
91
- },
92
- '/excel': {
93
- target: fuwu
94
- },
95
- '/rs/config': {
96
- target: fuwu
97
- },
98
- '/rs/sql/getLicenseById': {
99
- target: fuwu
100
- },
101
- '/rs/report': {
102
- target: fuwu
103
- },
104
- '/rs/vue': {
105
- target: fuwu
106
- },
107
- '/rs': {
108
- target: fuwu
109
- }
110
- }
111
-
112
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
113
- publicPath: config.output.publicPath,
114
- stats: {
115
- colors: true,
116
- chunks: false
117
- }
118
- })
119
-
120
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
121
- // force page reload when html-webpack-plugin template changes
122
- compiler.plugin('compilation', function (compilation) {
123
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
124
- hotMiddleware.publish({action: 'reload'})
125
- cb()
126
- })
127
- })
128
-
129
- // proxy api requests
130
- Object.keys(proxyTable).forEach(function (context) {
131
- var options = proxyTable[context]
132
- if (typeof options === 'string') {
133
- options = {target: options}
134
- }
135
- app.use(proxyMiddleware(context, options))
136
- })
137
-
138
- // handle fallback for HTML5 history API
139
- app.use(require('connect-history-api-fallback')())
140
- // app.use(function (req, res, next) {
141
- // res.header('Access-Control-Allow-Origin', '*')
142
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
143
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
144
- // res.header('X-Powered-By', '3,2,1')
145
- // res.header('Access-Control-Allow-Credentials', 'true')
146
- // res.header('Content-Type', 'application/json;charset=utf-8')
147
- // next()
148
- // })
149
-
150
- // serve webpack bundle output
151
- app.use(devMiddleware)
152
-
153
- // enable hot-reload and state-preserving
154
- // compilation error display
155
- app.use(hotMiddleware)
156
-
157
- // serve pure static assets
158
- app.use('/static', express.static('./static'))
159
-
160
- // app.all('/rs/*', function (req, res) {
161
- // proxy.web(req, res, {
162
- // target: 'http://127.0.0.1:8081/reports'
163
- // })
164
- // })
165
-
166
- // app.all('/rs/*', function (req, res) {
167
- // proxy.web(req, res, {
168
- // target: 'http://127.0.0.1:8081/ldap'
169
- // })
170
- // })
171
- // app.all('/excel/*', function (req, res) {
172
- // proxy.web(req, res, {
173
- // target: 'http://127.0.0.1:8081/charge'
174
- // })
175
- // })
176
-
177
- // app.all('/rs/*', function (req, res) {
178
- // proxy.web(req, res, {
179
- // target: 'http://127.0.0.1:82/charge'
180
- // })
181
- // })
182
-
183
- // app.all('/*', function (req, res) {
184
- // proxy.web(req, res, {
185
- // target: 'http://127.0.0.1:82'
186
- // })
187
- // })
188
- // app.all('/rs/user', function (req, res) {
189
- // proxy.web(req, res, {
190
- // target: 'http://127.0.0.1:82'
191
- // })
192
- // })
193
-
194
- module.exports = app.listen(8099, function (err) {
195
- if (err) {
196
- console.log(err)
197
- return
198
- }
199
- console.log('Listening at http://localhost:8099')
200
- })
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 str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
15
+ var str = 'http://192.168.10.14:8300', fuwu = 'http://192.168.10.233:8300', bendi = 'http://localhost:9025/'
16
+ // var str = 'http://121.36.106.17:8400' , fuwu = 'http://121.36.106.17:8400' , bendi = 'http://192.168.10.14:8300'
17
+ var proxyTable = {
18
+
19
+ '/rs/easyexcel/': {
20
+ target: fuwu
21
+ },
22
+ '/rs/logic/exportfile': {
23
+ target: fuwu
24
+ },
25
+ '/rs/sql/aode_YearByChargeType':{
26
+ target:fuwu+"/staticpage/yearbychargetype/"
27
+ },
28
+ '/rs/sql/aode_YearByUserType':{
29
+ target:fuwu+"/staticpage/yearbyusertype/"
30
+ },
31
+ '/rs/sql/aode_monthByChargeType':{
32
+ target:fuwu+"/staticpage/monthbychargetype/"
33
+ },
34
+ '/files': {
35
+ target: fuwu
36
+ },
37
+ // 查找资源服务数据
38
+ '/rs/search': {
39
+ target: fuwu
40
+ },
41
+ '/rs/ckh/singleTableParam': {
42
+ target: fuwu
43
+ },
44
+ '/rs/easyexcel/exportCkh': {
45
+ target: fuwu
46
+ },
47
+
48
+ '/rs/sql/webmeter_getNewHandChanceList': {
49
+ target: bendi
50
+ },
51
+
52
+ '/rs/sql/manage_handplanRecord': {
53
+ target: 'http://192.168.10.233:8300'
54
+ },
55
+ '/rs/logic/chargevalueaddinfo': {
56
+ target: 'http://localhost:8025'
57
+ },
58
+ '/rs/logic/valueaddinfo': {
59
+ target: 'http://localhost:8025'
60
+ },
61
+ // 查找资源服务数据
62
+ '/rs/logic/getLogin': {
63
+ target: fuwu
64
+ },
65
+ // 查找资源服务数据
66
+ '/rs/logic/getInitData': {
67
+ target: fuwu
68
+ },
69
+ // 用户登录服务地址
70
+ '/rs/user': {
71
+ target: fuwu
72
+ },
73
+ '/rs/path/getParams': {
74
+ target: fuwu
75
+ },
76
+ '/rs/data': {
77
+ target: fuwu
78
+ },
79
+ '/rs/license': {
80
+ target: fuwu
81
+ },
82
+ '/rs/db': {
83
+ target: fuwu
84
+ },
85
+ '/excel': {
86
+ target: fuwu
87
+ },
88
+ '/rs/config': {
89
+ target: fuwu
90
+ },
91
+ '/rs/sql/getLicenseById': {
92
+ target: fuwu
93
+ },
94
+ '/rs/report': {
95
+ target: fuwu
96
+ },
97
+ '/rs/vue': {
98
+ target: fuwu
99
+ },
100
+ '/rs': {
101
+ target: fuwu
102
+ }
103
+ }
104
+
105
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
106
+ publicPath: config.output.publicPath,
107
+ stats: {
108
+ colors: true,
109
+ chunks: false
110
+ }
111
+ })
112
+
113
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
114
+ // force page reload when html-webpack-plugin template changes
115
+ compiler.plugin('compilation', function (compilation) {
116
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
117
+ hotMiddleware.publish({action: 'reload'})
118
+ cb()
119
+ })
120
+ })
121
+
122
+ // proxy api requests
123
+ Object.keys(proxyTable).forEach(function (context) {
124
+ var options = proxyTable[context]
125
+ if (typeof options === 'string') {
126
+ options = {target: options}
127
+ }
128
+ app.use(proxyMiddleware(context, options))
129
+ })
130
+
131
+ // handle fallback for HTML5 history API
132
+ app.use(require('connect-history-api-fallback')())
133
+ // app.use(function (req, res, next) {
134
+ // res.header('Access-Control-Allow-Origin', '*')
135
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
136
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
137
+ // res.header('X-Powered-By', '3,2,1')
138
+ // res.header('Access-Control-Allow-Credentials', 'true')
139
+ // res.header('Content-Type', 'application/json;charset=utf-8')
140
+ // next()
141
+ // })
142
+
143
+ // serve webpack bundle output
144
+ app.use(devMiddleware)
145
+
146
+ // enable hot-reload and state-preserving
147
+ // compilation error display
148
+ app.use(hotMiddleware)
149
+
150
+ // serve pure static assets
151
+ app.use('/static', express.static('./static'))
152
+
153
+ // app.all('/rs/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:8081/reports'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/rs/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:8081/ldap'
162
+ // })
163
+ // })
164
+ // app.all('/excel/*', function (req, res) {
165
+ // proxy.web(req, res, {
166
+ // target: 'http://127.0.0.1:8081/charge'
167
+ // })
168
+ // })
169
+
170
+ // app.all('/rs/*', function (req, res) {
171
+ // proxy.web(req, res, {
172
+ // target: 'http://127.0.0.1:82/charge'
173
+ // })
174
+ // })
175
+
176
+ // app.all('/*', function (req, res) {
177
+ // proxy.web(req, res, {
178
+ // target: 'http://127.0.0.1:82'
179
+ // })
180
+ // })
181
+ // app.all('/rs/user', function (req, res) {
182
+ // proxy.web(req, res, {
183
+ // target: 'http://127.0.0.1:82'
184
+ // })
185
+ // })
186
+
187
+ module.exports = app.listen(8099, function (err) {
188
+ if (err) {
189
+ console.log(err)
190
+ return
191
+ }
192
+ console.log('Listening at http://localhost:8099')
193
+ })
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "manage-client",
3
- "version": "3.2.93-aode",
4
- "description": "经营管控模块前台组件",
5
- "main": "src/index.js",
6
- "directories": {
7
- "test": "test"
8
- },
9
- "dependencies": {
10
- "axios": "^1.2.0",
11
- "jsencrypt": "*",
12
- "vue-json-excel": "^0.3.0"
13
- },
14
- "devDependencies": {
15
- "babel-core": "^6.0.0",
16
- "babel-loader": "^6.0.0",
17
- "babel-plugin-transform-runtime": "^6.0.0",
18
- "babel-preset-es2015": "^6.0.0",
19
- "babel-preset-stage-2": "^6.0.0",
20
- "chai": "^3.5.0",
21
- "co": "^4.6.0",
22
- "connect-history-api-fallback": "^1.1.0",
23
- "cross-env": "^1.0.7",
24
- "cross-spawn": "^2.1.5",
25
- "css-loader": "^0.23.0",
26
- "echarts": "^4.1.0",
27
- "eslint": "^2.0.0",
28
- "eslint-config-standard": "^5.1.0",
29
- "eslint-friendly-formatter": "^1.2.2",
30
- "eslint-loader": "^1.3.0",
31
- "eslint-plugin-html": "^1.3.0",
32
- "eslint-plugin-promise": "^1.0.8",
33
- "eslint-plugin-standard": "^1.3.2",
34
- "eslint-plugin-vue": "^0.1.1",
35
- "eventsource-polyfill": "^0.9.6",
36
- "express": "^4.13.3",
37
- "extract-text-webpack-plugin": "^1.0.1",
38
- "file-loader": "^0.8.4",
39
- "function-bind": "^1.0.2",
40
- "html-webpack-plugin": "^2.8.1",
41
- "http-proxy-middleware": "^0.11.0",
42
- "inject-loader": "^2.0.1",
43
- "isparta-loader": "^2.0.0",
44
- "jasmine-core": "^2.4.1",
45
- "jquery": "^3.3.1",
46
- "json-loader": "^0.5.4",
47
- "karma": "^1.4.1",
48
- "karma-chrome-launcher": "^2.2.0",
49
- "karma-coverage": "^1.1.1",
50
- "karma-mocha": "^1.3.0",
51
- "karma-sinon-chai": "^1.3.1",
52
- "karma-sourcemap-loader": "^0.3.7",
53
- "karma-spec-reporter": "0.0.31",
54
- "karma-webpack": "^2.0.2",
55
- "less": "^2.7.3",
56
- "mkdirp": "^0.5.1",
57
- "mocha": "^3.2.0",
58
- "ncp": "^2.0.0",
59
- "rimraf": "^2.5.0",
60
- "sale-client": "^1.2.17-aode",
61
- "selenium-server": "2.52.0",
62
- "sinon": "^2.1.0",
63
- "sinon-chai": "^2.8.0",
64
- "style": "0.0.3",
65
- "style-loader": "^0.20.3",
66
- "system-clients": "3.1.109-aode",
67
- "url-loader": "^0.5.7",
68
- "vue-amap": "0.5.10",
69
- "vue-client": "^1.22.28-aode",
70
- "vue-hot-reload-api": "^1.2.0",
71
- "vue-html-loader": "^1.0.0",
72
- "vue-loader": "8.2.1",
73
- "vue-resource": "^1.5.0",
74
- "vue-router": "^0.7.13",
75
- "vue-strap": "^1.0.9",
76
- "vue-style-loader": "^1.0.0",
77
- "vue-validator": "2.1.7",
78
- "webpack": "1.12.2",
79
- "webpack-dev-middleware": "^1.4.0",
80
- "webpack-hot-middleware": "^2.6.0",
81
- "webpack-merge": "^0.8.3"
82
- },
83
- "scripts": {
84
- "unit": "karma start test/unit/karma.conf.js --single-run",
85
- "example": "node build/example-server.js",
86
- "dev": "node build/dev-server.js",
87
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
88
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
89
- "e2e": "node test/e2e/runner.js",
90
- "release": "bash build/release.sh"
91
- },
92
- "repository": {
93
- "type": "git",
94
- "url": "https://gitee.com/aote/management_modules.git"
95
- },
96
- "keywords": [
97
- "manage"
98
- ],
99
- "author": "liuxudong",
100
- "license": "ISC"
101
- }
1
+ {
2
+ "name": "manage-client",
3
+ "version": "3.2.94-aode",
4
+ "description": "经营管控模块前台组件",
5
+ "main": "src/index.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {
10
+ "axios": "^1.2.0",
11
+ "jsencrypt": "*",
12
+ "vue-json-excel": "^0.3.0"
13
+ },
14
+ "devDependencies": {
15
+ "babel-core": "^6.0.0",
16
+ "babel-loader": "^6.0.0",
17
+ "babel-plugin-transform-runtime": "^6.0.0",
18
+ "babel-preset-es2015": "^6.0.0",
19
+ "babel-preset-stage-2": "^6.0.0",
20
+ "chai": "^3.5.0",
21
+ "co": "^4.6.0",
22
+ "connect-history-api-fallback": "^1.1.0",
23
+ "cross-env": "^1.0.7",
24
+ "cross-spawn": "^2.1.5",
25
+ "css-loader": "^0.23.0",
26
+ "echarts": "^4.1.0",
27
+ "eslint": "^2.0.0",
28
+ "eslint-config-standard": "^5.1.0",
29
+ "eslint-friendly-formatter": "^1.2.2",
30
+ "eslint-loader": "^1.3.0",
31
+ "eslint-plugin-html": "^1.3.0",
32
+ "eslint-plugin-promise": "^1.0.8",
33
+ "eslint-plugin-standard": "^1.3.2",
34
+ "eslint-plugin-vue": "^0.1.1",
35
+ "eventsource-polyfill": "^0.9.6",
36
+ "express": "^4.13.3",
37
+ "extract-text-webpack-plugin": "^1.0.1",
38
+ "file-loader": "^0.8.4",
39
+ "function-bind": "^1.0.2",
40
+ "html-webpack-plugin": "^2.8.1",
41
+ "http-proxy-middleware": "^0.11.0",
42
+ "inject-loader": "^2.0.1",
43
+ "isparta-loader": "^2.0.0",
44
+ "jasmine-core": "^2.4.1",
45
+ "jquery": "^3.3.1",
46
+ "json-loader": "^0.5.4",
47
+ "karma": "^1.4.1",
48
+ "karma-chrome-launcher": "^2.2.0",
49
+ "karma-coverage": "^1.1.1",
50
+ "karma-mocha": "^1.3.0",
51
+ "karma-sinon-chai": "^1.3.1",
52
+ "karma-sourcemap-loader": "^0.3.7",
53
+ "karma-spec-reporter": "0.0.31",
54
+ "karma-webpack": "^2.0.2",
55
+ "less": "^2.7.3",
56
+ "mkdirp": "^0.5.1",
57
+ "mocha": "^3.2.0",
58
+ "ncp": "^2.0.0",
59
+ "rimraf": "^2.5.0",
60
+ "sale-client": "^1.2.17-aode",
61
+ "selenium-server": "2.52.0",
62
+ "sinon": "^2.1.0",
63
+ "sinon-chai": "^2.8.0",
64
+ "style": "0.0.3",
65
+ "style-loader": "^0.20.3",
66
+ "system-clients": "3.1.109-aode",
67
+ "url-loader": "^0.5.7",
68
+ "vue-amap": "0.5.10",
69
+ "vue-client": "^1.22.28-aode",
70
+ "vue-hot-reload-api": "^1.2.0",
71
+ "vue-html-loader": "^1.0.0",
72
+ "vue-loader": "8.2.1",
73
+ "vue-resource": "^1.5.0",
74
+ "vue-router": "^0.7.13",
75
+ "vue-strap": "^1.0.9",
76
+ "vue-style-loader": "^1.0.0",
77
+ "vue-validator": "2.1.7",
78
+ "webpack": "1.12.2",
79
+ "webpack-dev-middleware": "^1.4.0",
80
+ "webpack-hot-middleware": "^2.6.0",
81
+ "webpack-merge": "^0.8.3"
82
+ },
83
+ "scripts": {
84
+ "unit": "karma start test/unit/karma.conf.js --single-run",
85
+ "example": "node build/example-server.js",
86
+ "dev": "node build/dev-server.js",
87
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
88
+ "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
89
+ "e2e": "node test/e2e/runner.js",
90
+ "release": "bash build/release.sh"
91
+ },
92
+ "repository": {
93
+ "type": "git",
94
+ "url": "https://gitee.com/aote/management_modules.git"
95
+ },
96
+ "keywords": [
97
+ "manage"
98
+ ],
99
+ "author": "liuxudong",
100
+ "license": "ISC"
101
+ }