manage-client 3.1.17 → 3.1.18

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