apply-clients 3.3.54 → 3.3.55
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.
package/build/dev-server.js
CHANGED
|
@@ -1,130 +1,131 @@
|
|
|
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
|
-
var app = express()
|
|
7
|
-
var compiler = webpack(config)
|
|
8
|
-
// var proxy = httpProxy.createProxyServer()
|
|
9
|
-
// var ldap = 'http://121.36.79.201:8400'
|
|
10
|
-
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
-
// var ldap = 'http://192.168.50.4:8400'
|
|
12
|
-
var ldap = 'http://192.168.20.28:8400'
|
|
13
|
-
|
|
14
|
-
var applyinstall = 'http://
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
//
|
|
106
|
-
// res.header('Access-Control-Allow-
|
|
107
|
-
// res.header('Access-Control-Allow-
|
|
108
|
-
// res.header('
|
|
109
|
-
// res.header('
|
|
110
|
-
// res.header('
|
|
111
|
-
//
|
|
112
|
-
//
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
//
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
+
var app = express()
|
|
7
|
+
var compiler = webpack(config)
|
|
8
|
+
// var proxy = httpProxy.createProxyServer()
|
|
9
|
+
// var ldap = 'http://121.36.79.201:8400'
|
|
10
|
+
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
+
// var ldap = 'http://192.168.50.4:8400'
|
|
12
|
+
// var ldap = 'http://192.168.20.28:8400'
|
|
13
|
+
var ldap = 'http://192.168.20.27:8400'
|
|
14
|
+
var applyinstall = 'http://192.168.20.27:8400'
|
|
15
|
+
// var applyinstall = 'http://127.0.0.1:8080'
|
|
16
|
+
|
|
17
|
+
var proxyTable = {
|
|
18
|
+
'/wx': {
|
|
19
|
+
target: ldap
|
|
20
|
+
},
|
|
21
|
+
'/rs/sql/filemanage_getUserfies/n': {
|
|
22
|
+
target: ldap
|
|
23
|
+
},
|
|
24
|
+
'/rs/sql/filemanage_getUserfies': {
|
|
25
|
+
target: ldap
|
|
26
|
+
},
|
|
27
|
+
'/rs/logic/saveInsInfo': {
|
|
28
|
+
target: ldap
|
|
29
|
+
},
|
|
30
|
+
'/rs/logic/exportfile': {
|
|
31
|
+
target: ldap
|
|
32
|
+
},
|
|
33
|
+
'/rs/logic/getBatchOperaPro': {
|
|
34
|
+
target: ldap
|
|
35
|
+
},
|
|
36
|
+
'/rs/logic/insuranceguanl': {
|
|
37
|
+
target: ldap
|
|
38
|
+
},
|
|
39
|
+
'/rs/logic/getSaleInitData': {
|
|
40
|
+
target: ldap
|
|
41
|
+
},
|
|
42
|
+
'/rs/workflow': {
|
|
43
|
+
target: applyinstall
|
|
44
|
+
},
|
|
45
|
+
'/rs/vue': {
|
|
46
|
+
target: ldap
|
|
47
|
+
},
|
|
48
|
+
// 查找资源服务数据
|
|
49
|
+
'/rs/search': {
|
|
50
|
+
target: ldap
|
|
51
|
+
},
|
|
52
|
+
// 用户登录服务地址
|
|
53
|
+
'/rs/user': {
|
|
54
|
+
target: ldap
|
|
55
|
+
},
|
|
56
|
+
'/rs/logic/getInitData': {
|
|
57
|
+
target: ldap?ldap:applyinstall
|
|
58
|
+
},
|
|
59
|
+
'/rs/logic/getLogin': {
|
|
60
|
+
target: ldap
|
|
61
|
+
},
|
|
62
|
+
'/rs/file': { // 文件上传
|
|
63
|
+
target: applyinstall
|
|
64
|
+
},
|
|
65
|
+
'/project': { // 文件回显
|
|
66
|
+
target: applyinstall
|
|
67
|
+
},
|
|
68
|
+
'/rs': {
|
|
69
|
+
target: applyinstall
|
|
70
|
+
},
|
|
71
|
+
'/ws': {
|
|
72
|
+
target: applyinstall,
|
|
73
|
+
ws: true // 代理webSocket
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
78
|
+
publicPath: config.output.publicPath,
|
|
79
|
+
stats: {
|
|
80
|
+
colors: true,
|
|
81
|
+
chunks: false
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
86
|
+
// force page reload when html-webpack-plugin template changes
|
|
87
|
+
compiler.plugin('compilation', function (compilation) {
|
|
88
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
89
|
+
hotMiddleware.publish({action: 'reload'})
|
|
90
|
+
cb()
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
// proxy api requests
|
|
95
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
96
|
+
var options = proxyTable[context]
|
|
97
|
+
if (typeof options === 'string') {
|
|
98
|
+
options = {target: options}
|
|
99
|
+
}
|
|
100
|
+
app.use(proxyMiddleware(context, options))
|
|
101
|
+
})
|
|
102
|
+
|
|
103
|
+
// handle fallback for HTML5 history API
|
|
104
|
+
app.use(require('connect-history-api-fallback')())
|
|
105
|
+
// app.use(function (req, res, next) {
|
|
106
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
107
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
108
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
109
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
110
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
111
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
112
|
+
// next()
|
|
113
|
+
// })
|
|
114
|
+
|
|
115
|
+
// serve webpack bundle output
|
|
116
|
+
app.use(devMiddleware)
|
|
117
|
+
|
|
118
|
+
// enable hot-reload and state-preserving
|
|
119
|
+
// compilation error display
|
|
120
|
+
app.use(hotMiddleware)
|
|
121
|
+
|
|
122
|
+
// serve pure static assets
|
|
123
|
+
app.use('/static', express.static('./static'))
|
|
124
|
+
|
|
125
|
+
module.exports = app.listen(8300, function (err) {
|
|
126
|
+
if (err) {
|
|
127
|
+
console.log(err)
|
|
128
|
+
return
|
|
129
|
+
}
|
|
130
|
+
console.log('Listening at http://localhost:8300')
|
|
131
|
+
})
|
package/package.json
CHANGED
|
@@ -461,7 +461,7 @@ export default {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
if (!isEmpty(f_price_id)) {
|
|
464
|
-
data.condition = `sp.
|
|
464
|
+
data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
465
465
|
}
|
|
466
466
|
let http = new HttpResetClass()
|
|
467
467
|
let res = await http.load(
|
|
@@ -521,7 +521,7 @@ export default {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
if (!isEmpty(f_price_id)) {
|
|
524
|
-
data.condition = `sp.
|
|
524
|
+
data.condition = `sp.f_filialeid = '${this.$login.f.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
525
525
|
}
|
|
526
526
|
let http = new HttpResetClass()
|
|
527
527
|
let res = await http.load(
|