manage-client 1.22.40-ca → 1.22.43-ca

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,102 +1,102 @@
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
- var bendi = 'http://192.168.2.79:7003/', changan = 'http://192.168.2.79:7003/'
12
- var proxyTable = {
13
- // 查找资源服务数据
14
- '/rs/sql/manageSingleTable': {
15
- target:changan
16
- },
17
- '/rs/sql/AbndonQuery': {
18
- target:'http://127.0.0.1:8081/'
19
- },
20
- '/rs/search': {
21
- target: changan
22
- },
23
- '/rs/logic/getLogin': {
24
- target: changan
25
- },
26
- '/rs/logic/getInitData': {
27
- target: changan
28
- },
29
- '/rs/logic/getSaleInitData': {
30
- target: changan
31
- },
32
- // 用户登录服务地址
33
- '/rs/user': {
34
- target: changan
35
- },
36
- '/rs/data': {
37
- target: changan
38
- },
39
- '/rs/license': {
40
- target: changan
41
- },
42
- '/xyhf/rs/xyhf': {
43
- target: changan
44
- },
45
- '/rs/sql': {
46
- target: bendi
47
- },
48
- '/rs/logic/exportfile': {
49
- target: bendi
50
- },
51
- '/rs': {
52
- //target: changan
53
- target: changan
54
- }
55
- }
56
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
57
- publicPath: config.output.publicPath,
58
- stats: {
59
- colors: true,
60
- chunks: false
61
- }
62
- })
63
-
64
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
65
- // force page reload when html-webpack-plugin template changes
66
- compiler.plugin('compilation', function (compilation) {
67
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
68
- hotMiddleware.publish({ action: 'reload' })
69
- cb()
70
- })
71
- })
72
-
73
- // proxy api requests
74
- Object.keys(proxyTable).forEach(function (context) {
75
- var options = proxyTable[context]
76
- if (typeof options === 'string') {
77
- options = { target: options }
78
- }
79
- app.use(proxyMiddleware(context, options))
80
- })
81
-
82
- // handle fallback for HTML5 history API
83
- app.use(require('connect-history-api-fallback')())
84
-
85
- // serve webpack bundle output
86
- app.use(devMiddleware)
87
-
88
- // enable hot-reload and state-preserving
89
- // compilation error display
90
- app.use(hotMiddleware)
91
-
92
- // serve pure static assets
93
- app.use('/static', express.static('./static'))
94
-
95
-
96
- module.exports = app.listen(8085, function (err) {
97
- if (err) {
98
- console.log(err)
99
- return
100
- }
101
- console.log('Listening at http://localhost:8085')
102
- })
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
+ var bendi = 'http://127.0.0.1:8081/', changan = 'http://192.168.2.84:7003/'
12
+ var proxyTable = {
13
+ // 查找资源服务数据
14
+ '/rs/sql/manageSingleTable': {
15
+ target:changan
16
+ },
17
+ '/rs/sql/AbndonQuery': {
18
+ target:'http://127.0.0.1:8081/'
19
+ },
20
+ '/rs/search': {
21
+ target: changan
22
+ },
23
+ '/rs/logic/getLogin': {
24
+ target: changan
25
+ },
26
+ '/rs/logic/getInitData': {
27
+ target: changan
28
+ },
29
+ '/rs/logic/getSaleInitData': {
30
+ target: changan
31
+ },
32
+ // 用户登录服务地址
33
+ '/rs/user': {
34
+ target: changan
35
+ },
36
+ '/rs/data': {
37
+ target: changan
38
+ },
39
+ '/rs/license': {
40
+ target: changan
41
+ },
42
+ '/xyhf/rs/xyhf': {
43
+ target: changan
44
+ },
45
+ '/rs/sql': {
46
+ target: changan
47
+ },
48
+ '/rs/logic/exportfile': {
49
+ target: changan
50
+ },
51
+ '/rs': {
52
+ //target: changan
53
+ target: changan
54
+ }
55
+ }
56
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
57
+ publicPath: config.output.publicPath,
58
+ stats: {
59
+ colors: true,
60
+ chunks: false
61
+ }
62
+ })
63
+
64
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
65
+ // force page reload when html-webpack-plugin template changes
66
+ compiler.plugin('compilation', function (compilation) {
67
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
68
+ hotMiddleware.publish({ action: 'reload' })
69
+ cb()
70
+ })
71
+ })
72
+
73
+ // proxy api requests
74
+ Object.keys(proxyTable).forEach(function (context) {
75
+ var options = proxyTable[context]
76
+ if (typeof options === 'string') {
77
+ options = { target: options }
78
+ }
79
+ app.use(proxyMiddleware(context, options))
80
+ })
81
+
82
+ // handle fallback for HTML5 history API
83
+ app.use(require('connect-history-api-fallback')())
84
+
85
+ // serve webpack bundle output
86
+ app.use(devMiddleware)
87
+
88
+ // enable hot-reload and state-preserving
89
+ // compilation error display
90
+ app.use(hotMiddleware)
91
+
92
+ // serve pure static assets
93
+ app.use('/static', express.static('./static'))
94
+
95
+
96
+ module.exports = app.listen(8085, function (err) {
97
+ if (err) {
98
+ console.log(err)
99
+ return
100
+ }
101
+ console.log('Listening at http://localhost:8085')
102
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "1.22.40-ca",
3
+ "version": "1.22.43-ca",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,28 +1,28 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <!--<route :comp="{name: 'manage-home'}"></route>-->
7
- <!--<route :comp="{name: 'meter-reading'}"></route>-->
8
- <!--<route :comp="{name: 'Gasproperties'}"></route>-->
9
- <!--<route :comp="{name: 'vender-management'}"></route>-->
10
- <!--<route :comp="{name: 'malfunction-home'}"></route>-->
11
- <route :comp="{name: 'login'}"></route>
12
- <!-- <route :comp="{name: 'load-data'}"></route> -->
13
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
14
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
15
- </article>
16
- </div>
17
- </app-base>
18
- </div>
19
- </template>
20
-
21
- <script>
22
-
23
-
24
- export default {
25
-
26
-
27
- }
28
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <!--<route :comp="{name: 'manage-home'}"></route>-->
7
+ <!--<route :comp="{name: 'meter-reading'}"></route>-->
8
+ <!--<route :comp="{name: 'Gasproperties'}"></route>-->
9
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
10
+ <!--<route :comp="{name: 'malfunction-home'}"></route>-->
11
+ <route :comp="{name: 'login'}"></route>
12
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
13
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
14
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
15
+ </article>
16
+ </div>
17
+ </app-base>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+
23
+
24
+ export default {
25
+
26
+
27
+ }
28
+ </script>