manage-client 3.2.189 → 3.2.190

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,190 +1,190 @@
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://220.194.141.253:8600/'
17
- // var bendi = 'http://203.57.101.233:9001'
18
- // var bendi = 'http://172.168.1.11:9001/'
19
- var bendi = 'http://219.138.226.181:8401'
20
- // var bendi = 'http://121.36.106.17:8400/'
21
- // var fuwu = 'http://203.57.101.233:9001'
22
- var system = 'http://192.168.50.4:8400'
23
- // 192.168.
24
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
25
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
26
- var proxyTable = {
27
- '/rs/logic/exportfile': {
28
- target: bendi
29
- },
30
- '/rs/sql/otherChargeQuery': {
31
- target: 'http://localhost:8080/'
32
- },
33
- '/rs/sql/BusinessType': {
34
- target: 'http://localhost:8080/'
35
- },
36
- '/rs/logic/getBatchOperaPro': {
37
- target: 'http://localhost:8080/'
38
- },
39
- '/rs/customExport/areaChargeExportExcel': {
40
- target: 'http://localhost:8080/'
41
- },
42
- '/files': {
43
- target: bendi
44
- },
45
- // 查找资源服务数据
46
- '/rs/search': {
47
- target: bendi
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getLogin': {
51
- target: bendi
52
- },
53
- // 查找资源服务数据
54
- '/rs/logic/getInitData': {
55
- target: bendi
56
- },
57
- '/rs/logic/getSaleInitData': {
58
- target: bendi
59
- },
60
- // 用户登录服务地址
61
- '/rs/user': {
62
- target: bendi
63
- },
64
- '/rs/path/getParams': {
65
- target: bendi
66
- },
67
- '/rs/data': {
68
- target: bendi
69
- },
70
- '/rs/license': {
71
- target: bendi
72
- },
73
- '/rs/db': {
74
- target: bendi
75
- },
76
- '/excel': {
77
- target: bendi
78
- },
79
- '/rs/config': {
80
- target: bendi
81
- },
82
- '/rs/sql/getLicenseById': {
83
- target: bendi
84
- },
85
- '/rs/report': {
86
- target: bendi
87
- },
88
- '/rs/vue': {
89
- target: bendi
90
- },
91
- '/rs/file': {
92
- target: bendi
93
- },
94
- '/rs/logic/SumSettleFileImport': {
95
- target: 'http://127.0.0.1:8080'
96
- },
97
- '/rs': {
98
- target: bendi
99
- }
100
- }
101
-
102
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
103
- publicPath: config.output.publicPath,
104
- stats: {
105
- colors: true,
106
- chunks: false
107
- }
108
- })
109
-
110
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
111
- // force page reload when html-webpack-plugin template changes
112
- compiler.plugin('compilation', function (compilation) {
113
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
114
- hotMiddleware.publish({action: 'reload'})
115
- cb()
116
- })
117
- })
118
-
119
- // proxy api requests
120
- Object.keys(proxyTable).forEach(function (context) {
121
- var options = proxyTable[context]
122
- if (typeof options === 'string') {
123
- options = {target: options}
124
- }
125
- app.use(proxyMiddleware(context, options))
126
- })
127
-
128
- // handle fallback for HTML5 history API
129
- app.use(require('connect-history-api-fallback')())
130
- // app.use(function (req, res, next) {
131
- // res.header('Access-Control-Allow-Origin', '*')
132
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
133
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
134
- // res.header('X-Powered-By', '3,2,1')
135
- // res.header('Access-Control-Allow-Credentials', 'true')
136
- // res.header('Content-Type', 'application/json;charset=utf-8')
137
- // next()
138
- // })
139
-
140
- // serve webpack bundle output
141
- app.use(devMiddleware)
142
-
143
- // enable hot-reload and state-preserving
144
- // compilation error display
145
- app.use(hotMiddleware)
146
-
147
- // serve pure static assets
148
- app.use('/static', express.static('./static'))
149
-
150
- // app.all('/rs/*', function (req, res) {
151
- // proxy.web(req, res, {
152
- // target: 'http://127.0.0.1:8081/reports'
153
- // })
154
- // })
155
-
156
- // app.all('/rs/*', function (req, res) {
157
- // proxy.web(req, res, {
158
- // target: 'http://127.0.0.1:8081/ldap'
159
- // })
160
- // })
161
- // app.all('/excel/*', function (req, res) {
162
- // proxy.web(req, res, {
163
- // target: 'http://127.0.0.1:8081/charge'
164
- // })
165
- // })
166
-
167
- // app.all('/rs/*', function (req, res) {
168
- // proxy.web(req, res, {
169
- // target: 'http://127.0.0.1:82/charge'
170
- // })
171
- // })
172
-
173
- // app.all('/*', function (req, res) {
174
- // proxy.web(req, res, {
175
- // target: 'http://127.0.0.1:82'
176
- // })
177
- // })
178
- // app.all('/rs/user', function (req, res) {
179
- // proxy.web(req, res, {
180
- // target: 'http://127.0.0.1:82'
181
- // })
182
- // })
183
-
184
- module.exports = app.listen(8015, function (err) {
185
- if (err) {
186
- console.log(err)
187
- return
188
- }
189
- console.log('Listening at http://localhost:8085')
190
- })
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://220.194.141.253:8600/'
17
+ // var bendi = 'http://203.57.101.233:9001'
18
+ // var bendi = 'http://172.168.1.11:9001/'
19
+ var bendi = 'http://47.93.217.125:8400/'
20
+ // var bendi = 'http://121.36.106.17:8400/'
21
+ // var fuwu = 'http://203.57.101.233:9001'
22
+ var system = 'http://192.168.50.4:8400'
23
+ // 192.168.
24
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
25
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
26
+ var proxyTable = {
27
+ '/rs/logic/exportfile': {
28
+ target: bendi
29
+ },
30
+ '/rs/sql/otherChargeQuery': {
31
+ target: 'http://localhost:8080/'
32
+ },
33
+ '/rs/sql/BusinessType': {
34
+ target: 'http://localhost:8080/'
35
+ },
36
+ '/rs/logic/getBatchOperaPro': {
37
+ target: 'http://localhost:8080/'
38
+ },
39
+ '/rs/customExport/areaChargeExportExcel': {
40
+ target: 'http://localhost:8080/'
41
+ },
42
+ '/files': {
43
+ target: bendi
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/search': {
47
+ target: bendi
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getLogin': {
51
+ target: bendi
52
+ },
53
+ // 查找资源服务数据
54
+ '/rs/logic/getInitData': {
55
+ target: bendi
56
+ },
57
+ '/rs/logic/getSaleInitData': {
58
+ target: bendi
59
+ },
60
+ // 用户登录服务地址
61
+ '/rs/user': {
62
+ target: bendi
63
+ },
64
+ '/rs/path/getParams': {
65
+ target: bendi
66
+ },
67
+ '/rs/data': {
68
+ target: bendi
69
+ },
70
+ '/rs/license': {
71
+ target: bendi
72
+ },
73
+ '/rs/db': {
74
+ target: bendi
75
+ },
76
+ '/excel': {
77
+ target: bendi
78
+ },
79
+ '/rs/config': {
80
+ target: bendi
81
+ },
82
+ '/rs/sql/getLicenseById': {
83
+ target: bendi
84
+ },
85
+ '/rs/report': {
86
+ target: bendi
87
+ },
88
+ '/rs/vue': {
89
+ target: bendi
90
+ },
91
+ '/rs/file': {
92
+ target: bendi
93
+ },
94
+ '/rs/logic/SumSettleFileImport': {
95
+ target: 'http://127.0.0.1:8080'
96
+ },
97
+ '/rs': {
98
+ target: bendi
99
+ }
100
+ }
101
+
102
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
103
+ publicPath: config.output.publicPath,
104
+ stats: {
105
+ colors: true,
106
+ chunks: false
107
+ }
108
+ })
109
+
110
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
111
+ // force page reload when html-webpack-plugin template changes
112
+ compiler.plugin('compilation', function (compilation) {
113
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
114
+ hotMiddleware.publish({action: 'reload'})
115
+ cb()
116
+ })
117
+ })
118
+
119
+ // proxy api requests
120
+ Object.keys(proxyTable).forEach(function (context) {
121
+ var options = proxyTable[context]
122
+ if (typeof options === 'string') {
123
+ options = {target: options}
124
+ }
125
+ app.use(proxyMiddleware(context, options))
126
+ })
127
+
128
+ // handle fallback for HTML5 history API
129
+ app.use(require('connect-history-api-fallback')())
130
+ // app.use(function (req, res, next) {
131
+ // res.header('Access-Control-Allow-Origin', '*')
132
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
133
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
134
+ // res.header('X-Powered-By', '3,2,1')
135
+ // res.header('Access-Control-Allow-Credentials', 'true')
136
+ // res.header('Content-Type', 'application/json;charset=utf-8')
137
+ // next()
138
+ // })
139
+
140
+ // serve webpack bundle output
141
+ app.use(devMiddleware)
142
+
143
+ // enable hot-reload and state-preserving
144
+ // compilation error display
145
+ app.use(hotMiddleware)
146
+
147
+ // serve pure static assets
148
+ app.use('/static', express.static('./static'))
149
+
150
+ // app.all('/rs/*', function (req, res) {
151
+ // proxy.web(req, res, {
152
+ // target: 'http://127.0.0.1:8081/reports'
153
+ // })
154
+ // })
155
+
156
+ // app.all('/rs/*', function (req, res) {
157
+ // proxy.web(req, res, {
158
+ // target: 'http://127.0.0.1:8081/ldap'
159
+ // })
160
+ // })
161
+ // app.all('/excel/*', function (req, res) {
162
+ // proxy.web(req, res, {
163
+ // target: 'http://127.0.0.1:8081/charge'
164
+ // })
165
+ // })
166
+
167
+ // app.all('/rs/*', function (req, res) {
168
+ // proxy.web(req, res, {
169
+ // target: 'http://127.0.0.1:82/charge'
170
+ // })
171
+ // })
172
+
173
+ // app.all('/*', function (req, res) {
174
+ // proxy.web(req, res, {
175
+ // target: 'http://127.0.0.1:82'
176
+ // })
177
+ // })
178
+ // app.all('/rs/user', function (req, res) {
179
+ // proxy.web(req, res, {
180
+ // target: 'http://127.0.0.1:82'
181
+ // })
182
+ // })
183
+
184
+ module.exports = app.listen(8015, function (err) {
185
+ if (err) {
186
+ console.log(err)
187
+ return
188
+ }
189
+ console.log('Listening at http://localhost:8085')
190
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.189",
3
+ "version": "3.2.190",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -106,7 +106,7 @@
106
106
  condition="f_payment in {}"
107
107
  close-on-select></v-select>
108
108
  </div>
109
- <div class="col-sm-2 form-group" v-if="titleShow">
109
+ <div class="col-sm-2 form-group" v-if="$parent.$parent.titleShow">
110
110
  <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
111
111
  <v-select :value.sync="model.f_bank_type" multiple
112
112
  v-model="model.f_bank_type"
@@ -430,7 +430,7 @@
430
430
  <th>
431
431
  <nobr>写卡状态</nobr>
432
432
  </th>
433
- <th v-if="titleShow">
433
+ <th v-if="$parent.$parent.$parent.titleShow">
434
434
  <nobr>支付渠道</nobr>
435
435
  </th>
436
436
  <th>
@@ -626,7 +626,7 @@
626
626
  <td style="text-align: center;">
627
627
  <nobr>{{row.f_write_card}}</nobr>
628
628
  </td>
629
- <td style="text-align: center;" v-if="titleShow">
629
+ <td style="text-align: center;" v-if="$parent.$parent.$parent.titleShow">
630
630
  <nobr>{{row.f_bank_type}}</nobr>
631
631
  </td>
632
632
  <td style="text-align: center;">
package/src/main.js CHANGED
@@ -1,66 +1,66 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
-
5
- // import { sale } from 'sale-client'
6
- import { system } from 'system-clients'
7
- import { ldap } from 'ldap-clients'
8
- import saleManage from './saleManage'
9
- import webmeterManage from './webmeterManage'
10
- import reportManage from './reportManage'
11
- import newmanage from './newmanage'
12
- import ManageHome from './ManageHome'
13
- import echarts from 'echarts'
14
- import AMap from 'vue-amap'
15
-
16
- Vue.config.silent = true
17
- // Vue.mmType = 'AES'
18
-
19
- Vue.use(AMap);
20
-
21
- // 初始化vue-amap
22
- AMap.initAMapApiLoader({
23
- // 高德key
24
- key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
- // 插件集合 (插件按需引入)
26
- plugin: [
27
- "AMap.Autocomplete", //输入提示插件
28
- "AMap.PlaceSearch", //POI搜索插件
29
- "AMap.Scale", //右下角缩略图插件 比例尺
30
- "AMap.OverView", //地图鹰眼插件
31
- "AMap.ToolBar", //地图工具条0
32
- "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
- "AMap.PolyEditor", //编辑 折线多,边形
34
- "AMap.CircleEditor", //圆形编辑器插件
35
- "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
- ],
37
- uiVersion: "1.0"
38
- });
39
- /** **************************通用组件******************************/
40
-
41
- Vue.prototype.$echarts = echarts
42
- all()
43
- // sale()
44
- ldap()
45
- system(false)
46
-
47
- saleManage("tongchuan")
48
- webmeterManage()
49
- ManageHome()
50
- newmanage()
51
- reportManage()
52
- require('system-clients/src/styles/less/bootstrap.less')
53
- require('./components/qinhua/Style/qinhuaStyle.less')
54
- // require('./bootstrap/less/manageStyle/manageChile.less')
55
- // require('./bootstrap/less/manageStyle/safeStyle.less')
56
-
57
- //大屏展示要放开的样式
58
- // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
- // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
- // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
-
62
- new Vue({
63
- el: 'body',
64
- components: { App }
65
- })
66
-
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+
5
+ // import { sale } from 'sale-client'
6
+ import { system } from 'system-clients'
7
+ import { ldap } from 'ldap-clients'
8
+ import saleManage from './saleManage'
9
+ import webmeterManage from './webmeterManage'
10
+ import reportManage from './reportManage'
11
+ import newmanage from './newmanage'
12
+ import ManageHome from './ManageHome'
13
+ import echarts from 'echarts'
14
+ import AMap from 'vue-amap'
15
+
16
+ Vue.config.silent = true
17
+ // Vue.mmType = 'AES'
18
+
19
+ Vue.use(AMap);
20
+
21
+ // 初始化vue-amap
22
+ AMap.initAMapApiLoader({
23
+ // 高德key
24
+ key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
+ // 插件集合 (插件按需引入)
26
+ plugin: [
27
+ "AMap.Autocomplete", //输入提示插件
28
+ "AMap.PlaceSearch", //POI搜索插件
29
+ "AMap.Scale", //右下角缩略图插件 比例尺
30
+ "AMap.OverView", //地图鹰眼插件
31
+ "AMap.ToolBar", //地图工具条0
32
+ "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
+ "AMap.PolyEditor", //编辑 折线多,边形
34
+ "AMap.CircleEditor", //圆形编辑器插件
35
+ "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
+ ],
37
+ uiVersion: "1.0"
38
+ });
39
+ /** **************************通用组件******************************/
40
+
41
+ Vue.prototype.$echarts = echarts
42
+ all()
43
+ // sale()
44
+ ldap()
45
+ system(false)
46
+
47
+ saleManage("zhongyi")
48
+ webmeterManage()
49
+ ManageHome()
50
+ newmanage()
51
+ reportManage()
52
+ require('system-clients/src/styles/less/bootstrap.less')
53
+ require('./components/qinhua/Style/qinhuaStyle.less')
54
+ // require('./bootstrap/less/manageStyle/manageChile.less')
55
+ // require('./bootstrap/less/manageStyle/safeStyle.less')
56
+
57
+ //大屏展示要放开的样式
58
+ // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
+ // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
+ // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
+
62
+ new Vue({
63
+ el: 'body',
64
+ components: { App }
65
+ })
66
+