system-clients 3.2.100 → 3.2.101-temp
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/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.4/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/package.json +103 -103
- package/src/components/Main.vue +59 -34
- package/src/components/equipment/PcAdd.vue +1 -1
- package/src/components/equipment/PcList.vue +3 -3
- package/src/components/equipment/PhoneAdd.vue +1 -1
- package/src/components/equipment/PhoneList.vue +2 -2
- package/src/components/equipment/PosAdd.vue +11 -7
- package/src/components/equipment/PosList.vue +5 -3
- package/src/components/equipment/PosManage.vue +1 -1
- package/src/components/equipment/PosParamAdd.vue +2 -2
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/ParamPages.vue +2 -2
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/parammanage/SinglePages.vue +2 -2
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/Login.vue +571 -575
- package/src/components/server/ModifyPw.vue +0 -1
- package/src/components/server/PcdBuildingSelect.vue +6 -8
- package/src/components/server/ResSelect.vue +9 -3
- package/src/components/server/ResSelectGroup.vue +1 -1
- package/src/components/server/RoleSelector.vue +2 -3
- package/src/components/server/TestResSelectGroup.vue +1 -1
- package/src/filiale/baole/Login.vue +2 -4
- package/src/filiale/bayan/PosAdd.vue +374 -0
- package/src/filiale/bayan/PosList.vue +349 -0
- package/src/filiale/bayan/PosManage.vue +138 -0
- package/src/filiale/bayan/system.js +6 -0
- package/src/filiale/chengtou/Login.vue +2 -4
- package/src/filiale/dongguan/Login.vue +2 -4
- package/src/filiale/dongguan/Main.vue +2 -4
- package/src/filiale/furuike/Login.vue +3 -7
- package/src/filiale/furuike/Main.vue +25 -38
- package/src/filiale/gehua/Main.vue +2 -4
- package/src/filiale/konggang/Login.vue +2 -4
- package/src/filiale/qianneng/Login.vue +2 -4
- package/src/filiale/qianneng/Main.vue +816 -818
- package/src/filiale/qianneng/ModifyPw.vue +0 -1
- package/src/filiale/rizhao/Login.vue +1 -3
- package/src/filiale/rizhao/Main.vue +2 -2
- package/src/filiale/shiquan/Login.vue +2 -4
- package/src/filiale/tianyi/Login.vue +2 -4
- package/src/filiale/tongchuan/Login.vue +2 -4
- package/src/filiale/tongchuan/Main.vue +5 -7
- package/src/filiale/weinan/Main.vue +5 -6
- package/src/filiale/wenxi/Login.vue +2 -4
- package/src/filiale/wenxi/Main.vue +2 -4
- package/src/filiale/wuhai/Main.vue +2 -5
- package/src/filiale/yuchuan/Login.vue +3 -5
- package/src/filiale/yuchuan/Main.vue +2 -4
- package/src/filiale/zhoukou/Main.vue +2 -4
- package/src/plugins/GetLoginInfoService.js +121 -18
- package/src/stores/AppData.js +1 -1
- package/src/system.js +6 -2
- package/src/filiale/ruihua/Login.vue +0 -549
- package/src/filiale/ruihua/system.js +0 -5
|
@@ -2,21 +2,33 @@ import Vue from 'vue'
|
|
|
2
2
|
import {HttpResetClass} from 'vue-client'
|
|
3
3
|
import cryptJS from './EncryptUtil'
|
|
4
4
|
|
|
5
|
-
let loginGen = async function (
|
|
6
|
-
let data = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (getLogin.data) {
|
|
5
|
+
let loginGen = async function (name, password, cue) {
|
|
6
|
+
let data = {name: name, password: password}
|
|
7
|
+
data = '$' + cryptJS.RSAEncrypt(JSON.stringify(data))
|
|
8
|
+
const getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
|
|
9
|
+
if (getLogin.data.states === '登录成功') {
|
|
11
10
|
//获取jwt
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
Vue.$login.jwt = getLogin.data.jwt
|
|
12
|
+
Vue.$login.jwtNew = getLogin.data.jwtNew
|
|
13
|
+
// 调用远程登录服务,获取所有有权访问的功能
|
|
14
|
+
data = {username: name, password: password}
|
|
15
|
+
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
|
16
|
+
const resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
|
|
17
|
+
resolveMsg: null,
|
|
18
|
+
rejectMsg: null
|
|
19
|
+
})
|
|
20
|
+
// 兼容旧版ldao
|
|
21
|
+
if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg && resource.data.code !== 200) {
|
|
22
|
+
throw {status: 555, data: resource.data.msg}
|
|
23
|
+
}
|
|
24
|
+
console.log('登陆获取Util', JSON.stringify(resource.data))
|
|
25
|
+
|
|
26
|
+
// 兼容旧版ldao,旧版不返回code
|
|
27
|
+
if ((JSON.stringify(resource.data).startsWith("{") || JSON.stringify(resource.data).startsWith("[")) && resource.data.code && resource.data.msg) {
|
|
28
|
+
Vue.$login.f = resource.data.data
|
|
29
|
+
} else {
|
|
30
|
+
Vue.$login.f = resource.data
|
|
18
31
|
}
|
|
19
|
-
Vue.$login.jwtNew = getLogin.data.access_token
|
|
20
32
|
// 把登录用户添加到cookie里
|
|
21
33
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
|
22
34
|
try {
|
|
@@ -25,6 +37,7 @@ let loginGen = async function (username, password, cue) {
|
|
|
25
37
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
|
26
38
|
userid: Vue.$login.f.id
|
|
27
39
|
}, { resolveMsg: null, rejectMsg: null })
|
|
40
|
+
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
|
28
41
|
//准备替换功能树
|
|
29
42
|
var fun = []
|
|
30
43
|
hasRight.data[0].children[0].children.forEach((item) => {
|
|
@@ -34,6 +47,8 @@ let loginGen = async function (username, password, cue) {
|
|
|
34
47
|
})
|
|
35
48
|
}
|
|
36
49
|
})
|
|
50
|
+
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
|
51
|
+
// console.log('替换后', JSON.stringify(fun))
|
|
37
52
|
Vue.$login.f.functions = fun
|
|
38
53
|
} catch (error) {
|
|
39
54
|
}
|
|
@@ -84,6 +99,21 @@ let loginGen = async function (username, password, cue) {
|
|
|
84
99
|
Vue.$login.f.f_installman = []
|
|
85
100
|
console.log('安装人模块', error)
|
|
86
101
|
}
|
|
102
|
+
// 获取换表员
|
|
103
|
+
// try {
|
|
104
|
+
// let getChangeMeterman = await Vue.resetpost('/rs/search', {
|
|
105
|
+
// source: 'this.getParentByType($organization$).getChildByName($换表员$).getUsers()',
|
|
106
|
+
// userid: Vue.$login.f.id
|
|
107
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
108
|
+
// let changemeterman = []
|
|
109
|
+
// for (let i = 0; i < getChangeMeterman.data.length; i++) {
|
|
110
|
+
// changemeterman.push(getChangeMeterman.data[i])
|
|
111
|
+
// }
|
|
112
|
+
// Vue.$login.f.f_changemeterman = changemeterman
|
|
113
|
+
// }catch (error) {
|
|
114
|
+
// Vue.$login.f.f_changemeterman = []
|
|
115
|
+
// console.log('换表员模块',error)
|
|
116
|
+
// }
|
|
87
117
|
// 获取资源服务权限
|
|
88
118
|
try {
|
|
89
119
|
let getLic = await Vue.resetpost('/rs/search', {
|
|
@@ -101,6 +131,37 @@ let loginGen = async function (username, password, cue) {
|
|
|
101
131
|
Vue.$login.f.f_gasman = []
|
|
102
132
|
console.log('资源服务权限', error)
|
|
103
133
|
}
|
|
134
|
+
// // 票据使用人
|
|
135
|
+
// try {
|
|
136
|
+
// let getPaperUseman = await Vue.resetpost('/rs/search', {
|
|
137
|
+
// source: 'this.getParentByType($organization$).getChildByName($票据使用人$).getUsers()',
|
|
138
|
+
// userid: Vue.$login.f.id
|
|
139
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
140
|
+
// let perperuseman = []
|
|
141
|
+
// for (let i = 0; i < getPaperUseman.data.length; i++) {
|
|
142
|
+
// perperuseman.push(getPaperUseman.data[i])
|
|
143
|
+
// }
|
|
144
|
+
// Vue.$login.f.f_paperUseman = perperuseman
|
|
145
|
+
// }catch (error) {
|
|
146
|
+
// Vue.$login.f.f_paperUseman = []
|
|
147
|
+
// console.log('票据使用人模块',error)
|
|
148
|
+
//
|
|
149
|
+
// }
|
|
150
|
+
// // 票据分配人
|
|
151
|
+
// try {
|
|
152
|
+
// let getPaperAllotman = await Vue.resetpost('/rs/search', {
|
|
153
|
+
// source: 'this.getParentByType($organization$).getChildByName($票据分配人$).getUsers()',
|
|
154
|
+
// userid: Vue.$login.f.id
|
|
155
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
156
|
+
// let paperallotman = []
|
|
157
|
+
// for (let i = 0; i < getPaperAllotman.data.length; i++) {
|
|
158
|
+
// paperallotman.push(getPaperAllotman.data[i])
|
|
159
|
+
// }
|
|
160
|
+
// Vue.$login.f.f_paperAllotman = paperallotman
|
|
161
|
+
// }catch (error) {
|
|
162
|
+
// Vue.$login.f.f_paperAllotman = []
|
|
163
|
+
// console.log('票据分配人模块',error)
|
|
164
|
+
// }
|
|
104
165
|
// TODO 处理界面细节
|
|
105
166
|
try {
|
|
106
167
|
let viewDetails = await Vue.resetpost('rs/search', {
|
|
@@ -118,6 +179,11 @@ let loginGen = async function (username, password, cue) {
|
|
|
118
179
|
for (let proc of Vue.$login.afterLogin) {
|
|
119
180
|
await proc(Vue.$login.f)
|
|
120
181
|
}
|
|
182
|
+
// 启动未操作下线计时器(30分钟)
|
|
183
|
+
if(Vue.$login.autoLoginout){
|
|
184
|
+
Vue.$login.startInactivityTimer(Vue.$login.autoLoginTimeOut)
|
|
185
|
+
}
|
|
186
|
+
|
|
121
187
|
// 定时发送心跳
|
|
122
188
|
if (cue) {
|
|
123
189
|
setInterval(() => {
|
|
@@ -144,12 +210,13 @@ let loginGen = async function (username, password, cue) {
|
|
|
144
210
|
}
|
|
145
211
|
|
|
146
212
|
} else {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
213
|
+
if(getLogin.data.states.includes('您的密码已经使用超过')){
|
|
214
|
+
throw {status: 789, data: getLogin.data.states}
|
|
215
|
+
}else{
|
|
216
|
+
let error = {status: 401, data: getLogin.data.states}
|
|
217
|
+
// 抛出错误
|
|
218
|
+
throw error
|
|
150
219
|
}
|
|
151
|
-
// 抛出错误
|
|
152
|
-
throw error
|
|
153
220
|
}
|
|
154
221
|
}
|
|
155
222
|
|
|
@@ -160,6 +227,9 @@ let GetLoginInfoService = {
|
|
|
160
227
|
Verification: true,
|
|
161
228
|
//构建时间开关
|
|
162
229
|
versionTime: true,
|
|
230
|
+
//长时间未操作退出开关
|
|
231
|
+
autoLoginout: false,
|
|
232
|
+
autoLoginTimeOut:30*60*1000,
|
|
163
233
|
//
|
|
164
234
|
SinglePageToken : {},
|
|
165
235
|
//登录信息展示开关
|
|
@@ -472,6 +542,39 @@ let GetLoginInfoService = {
|
|
|
472
542
|
let ds = date.split('-')
|
|
473
543
|
let nextMonth = ds[1] - 0 + 1
|
|
474
544
|
return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
|
|
545
|
+
},
|
|
546
|
+
/**
|
|
547
|
+
* 启动未操作强制下线计时器
|
|
548
|
+
* @param timeout 超时时间(毫秒),默认30分钟
|
|
549
|
+
*/
|
|
550
|
+
startInactivityTimer(timeout) {
|
|
551
|
+
// 清除已有的定时器
|
|
552
|
+
if (this._inactivityTimer) {
|
|
553
|
+
clearTimeout(this._inactivityTimer);
|
|
554
|
+
}
|
|
555
|
+
// 事件处理函数
|
|
556
|
+
const resetTimer = () => {
|
|
557
|
+
clearTimeout(this._inactivityTimer);
|
|
558
|
+
this._inactivityTimer = setTimeout(() => {
|
|
559
|
+
// 强制下线逻辑
|
|
560
|
+
// Vue.cookie.delete('loginId');
|
|
561
|
+
Vue.$login.f = {};
|
|
562
|
+
Vue.showMessage("长时间未操作,您已被强制下线", ['confirm']).then(() => {
|
|
563
|
+
location.reload();
|
|
564
|
+
});
|
|
565
|
+
}, timeout);
|
|
566
|
+
};
|
|
567
|
+
// 需要监听的事件
|
|
568
|
+
const events = ['mousemove', 'keydown', 'mousedown', 'scroll', 'touchstart'];
|
|
569
|
+
// 只绑定一次
|
|
570
|
+
if (!this._inactivityListenerAdded) {
|
|
571
|
+
events.forEach(event => {
|
|
572
|
+
window.addEventListener(event, resetTimer, true);
|
|
573
|
+
});
|
|
574
|
+
this._inactivityListenerAdded = true;
|
|
575
|
+
}
|
|
576
|
+
// 初始化计时器
|
|
577
|
+
resetTimer();
|
|
475
578
|
}
|
|
476
579
|
}
|
|
477
580
|
|
package/src/stores/AppData.js
CHANGED
|
@@ -9,7 +9,7 @@ let GetAppDataService = {
|
|
|
9
9
|
|
|
10
10
|
// 开启卡监听
|
|
11
11
|
load () {
|
|
12
|
-
return Vue.resetpost('
|
|
12
|
+
return Vue.resetpost('rs/logic/getInitData', {data: {f_filialeids: Vue.$login.f.orgid}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
13
13
|
res.data.singleValues.forEach((item) => {
|
|
14
14
|
this.singleValues[item.name] = item.value
|
|
15
15
|
})
|
package/src/system.js
CHANGED
|
@@ -28,7 +28,7 @@ import TestResSelect from './components/server/TestResSelect'
|
|
|
28
28
|
import RoleSelector from "./components/server/RoleSelector";
|
|
29
29
|
|
|
30
30
|
// BAinformation备案信息展示(空不展示, 传入什么展示什么,可以传标签)
|
|
31
|
-
export default function (val,filiale, {showLogin = false, show_daiBan = false, show_yiDi= false, BAinformation = null,showVersionTime=true} = {}) {
|
|
31
|
+
export default function (val,filiale, {showLogin = false, show_daiBan = false, show_yiDi= false, BAinformation = null,showVersionTime=true,autoLoginout = false, autoLoginTimeOut=30*60*1000} = {}) {
|
|
32
32
|
console.log(val,filiale,showLogin)
|
|
33
33
|
//验证码开关赋值
|
|
34
34
|
if(val!=null){
|
|
@@ -44,6 +44,10 @@ export default function (val,filiale, {showLogin = false, show_daiBan = false, s
|
|
|
44
44
|
GetLoginInfoService.showDaiBan=show_daiBan
|
|
45
45
|
//展示异地登录
|
|
46
46
|
GetLoginInfoService.showYiDi=show_yiDi
|
|
47
|
+
//自动登出
|
|
48
|
+
GetLoginInfoService.autoLoginout = autoLoginout
|
|
49
|
+
//自动登出时长(默认30分钟)
|
|
50
|
+
GetLoginInfoService.autoLoginTimeOut = autoLoginTimeOut
|
|
47
51
|
// 备案信息复制
|
|
48
52
|
GetLoginInfoService.BAinformation = BAinformation
|
|
49
53
|
Vue.use(GetLoginInfoService)
|
|
@@ -65,7 +69,7 @@ export default function (val,filiale, {showLogin = false, show_daiBan = false, s
|
|
|
65
69
|
//资源选择
|
|
66
70
|
Vue.component('res-select', ResSelect)
|
|
67
71
|
Vue.component('res-select-group', ResSelectGroup)
|
|
68
|
-
|
|
72
|
+
//资源选择测试
|
|
69
73
|
Vue.component('test-res-select', TestResSelect)
|
|
70
74
|
|
|
71
75
|
// 参数管理(新)
|