manage-client 3.2.209 → 3.2.210

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,193 +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://121.36.106.17: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
- '/report':{
28
- target: 'http://aote-office.f3322.net:31039'
29
- },
30
- '/rs/logic/exportfile': {
31
- target: bendi
32
- },
33
- // '/rs/sql/otherChargeQuery': {
34
- // target: 'http://localhost:8080/'
35
- // },
36
- // '/rs/sql/BusinessType': {
37
- // target: 'http://localhost:8080/'
38
- // },
39
- // '/rs/logic/getBatchOperaPro': {
40
- // target: 'http://localhost:8080/'
41
- // },
42
- // '/rs/customExport/areaChargeExportExcel': {
43
- // target: 'http://localhost:8080/'
44
- // },
45
- '/files': {
46
- target: bendi
47
- },
48
- // 查找资源服务数据
49
- '/rs/search': {
50
- target: bendi
51
- },
52
- // 查找资源服务数据
53
- '/rs/logic/getLogin': {
54
- target: bendi
55
- },
56
- // 查找资源服务数据
57
- '/rs/logic/getInitData': {
58
- target: bendi
59
- },
60
- '/rs/logic/getSaleInitData': {
61
- target: bendi
62
- },
63
- // 用户登录服务地址
64
- '/rs/user': {
65
- target: bendi
66
- },
67
- '/rs/path/getParams': {
68
- target: bendi
69
- },
70
- '/rs/data': {
71
- target: bendi
72
- },
73
- '/rs/license': {
74
- target: bendi
75
- },
76
- '/rs/db': {
77
- target: bendi
78
- },
79
- '/excel': {
80
- target: bendi
81
- },
82
- '/rs/config': {
83
- target: bendi
84
- },
85
- '/rs/sql/getLicenseById': {
86
- target: bendi
87
- },
88
- '/rs/report': {
89
- target: bendi
90
- },
91
- '/rs/vue': {
92
- target: bendi
93
- },
94
- '/rs/file': {
95
- target: bendi
96
- },
97
- '/rs/logic/SumSettleFileImport': {
98
- target: 'http://127.0.0.1:8080'
99
- },
100
- '/rs': {
101
- target: bendi
102
- }
103
- }
104
-
105
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
106
- publicPath: config.output.publicPath,
107
- stats: {
108
- colors: true,
109
- chunks: false
110
- }
111
- })
112
-
113
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
114
- // force page reload when html-webpack-plugin template changes
115
- compiler.plugin('compilation', function (compilation) {
116
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
117
- hotMiddleware.publish({action: 'reload'})
118
- cb()
119
- })
120
- })
121
-
122
- // proxy api requests
123
- Object.keys(proxyTable).forEach(function (context) {
124
- var options = proxyTable[context]
125
- if (typeof options === 'string') {
126
- options = {target: options}
127
- }
128
- app.use(proxyMiddleware(context, options))
129
- })
130
-
131
- // handle fallback for HTML5 history API
132
- app.use(require('connect-history-api-fallback')())
133
- // app.use(function (req, res, next) {
134
- // res.header('Access-Control-Allow-Origin', '*')
135
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
136
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
137
- // res.header('X-Powered-By', '3,2,1')
138
- // res.header('Access-Control-Allow-Credentials', 'true')
139
- // res.header('Content-Type', 'application/json;charset=utf-8')
140
- // next()
141
- // })
142
-
143
- // serve webpack bundle output
144
- app.use(devMiddleware)
145
-
146
- // enable hot-reload and state-preserving
147
- // compilation error display
148
- app.use(hotMiddleware)
149
-
150
- // serve pure static assets
151
- app.use('/static', express.static('./static'))
152
-
153
- // app.all('/rs/*', function (req, res) {
154
- // proxy.web(req, res, {
155
- // target: 'http://127.0.0.1:8081/reports'
156
- // })
157
- // })
158
-
159
- // app.all('/rs/*', function (req, res) {
160
- // proxy.web(req, res, {
161
- // target: 'http://127.0.0.1:8081/ldap'
162
- // })
163
- // })
164
- // app.all('/excel/*', function (req, res) {
165
- // proxy.web(req, res, {
166
- // target: 'http://127.0.0.1:8081/charge'
167
- // })
168
- // })
169
-
170
- // app.all('/rs/*', function (req, res) {
171
- // proxy.web(req, res, {
172
- // target: 'http://127.0.0.1:82/charge'
173
- // })
174
- // })
175
-
176
- // app.all('/*', function (req, res) {
177
- // proxy.web(req, res, {
178
- // target: 'http://127.0.0.1:82'
179
- // })
180
- // })
181
- // app.all('/rs/user', function (req, res) {
182
- // proxy.web(req, res, {
183
- // target: 'http://127.0.0.1:82'
184
- // })
185
- // })
186
-
187
- module.exports = app.listen(8015, function (err) {
188
- if (err) {
189
- console.log(err)
190
- return
191
- }
192
- console.log('Listening at http://localhost:8085')
193
- })
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://203.57.101.233:8400/'
20
+ // var bendi = 'http://121.36.106.17:8400/'
21
+ // var fuwu = 'http://203.57.101.233:9001'
22
+ var bendi = '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/inspectListNew': {
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.209",
3
+ "version": "3.2.210",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
3
+ <div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}" @keyup.enter="search">
4
4
  <div class="flex" v-if="!show">
5
5
 
6
6
  <criteria-paged :model="model" v-ref:paged @sort="sort">
@@ -178,7 +178,7 @@
178
178
  <nobr>{{row.f_orgname}}</nobr>
179
179
  </td>
180
180
  <td style="text-align: center;" v-if="row.f_state === '销户'&& row.num== 1">
181
- <nobr><a href="#" @click="$parent.$parent.$parent.enable(row)">启用</a></nobr>
181
+ <nobr><a href="#" @click="$parent.$parent.$parent.enable(row)">启用</a> | <a href="#" @click="$parent.$parent.$parent.modifyAddress(row)">修改地址</a></nobr>
182
182
  </td>
183
183
  <td style="text-align: center;" v-else>
184
184
  </td>
@@ -203,6 +203,13 @@
203
203
  <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
204
204
  </div>
205
205
  </div>
206
+ <div class="binary-right" v-show="useraddressShow">
207
+ <div class="flex">
208
+ <user-address v-ref:useraddressmsg
209
+ :f_filialeids.sync="f_filialeids"></user-address>
210
+
211
+ <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
212
+ </div>
206
213
  <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
207
214
  <article slot="modal-body">
208
215
  <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="销户" :isremark="false" style="width:auto" ></upload>
@@ -269,6 +276,9 @@
269
276
  bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_comments", "f_sendsuccess"],
270
277
  orgCondtionStr: '',
271
278
  show:false,
279
+ f_filialeids: this.$login.f.orgid,
280
+ useraddressShow: false,
281
+ addressId: '',
272
282
  rowdata:{},
273
283
  enableData: {
274
284
  f_reason: ''
@@ -310,6 +320,27 @@
310
320
  })
311
321
  },
312
322
  methods: {
323
+ modifyAddress(obj) {
324
+ this.addressId=obj.addrid
325
+ this.useraddressShow=true
326
+ this.$refs.useraddressmsg.cleardara()
327
+ this.$refs.useraddressmsg.initdata()
328
+ this.$refs.useraddressmsg.usertype=obj.f_user_type
329
+ this.$refs.useraddressmsg.operation='modify'
330
+ this.$refs.useraddressmsg.onedata='one'
331
+ this.$refs.useraddressmsg.model=Object.assign({},this.$refs.useraddressmsg.model,obj)
332
+ if(obj.f_special=='1'){
333
+ this.$refs.useraddressmsg.usertype = true
334
+ }else{
335
+ this.$refs.useraddressmsg.usertype = false
336
+ }
337
+ if (obj.f_slice_area) {
338
+ this.$refs.useraddressmsg.model.slice_area = [{
339
+ name: this.$refs.useraddressmsg.model.f_slice_area,
340
+ code: this.$refs.useraddressmsg.model.f_area_code
341
+ }]
342
+ }
343
+ },
313
344
  enable(row) {
314
345
  Object.assign(this.enableData, row)
315
346
  this.enbaleShow = true
@@ -481,6 +512,17 @@
481
512
  getfield() {
482
513
  return exportConfig.CancellationConfig
483
514
  }
515
+ },
516
+ events: {
517
+ 'cancel' () {
518
+ this.addressId=null
519
+ this.useraddressShow = false
520
+ },
521
+ 'confirm' () {
522
+ this.addressId=null
523
+ this.useraddressShow = false
524
+ this.search()
525
+ },
484
526
  }
485
527
  }
486
528
  </script>