manage-client 1.22.8-ca → 1.22.12-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,93 @@
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.84:7003/', changan = 'http://192.168.2.84:7003/'
12
- var proxyTable = {
13
- // 查找资源服务数据
14
- '/rs/sql/manageSingleTable': {
15
- target:changan
16
- },
17
- '/rs/search': {
18
- target: changan
19
- },
20
- '/rs/logic/getLogin': {
21
- target: changan
22
- },
23
- '/rs/logic/getInitData': {
24
- target: changan
25
- },
26
- '/rs/logic/getSaleInitData': {
27
- target: changan
28
- },
29
- // 用户登录服务地址
30
- '/rs/user': {
31
- target: changan
32
- },
33
- '/rs/data': {
34
- target: changan
35
- },
36
- '/rs/license': {
37
- target: changan
38
- },
39
- '/rs/sql/nosaleQuery': {
40
- target: 'http://127.0.0.1:8081/'
41
- },
42
- '/rs/sql': {
43
- target: bendi
44
- },
45
- '/rs/logic': {
46
- target: bendi
47
- },
48
- '/xyhf/rs/xyhf': {
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
- })
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:5001/ldap/', changan = 'http://192.168.2.79:7003/'
12
+ var proxyTable = {
13
+ // 查找资源服务数据
14
+ '/rs/sql/manageSingleTable': {
15
+ target:changan
16
+ },
17
+ '/rs/search': {
18
+ target: changan
19
+ },
20
+ '/rs/logic/getLogin': {
21
+ target: changan
22
+ },
23
+ '/rs/logic/getInitData': {
24
+ target: changan
25
+ },
26
+ '/rs/logic/getSaleInitData': {
27
+ target: changan
28
+ },
29
+ // 用户登录服务地址
30
+ '/rs/user': {
31
+ target: changan
32
+ },
33
+ '/rs/data': {
34
+ target: changan
35
+ },
36
+ '/rs/license': {
37
+ target: changan
38
+ },
39
+ '/xyhf/rs/xyhf': {
40
+ target: changan
41
+ },
42
+ '/rs': {
43
+ //target: changan
44
+ target: changan
45
+ }
46
+ }
47
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
48
+ publicPath: config.output.publicPath,
49
+ stats: {
50
+ colors: true,
51
+ chunks: false
52
+ }
53
+ })
54
+
55
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
56
+ // force page reload when html-webpack-plugin template changes
57
+ compiler.plugin('compilation', function (compilation) {
58
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
59
+ hotMiddleware.publish({ action: 'reload' })
60
+ cb()
61
+ })
62
+ })
63
+
64
+ // proxy api requests
65
+ Object.keys(proxyTable).forEach(function (context) {
66
+ var options = proxyTable[context]
67
+ if (typeof options === 'string') {
68
+ options = { target: options }
69
+ }
70
+ app.use(proxyMiddleware(context, options))
71
+ })
72
+
73
+ // handle fallback for HTML5 history API
74
+ app.use(require('connect-history-api-fallback')())
75
+
76
+ // serve webpack bundle output
77
+ app.use(devMiddleware)
78
+
79
+ // enable hot-reload and state-preserving
80
+ // compilation error display
81
+ app.use(hotMiddleware)
82
+
83
+ // serve pure static assets
84
+ app.use('/static', express.static('./static'))
85
+
86
+
87
+ module.exports = app.listen(8085, function (err) {
88
+ if (err) {
89
+ console.log(err)
90
+ return
91
+ }
92
+ console.log('Listening at http://localhost:8085')
93
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "1.22.8-ca",
3
+ "version": "1.22.12-ca",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -179,7 +179,9 @@
179
179
  args:{}
180
180
  },
181
181
  ready () {
182
+
182
183
  this.$refs.paged.$refs.criteria.model.f_state = ['有效']
184
+ // this.search()
183
185
  this.$refs.paged.$refs.criteria.search()
184
186
  },
185
187
  methods: {