manage-client 3.2.112 → 3.2.115
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/.gradle/4.4/fileContent/fileContent.lock +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/build/dev-server.js +176 -176
- package/build/libs/ManageClient-3.1.0-17.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +2 -0
- package/package.json +1 -1
- package/src/components/SellReport/SellDepReport.vue +2 -1
- package/src/components/sale/config/exportConfig.js +7 -1
- package/src/components/sale/resourcequery/LoginQuery.vue +244 -0
- package/src/components/sale/resourcequery/ResourceManage.vue +36 -0
- package/src/components/webmeter/WebmeterQuery.vue +3 -3
- package/src/filiale/qianneng/ArrearsQuery.vue +25 -5
- package/src/filiale/qianneng/UserQuery.vue +1 -1
- package/src/filiale/qianneng/exportConfig.js +17 -31
- package/src/filiale/rizhao/ChargeQuery.vue +1295 -0
- package/src/filiale/rizhao/sale.js +10 -0
- package/src/filiale/tongchuan/FillGasQuery.vue +4 -1
- package/src/filiale/tongchuan/MeterQuery.vue +2 -4
- package/src/filiale/zhongyi/GasStatistics.vue +499 -0
- package/src/filiale/zhongyi/sale.js +10 -0
- package/src/saleManage.js +9 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build/dev-server.js
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
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://
|
|
17
|
-
// var bendi = 'http://172.168.1.11:9001'
|
|
18
|
-
var fuwu = 'http://192.168.50.4:8400'
|
|
19
|
-
// var fuwu = 'http://203.57.101.233:9001'
|
|
20
|
-
var system = 'http://192.168.50.4:8400'
|
|
21
|
-
//192.168.
|
|
22
|
-
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
23
|
-
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
24
|
-
var proxyTable = {
|
|
25
|
-
'/rs/logic/exportfile': {
|
|
26
|
-
target: fuwu
|
|
27
|
-
},
|
|
28
|
-
'/files': {
|
|
29
|
-
target: fuwu
|
|
30
|
-
},
|
|
31
|
-
// 查找资源服务数据
|
|
32
|
-
'/rs/search': {
|
|
33
|
-
target: fuwu
|
|
34
|
-
},
|
|
35
|
-
// 查找资源服务数据
|
|
36
|
-
'/rs/logic/getLogin': {
|
|
37
|
-
target: fuwu
|
|
38
|
-
},
|
|
39
|
-
// 查找资源服务数据
|
|
40
|
-
'/rs/logic/getInitData': {
|
|
41
|
-
target: fuwu
|
|
42
|
-
},
|
|
43
|
-
'/rs/logic/getSaleInitData':{
|
|
44
|
-
target: fuwu
|
|
45
|
-
},
|
|
46
|
-
// 用户登录服务地址
|
|
47
|
-
'/rs/user': {
|
|
48
|
-
target: fuwu
|
|
49
|
-
},
|
|
50
|
-
'/rs/path/getParams': {
|
|
51
|
-
target: fuwu
|
|
52
|
-
},
|
|
53
|
-
'/rs/data': {
|
|
54
|
-
target: fuwu
|
|
55
|
-
},
|
|
56
|
-
'/rs/license': {
|
|
57
|
-
target: fuwu
|
|
58
|
-
},
|
|
59
|
-
'/rs/db': {
|
|
60
|
-
target: fuwu
|
|
61
|
-
},
|
|
62
|
-
'/excel': {
|
|
63
|
-
target: fuwu
|
|
64
|
-
},
|
|
65
|
-
'/rs/config': {
|
|
66
|
-
target: fuwu
|
|
67
|
-
},
|
|
68
|
-
'/rs/sql/getLicenseById': {
|
|
69
|
-
target: fuwu
|
|
70
|
-
},
|
|
71
|
-
'/rs/report': {
|
|
72
|
-
target: bendi
|
|
73
|
-
},
|
|
74
|
-
'/rs/vue': {
|
|
75
|
-
target: fuwu
|
|
76
|
-
},
|
|
77
|
-
'/rs/file': {
|
|
78
|
-
target: bendi
|
|
79
|
-
},
|
|
80
|
-
'/rs/logic/SumSettleFileImport': {
|
|
81
|
-
target: 'http://127.0.0.1:8080'
|
|
82
|
-
},
|
|
83
|
-
'/rs': {
|
|
84
|
-
target: bendi
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
89
|
-
publicPath: config.output.publicPath,
|
|
90
|
-
stats: {
|
|
91
|
-
colors: true,
|
|
92
|
-
chunks: false
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
97
|
-
// force page reload when html-webpack-plugin template changes
|
|
98
|
-
compiler.plugin('compilation', function (compilation) {
|
|
99
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
100
|
-
hotMiddleware.publish({action: 'reload'})
|
|
101
|
-
cb()
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
// proxy api requests
|
|
106
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
107
|
-
var options = proxyTable[context]
|
|
108
|
-
if (typeof options === 'string') {
|
|
109
|
-
options = {target: options}
|
|
110
|
-
}
|
|
111
|
-
app.use(proxyMiddleware(context, options))
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
// handle fallback for HTML5 history API
|
|
115
|
-
app.use(require('connect-history-api-fallback')())
|
|
116
|
-
// app.use(function (req, res, next) {
|
|
117
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
118
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
119
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
120
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
121
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
122
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
123
|
-
// next()
|
|
124
|
-
// })
|
|
125
|
-
|
|
126
|
-
// serve webpack bundle output
|
|
127
|
-
app.use(devMiddleware)
|
|
128
|
-
|
|
129
|
-
// enable hot-reload and state-preserving
|
|
130
|
-
// compilation error display
|
|
131
|
-
app.use(hotMiddleware)
|
|
132
|
-
|
|
133
|
-
// serve pure static assets
|
|
134
|
-
app.use('/static', express.static('./static'))
|
|
135
|
-
|
|
136
|
-
// app.all('/rs/*', function (req, res) {
|
|
137
|
-
// proxy.web(req, res, {
|
|
138
|
-
// target: 'http://127.0.0.1:8081/reports'
|
|
139
|
-
// })
|
|
140
|
-
// })
|
|
141
|
-
|
|
142
|
-
// app.all('/rs/*', function (req, res) {
|
|
143
|
-
// proxy.web(req, res, {
|
|
144
|
-
// target: 'http://127.0.0.1:8081/ldap'
|
|
145
|
-
// })
|
|
146
|
-
// })
|
|
147
|
-
// app.all('/excel/*', function (req, res) {
|
|
148
|
-
// proxy.web(req, res, {
|
|
149
|
-
// target: 'http://127.0.0.1:8081/charge'
|
|
150
|
-
// })
|
|
151
|
-
// })
|
|
152
|
-
|
|
153
|
-
// app.all('/rs/*', function (req, res) {
|
|
154
|
-
// proxy.web(req, res, {
|
|
155
|
-
// target: 'http://127.0.0.1:82/charge'
|
|
156
|
-
// })
|
|
157
|
-
// })
|
|
158
|
-
|
|
159
|
-
// app.all('/*', function (req, res) {
|
|
160
|
-
// proxy.web(req, res, {
|
|
161
|
-
// target: 'http://127.0.0.1:82'
|
|
162
|
-
// })
|
|
163
|
-
// })
|
|
164
|
-
// app.all('/rs/user', function (req, res) {
|
|
165
|
-
// proxy.web(req, res, {
|
|
166
|
-
// target: 'http://127.0.0.1:82'
|
|
167
|
-
// })
|
|
168
|
-
// })
|
|
169
|
-
|
|
170
|
-
module.exports = app.listen(8085, function (err) {
|
|
171
|
-
if (err) {
|
|
172
|
-
console.log(err)
|
|
173
|
-
return
|
|
174
|
-
}
|
|
175
|
-
console.log('Listening at http://localhost:8085')
|
|
176
|
-
})
|
|
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://127.0.0.1:8090'
|
|
17
|
+
// var bendi = 'http://172.168.1.11:9001'
|
|
18
|
+
var fuwu = 'http://192.168.50.4:8400'
|
|
19
|
+
// var fuwu = 'http://203.57.101.233:9001'
|
|
20
|
+
var system = 'http://192.168.50.4:8400'
|
|
21
|
+
//192.168.
|
|
22
|
+
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
23
|
+
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
24
|
+
var proxyTable = {
|
|
25
|
+
'/rs/logic/exportfile': {
|
|
26
|
+
target: fuwu
|
|
27
|
+
},
|
|
28
|
+
'/files': {
|
|
29
|
+
target: fuwu
|
|
30
|
+
},
|
|
31
|
+
// 查找资源服务数据
|
|
32
|
+
'/rs/search': {
|
|
33
|
+
target: fuwu
|
|
34
|
+
},
|
|
35
|
+
// 查找资源服务数据
|
|
36
|
+
'/rs/logic/getLogin': {
|
|
37
|
+
target: fuwu
|
|
38
|
+
},
|
|
39
|
+
// 查找资源服务数据
|
|
40
|
+
'/rs/logic/getInitData': {
|
|
41
|
+
target: fuwu
|
|
42
|
+
},
|
|
43
|
+
'/rs/logic/getSaleInitData':{
|
|
44
|
+
target: fuwu
|
|
45
|
+
},
|
|
46
|
+
// 用户登录服务地址
|
|
47
|
+
'/rs/user': {
|
|
48
|
+
target: fuwu
|
|
49
|
+
},
|
|
50
|
+
'/rs/path/getParams': {
|
|
51
|
+
target: fuwu
|
|
52
|
+
},
|
|
53
|
+
'/rs/data': {
|
|
54
|
+
target: fuwu
|
|
55
|
+
},
|
|
56
|
+
'/rs/license': {
|
|
57
|
+
target: fuwu
|
|
58
|
+
},
|
|
59
|
+
'/rs/db': {
|
|
60
|
+
target: fuwu
|
|
61
|
+
},
|
|
62
|
+
'/excel': {
|
|
63
|
+
target: fuwu
|
|
64
|
+
},
|
|
65
|
+
'/rs/config': {
|
|
66
|
+
target: fuwu
|
|
67
|
+
},
|
|
68
|
+
'/rs/sql/getLicenseById': {
|
|
69
|
+
target: fuwu
|
|
70
|
+
},
|
|
71
|
+
'/rs/report': {
|
|
72
|
+
target: bendi
|
|
73
|
+
},
|
|
74
|
+
'/rs/vue': {
|
|
75
|
+
target: fuwu
|
|
76
|
+
},
|
|
77
|
+
'/rs/file': {
|
|
78
|
+
target: bendi
|
|
79
|
+
},
|
|
80
|
+
'/rs/logic/SumSettleFileImport': {
|
|
81
|
+
target: 'http://127.0.0.1:8080'
|
|
82
|
+
},
|
|
83
|
+
'/rs': {
|
|
84
|
+
target: bendi
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
89
|
+
publicPath: config.output.publicPath,
|
|
90
|
+
stats: {
|
|
91
|
+
colors: true,
|
|
92
|
+
chunks: false
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
97
|
+
// force page reload when html-webpack-plugin template changes
|
|
98
|
+
compiler.plugin('compilation', function (compilation) {
|
|
99
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
100
|
+
hotMiddleware.publish({action: 'reload'})
|
|
101
|
+
cb()
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
// proxy api requests
|
|
106
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
107
|
+
var options = proxyTable[context]
|
|
108
|
+
if (typeof options === 'string') {
|
|
109
|
+
options = {target: options}
|
|
110
|
+
}
|
|
111
|
+
app.use(proxyMiddleware(context, options))
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
// handle fallback for HTML5 history API
|
|
115
|
+
app.use(require('connect-history-api-fallback')())
|
|
116
|
+
// app.use(function (req, res, next) {
|
|
117
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
118
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
119
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
120
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
121
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
122
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
123
|
+
// next()
|
|
124
|
+
// })
|
|
125
|
+
|
|
126
|
+
// serve webpack bundle output
|
|
127
|
+
app.use(devMiddleware)
|
|
128
|
+
|
|
129
|
+
// enable hot-reload and state-preserving
|
|
130
|
+
// compilation error display
|
|
131
|
+
app.use(hotMiddleware)
|
|
132
|
+
|
|
133
|
+
// serve pure static assets
|
|
134
|
+
app.use('/static', express.static('./static'))
|
|
135
|
+
|
|
136
|
+
// app.all('/rs/*', function (req, res) {
|
|
137
|
+
// proxy.web(req, res, {
|
|
138
|
+
// target: 'http://127.0.0.1:8081/reports'
|
|
139
|
+
// })
|
|
140
|
+
// })
|
|
141
|
+
|
|
142
|
+
// app.all('/rs/*', function (req, res) {
|
|
143
|
+
// proxy.web(req, res, {
|
|
144
|
+
// target: 'http://127.0.0.1:8081/ldap'
|
|
145
|
+
// })
|
|
146
|
+
// })
|
|
147
|
+
// app.all('/excel/*', function (req, res) {
|
|
148
|
+
// proxy.web(req, res, {
|
|
149
|
+
// target: 'http://127.0.0.1:8081/charge'
|
|
150
|
+
// })
|
|
151
|
+
// })
|
|
152
|
+
|
|
153
|
+
// app.all('/rs/*', function (req, res) {
|
|
154
|
+
// proxy.web(req, res, {
|
|
155
|
+
// target: 'http://127.0.0.1:82/charge'
|
|
156
|
+
// })
|
|
157
|
+
// })
|
|
158
|
+
|
|
159
|
+
// app.all('/*', function (req, res) {
|
|
160
|
+
// proxy.web(req, res, {
|
|
161
|
+
// target: 'http://127.0.0.1:82'
|
|
162
|
+
// })
|
|
163
|
+
// })
|
|
164
|
+
// app.all('/rs/user', function (req, res) {
|
|
165
|
+
// proxy.web(req, res, {
|
|
166
|
+
// target: 'http://127.0.0.1:82'
|
|
167
|
+
// })
|
|
168
|
+
// })
|
|
169
|
+
|
|
170
|
+
module.exports = app.listen(8085, function (err) {
|
|
171
|
+
if (err) {
|
|
172
|
+
console.log(err)
|
|
173
|
+
return
|
|
174
|
+
}
|
|
175
|
+
console.log('Listening at http://localhost:8085')
|
|
176
|
+
})
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -95,6 +95,9 @@ export default{
|
|
|
95
95
|
'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
|
|
96
96
|
'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员','f_residential_area':'小区','f_serial_number':'业务单号'
|
|
97
97
|
},
|
|
98
|
+
loginQueryConfig:{
|
|
99
|
+
'f_userinfo_id': '登录人编号','f_user_name': '登录人名称', 'logindate': '登录时间', 'type': '类型'
|
|
100
|
+
},
|
|
98
101
|
pricetypeGasConfig: {
|
|
99
102
|
'f_price': '价格类型', 'f_gas': '当日售气量', 'f_money': '当日售气金额'
|
|
100
103
|
},
|
|
@@ -104,6 +107,9 @@ export default{
|
|
|
104
107
|
chargeexportConfig: {
|
|
105
108
|
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_pregas': '气量', 'f_collection': '收款', 'f_stairamount1': '一阶气量', 'f_stair2amount': '二阶气量', 'f_stair3amount': '三阶气量'
|
|
106
109
|
},
|
|
110
|
+
loginQueryexportConfig:{
|
|
111
|
+
'f_userinfo_id': '登录人编号','f_user_name': '登录人名称', 'logindate': '登录时间', 'type': '类型'
|
|
112
|
+
},
|
|
107
113
|
reverseexportConfig: {
|
|
108
114
|
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_address': '客户地址'
|
|
109
115
|
},
|
|
@@ -605,7 +611,7 @@ export default{
|
|
|
605
611
|
},
|
|
606
612
|
GasStatistics: {
|
|
607
613
|
'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_residential_area': '小区', 'f_address': '地址', 'f_user_phone': '电话', 'f_gascode': '燃气证号', 'f_meternumber': '表号',
|
|
608
|
-
'f_meter_classify': '表具类型', 'f_meter_title': '表描述', 'f_price_name': '气价名称', 'f_gasproperties': '用气性质', 'f_balance': '期初余额', 'f_last_tablebase': '起方', 'f_tablebase': '止方',
|
|
614
|
+
'f_meter_classify': '表具类型', 'f_meter_title': '表描述', 'f_price_name': '气价名称', 'f_user_nature': '用气类型','f_gasproperties': '用气性质', 'f_balance': '期初余额', 'f_last_tablebase': '起方', 'f_tablebase': '止方',
|
|
609
615
|
'f_oughtamount': '期间用气量', 'f_oughtfee': '期间用气金额', 'f_collection': '期末充值金额', 'f_curbalance': '期末余额', 'f_gas_state': '用气状态', 'f_changetable_state': '是否换表', 'f_input_date': '最后通讯日期'
|
|
610
616
|
},
|
|
611
617
|
ArrearageConfig: {
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri >
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
15
|
+
:show-reset-button="true"
|
|
16
|
+
condition="logindate >= '{}'">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="logindate <= '{}'">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">登录人编号</label>
|
|
31
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.userid"
|
|
32
|
+
condition="userid = '{}' " placeholder="登录人编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body">登录人名称</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.username"
|
|
37
|
+
condition="username like '%{}%'" placeholder="客户名称">
|
|
38
|
+
</div>
|
|
39
|
+
<div class="span" style="float:right;">
|
|
40
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
|
|
43
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
44
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
45
|
+
:defaultselect="$parent.$parent.defaultexport"
|
|
46
|
+
sqlurl="rs/logic/exportfile" sql-name="manage_singleTable" template-name='登录信息查询导出'
|
|
47
|
+
:choose-col="true">
|
|
48
|
+
</export-excel>
|
|
49
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">类  型</label>
|
|
55
|
+
<v-select :value.sync="model.type"
|
|
56
|
+
:options='$parent.$parent.logintype' placeholder='请选择' v-model="model.type"
|
|
57
|
+
condition="type = '{}'"
|
|
58
|
+
:value-single="true"
|
|
59
|
+
close-on-select>
|
|
60
|
+
</v-select>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
|
|
66
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" style="height: 95%" v-ref:grid>
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<tr>
|
|
69
|
+
<th>
|
|
70
|
+
<data-order field="userid" name="登录人编号"
|
|
71
|
+
:order.sync="$parent.$parent.$parent.orderFields.userid">
|
|
72
|
+
</data-order>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>登录人名称</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>登录时间</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>类型</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
</tr>
|
|
84
|
+
</template>
|
|
85
|
+
<template partial='body'>
|
|
86
|
+
<td style="text-align: center;">
|
|
87
|
+
<nobr>{{row.userid}}</nobr>
|
|
88
|
+
</td>
|
|
89
|
+
<td style="text-align: center;">
|
|
90
|
+
<nobr>{{row.username}}</nobr>
|
|
91
|
+
</td>
|
|
92
|
+
<td style="text-align: center;">
|
|
93
|
+
<nobr>{{row.logindate}}</nobr>
|
|
94
|
+
</td>
|
|
95
|
+
<td style="text-align: center;">
|
|
96
|
+
<nobr>{{row.type}}</nobr>
|
|
97
|
+
</td>
|
|
98
|
+
</template>
|
|
99
|
+
<template partial='foot'>
|
|
100
|
+
</template>
|
|
101
|
+
</data-grid>
|
|
102
|
+
</criteria-paged>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<script>
|
|
109
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
110
|
+
import exportConfig from '../config/exportConfig'
|
|
111
|
+
export default {
|
|
112
|
+
title: '登录信息查询',
|
|
113
|
+
data() {
|
|
114
|
+
return {
|
|
115
|
+
other:[],
|
|
116
|
+
footer:[],
|
|
117
|
+
config: {
|
|
118
|
+
defaultPrint: ['userid', 'username', 'logindate']
|
|
119
|
+
},
|
|
120
|
+
//排序
|
|
121
|
+
orderitem:'logindate desc',
|
|
122
|
+
orderFields: {
|
|
123
|
+
logindate: ''
|
|
124
|
+
},
|
|
125
|
+
data: {},
|
|
126
|
+
rowdata:{},
|
|
127
|
+
initres: {
|
|
128
|
+
org:[this.$login.f.orgid],
|
|
129
|
+
dep:[],
|
|
130
|
+
user:[]
|
|
131
|
+
},
|
|
132
|
+
model: new PagedList('rs/sql/manage_singleTable', 50, {items: '"*"', tablename: '"t_loginrecord"', orderitem: this.orderitem?'"' + this.orderitem + ' "':`'logindate desc'`}),
|
|
133
|
+
criteriaShow: false,
|
|
134
|
+
orgCondtionStr: '',
|
|
135
|
+
defaultfield: [],
|
|
136
|
+
sumsmodel: {},
|
|
137
|
+
logintype:[
|
|
138
|
+
{label: '登入', value: '登入'},
|
|
139
|
+
{label: '登出', value: '登出'}
|
|
140
|
+
],
|
|
141
|
+
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
ready() {
|
|
145
|
+
this.$refs.paged.$refs.cri.model.type = '登入'
|
|
146
|
+
},
|
|
147
|
+
methods: {
|
|
148
|
+
getotherfooter () {
|
|
149
|
+
this.other = [];
|
|
150
|
+
this.footer = [];
|
|
151
|
+
let exportdata = this.getCondition;
|
|
152
|
+
let otherInData = [];
|
|
153
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
154
|
+
let footerData = [], exportfield = this.getfield;
|
|
155
|
+
footerData.push("合计");
|
|
156
|
+
let self = this;
|
|
157
|
+
for (var field in self.sumsmodel) {
|
|
158
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
159
|
+
}
|
|
160
|
+
this.footer.push(footerData);
|
|
161
|
+
this.other.push(otherInData);
|
|
162
|
+
},
|
|
163
|
+
//把数据库查询数据转换为下拉数据
|
|
164
|
+
search(){
|
|
165
|
+
this.$refs.paged.$refs.cri.search()
|
|
166
|
+
},
|
|
167
|
+
selfSearch(args) {
|
|
168
|
+
let f_orgstr = this.orgCondtionStr
|
|
169
|
+
args.condition = `${args.condition} ` + f_orgstr
|
|
170
|
+
this.model.search(args.condition, args.model)
|
|
171
|
+
},
|
|
172
|
+
clear() {
|
|
173
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
174
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
},
|
|
178
|
+
show() {
|
|
179
|
+
this.criteriaShow = true
|
|
180
|
+
},
|
|
181
|
+
hidden() {
|
|
182
|
+
this.criteriaShow = !this.criteriaShow
|
|
183
|
+
},
|
|
184
|
+
sort (field, rule) {
|
|
185
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
186
|
+
for (let key in this.orderFields) {
|
|
187
|
+
if (key === field) {
|
|
188
|
+
this.orderFields[key] = rule
|
|
189
|
+
} else {
|
|
190
|
+
this.orderFields[key] = 'no'
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// 如果新规则不排序,还原为默认排序
|
|
194
|
+
if (rule === 'no') {
|
|
195
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
196
|
+
} else {
|
|
197
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
this.search()
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
},
|
|
204
|
+
events:{
|
|
205
|
+
},
|
|
206
|
+
watch: {
|
|
207
|
+
'model.rows'(val) {
|
|
208
|
+
//如果有合计 这里为true, 其他为false ,反正相反
|
|
209
|
+
this.showbottomsum=false;
|
|
210
|
+
if(val.length === 0){
|
|
211
|
+
this.sumsmodel = {}
|
|
212
|
+
this.showbottomsum=false;
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
sumsmodel:{
|
|
216
|
+
handler: function(val) {
|
|
217
|
+
this.getotherfooter();
|
|
218
|
+
},
|
|
219
|
+
deep: true
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
computed: {
|
|
223
|
+
chooserow(){
|
|
224
|
+
let aaa= true
|
|
225
|
+
if(this.$login.r && this.$login.r.includes('打印项选择')){
|
|
226
|
+
aaa = false
|
|
227
|
+
}
|
|
228
|
+
return aaa
|
|
229
|
+
},
|
|
230
|
+
getCondition() {
|
|
231
|
+
return {
|
|
232
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
233
|
+
orderitem: this.orderitem?`${this.orderitem}`: " logindate desc"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
getfield() {
|
|
237
|
+
return exportConfig.loginQueryConfig
|
|
238
|
+
},
|
|
239
|
+
defaultexport() {
|
|
240
|
+
return exportConfig.loginQueryexportConfig
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
</script>
|