system-clients 3.2.87 → 3.2.89
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/package.json +2 -2
- package/src/components/Main.vue +2 -1
- package/src/components/equipment/EquipmentManage.vue +83 -83
- package/src/components/equipment/PcAdd.vue +115 -115
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +61 -61
- package/src/components/equipment/PhoneAdd.vue +118 -118
- package/src/components/equipment/PhoneList.vue +113 -113
- package/src/components/equipment/PhoneManage.vue +61 -61
- package/src/components/equipment/PosAdd.vue +6 -10
- package/src/components/equipment/PosList.vue +3 -5
- package/src/components/equipment/PosParamAdd.vue +1 -1
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/server/Login.vue +17 -35
- package/src/components/server/ModifyPw.vue +1 -0
- package/src/components/server/PcdBuildingSelect.vue +2 -0
- package/src/components/server/RoleSelector.vue +3 -2
- package/src/filiale/baole/Login.vue +2 -0
- package/src/filiale/chengtou/Login.vue +2 -0
- package/src/filiale/dongguan/Login.vue +2 -0
- package/src/filiale/dongguan/Main.vue +2 -0
- package/src/filiale/furuike/Login.vue +4 -0
- package/src/filiale/furuike/Main.vue +2 -0
- package/src/filiale/gehua/Main.vue +2 -0
- package/src/filiale/konggang/Login.vue +2 -0
- package/src/filiale/qianneng/Login.vue +584 -582
- package/src/filiale/qianneng/Main.vue +2 -0
- package/src/filiale/qianneng/ModifyPw.vue +1 -0
- package/src/filiale/rizhao/Login.vue +2 -0
- package/src/filiale/shiquan/Login.vue +2 -0
- package/src/filiale/tianyi/Login.vue +2 -0
- package/src/filiale/tongchuan/Login.vue +2 -0
- package/src/filiale/tongchuan/Main.vue +3 -1
- package/src/filiale/weinan/Main.vue +924 -923
- package/src/filiale/weinan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +2 -0
- package/src/filiale/wenxi/Main.vue +2 -0
- package/src/filiale/wuhai/Main.vue +3 -0
- package/src/filiale/yuchuan/Login.vue +2 -0
- package/src/filiale/yuchuan/Main.vue +2 -0
- package/src/filiale/zhoukou/Main.vue +2 -0
- package/src/plugins/GetLoginInfoService.js +13 -75
- package/src/stores/AppData.js +1 -1
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- 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 +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
@@ -1,7 +1,7 @@
|
|
1
|
-
// 分公司特殊组件页面注册
|
2
|
-
|
3
|
-
exports.specialComp = {
|
4
|
-
'home-page': (resolve) => {
|
5
|
-
require(['./Main'], resolve)
|
6
|
-
}
|
7
|
-
}
|
1
|
+
// 分公司特殊组件页面注册
|
2
|
+
|
3
|
+
exports.specialComp = {
|
4
|
+
'home-page': (resolve) => {
|
5
|
+
require(['./Main'], resolve)
|
6
|
+
}
|
7
|
+
}
|
@@ -171,6 +171,7 @@ let saveGen = function *(self) {
|
|
171
171
|
console.log('登录配置', self.config)
|
172
172
|
if (self.config.isMac) {
|
173
173
|
// 获取该登录人分公司下的mac配置
|
174
|
+
// todo v4
|
174
175
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
175
176
|
resolveMsg: null,
|
176
177
|
rejectMsg: null
|
@@ -435,6 +436,7 @@ export default {
|
|
435
436
|
if (this.config.distanceLogin) {
|
436
437
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
437
438
|
let ename = this.$login.getUrlParames('name');
|
439
|
+
// todo v4
|
438
440
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
439
441
|
if(logininfo.data){
|
440
442
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -165,6 +165,7 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
+
// todo v4
|
168
169
|
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
169
170
|
if (result && result.data.length > 0) {
|
170
171
|
self.showwatermakeflag = true;
|
@@ -462,6 +463,7 @@ export default {
|
|
462
463
|
username: this.$login.f.name,
|
463
464
|
usertelephone: this.$login.f.f_user_telephone
|
464
465
|
}
|
466
|
+
// todo v4
|
465
467
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
466
468
|
window.location.reload()
|
467
469
|
}
|
@@ -165,6 +165,7 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
+
// todo v4
|
168
169
|
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
169
170
|
if (result && result.data.length > 0) {
|
170
171
|
self.showwatermakeflag = true;
|
@@ -467,6 +468,7 @@ export default {
|
|
467
468
|
username: this.$login.f.name,
|
468
469
|
usertelephone: this.$login.f.f_user_telephone
|
469
470
|
}
|
471
|
+
// todo v4
|
470
472
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
471
473
|
window.location.reload()
|
472
474
|
}
|
@@ -475,6 +477,7 @@ export default {
|
|
475
477
|
// 微信统计投诉和咨询的条数
|
476
478
|
async WechatOfComplaintAndConsult () {
|
477
479
|
console.log('开始执行')
|
480
|
+
// todo v4
|
478
481
|
let WeChatData = await this.$resetpost('rs/sql/singleTable_OrderBy',{
|
479
482
|
data:{
|
480
483
|
items: 'f_isreply',
|
@@ -170,6 +170,7 @@ let saveGen = function *(self) {
|
|
170
170
|
console.log('登录配置', self.config)
|
171
171
|
if (self.config.isMac) {
|
172
172
|
// 获取该登录人分公司下的mac配置
|
173
|
+
// todo v4
|
173
174
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
174
175
|
resolveMsg: null,
|
175
176
|
rejectMsg: null
|
@@ -419,6 +420,7 @@ export default {
|
|
419
420
|
if (this.config.distanceLogin) {
|
420
421
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
421
422
|
let ename = this.$login.getUrlParames('name');
|
423
|
+
// todo v4
|
422
424
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
423
425
|
if(logininfo.data){
|
424
426
|
if(logininfo.data.ename && logininfo.data.password){
|
@@ -155,6 +155,7 @@ let getwartermakr = async function (self) {
|
|
155
155
|
tablename: 't_singlevalue',
|
156
156
|
condition: " 1=1 and name=\'水印内容\'"
|
157
157
|
};
|
158
|
+
// todo v4
|
158
159
|
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
159
160
|
if (result && result.data.length > 0) {
|
160
161
|
self.showwatermakeflag = true;
|
@@ -541,6 +542,7 @@ export default {
|
|
541
542
|
username: this.$login.f.name,
|
542
543
|
usertelephone: this.$login.f.f_user_telephone
|
543
544
|
}
|
545
|
+
// todo v4
|
544
546
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
545
547
|
window.location.reload()
|
546
548
|
}
|
@@ -151,6 +151,7 @@ let getwartermakr = async function (self) {
|
|
151
151
|
tablename: 't_singlevalue',
|
152
152
|
condition: " 1=1 and name=\'水印内容\'"
|
153
153
|
};
|
154
|
+
// todo v4
|
154
155
|
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
155
156
|
if (result && result.data.length > 0) {
|
156
157
|
self.showwatermakeflag = true;
|
@@ -422,6 +423,7 @@ export default {
|
|
422
423
|
username: this.$login.f.name,
|
423
424
|
usertelephone: this.$login.f.f_user_telephone
|
424
425
|
}
|
426
|
+
// todo v4
|
425
427
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
426
428
|
window.location.reload()
|
427
429
|
}
|
@@ -2,33 +2,17 @@ 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
|
-
|
5
|
+
let loginGen = async function (username, password, cue) {
|
6
|
+
let data = {username, password,resourceName:'客服系统'}
|
7
|
+
const getLogin = await Vue.resetpost('/api/af-auth/login', data,
|
8
|
+
{resolveMsg: null, rejectMsg: null,headerConfig:{'Content-type': "application/json"}
|
9
|
+
})
|
10
|
+
if (getLogin.data) {
|
10
11
|
//获取jwt
|
11
|
-
Vue.$login.jwt = getLogin.data.
|
12
|
-
Vue.$login.jwtNew = getLogin.data.
|
12
|
+
Vue.$login.jwt = getLogin.data.resources.data.id
|
13
|
+
Vue.$login.jwtNew = getLogin.data.access_token
|
13
14
|
// 调用远程登录服务,获取所有有权访问的功能
|
14
|
-
|
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
|
31
|
-
}
|
15
|
+
Vue.$login.f = getLogin.data.resources.data
|
32
16
|
// 把登录用户添加到cookie里
|
33
17
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
34
18
|
try {
|
@@ -37,7 +21,6 @@ let loginGen = async function (name, password, cue) {
|
|
37
21
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
38
22
|
userid: Vue.$login.f.id
|
39
23
|
}, { resolveMsg: null, rejectMsg: null })
|
40
|
-
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
41
24
|
//准备替换功能树
|
42
25
|
var fun = []
|
43
26
|
hasRight.data[0].children[0].children.forEach((item) => {
|
@@ -47,8 +30,6 @@ let loginGen = async function (name, password, cue) {
|
|
47
30
|
})
|
48
31
|
}
|
49
32
|
})
|
50
|
-
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
51
|
-
// console.log('替换后', JSON.stringify(fun))
|
52
33
|
Vue.$login.f.functions = fun
|
53
34
|
} catch (error) {
|
54
35
|
}
|
@@ -99,21 +80,6 @@ let loginGen = async function (name, password, cue) {
|
|
99
80
|
Vue.$login.f.f_installman = []
|
100
81
|
console.log('安装人模块', error)
|
101
82
|
}
|
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
|
-
// }
|
117
83
|
// 获取资源服务权限
|
118
84
|
try {
|
119
85
|
let getLic = await Vue.resetpost('/rs/search', {
|
@@ -131,37 +97,6 @@ let loginGen = async function (name, password, cue) {
|
|
131
97
|
Vue.$login.f.f_gasman = []
|
132
98
|
console.log('资源服务权限', error)
|
133
99
|
}
|
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
|
-
// }
|
165
100
|
// TODO 处理界面细节
|
166
101
|
try {
|
167
102
|
let viewDetails = await Vue.resetpost('rs/search', {
|
@@ -205,7 +140,10 @@ let loginGen = async function (name, password, cue) {
|
|
205
140
|
}
|
206
141
|
|
207
142
|
} else {
|
208
|
-
let error = {status: 401, data:
|
143
|
+
let error = {status: 401, data: "登录失败,请稍后重试"}
|
144
|
+
if (getLogin.data.code !== 500) {
|
145
|
+
error = {status: getLogin.data.code, data: getLogin.data.msg}
|
146
|
+
}
|
209
147
|
// 抛出错误
|
210
148
|
throw error
|
211
149
|
}
|
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('api/af-system/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
|
})
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|