system-clients 3.3.3-old → 3.3.4
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 +105 -105
- package/src/LodopFuncs.js +103 -71
- package/src/components/Main.vue +935 -927
- 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 +7 -11
- package/src/components/equipment/PosList.vue +3 -5
- 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 +575 -589
- package/src/components/server/ModifyPw.vue +1 -0
- package/src/components/server/PcdBuildingSelect.vue +8 -6
- package/src/components/server/ResSelect.vue +3 -0
- package/src/components/server/ResSelectGroup.vue +1 -1
- package/src/components/server/RoleSelector.vue +3 -2
- package/src/components/server/TestResSelectGroup.vue +1 -1
- package/src/filiale/baole/Login.vue +4 -2
- package/src/filiale/chengtou/Login.vue +4 -2
- package/src/filiale/dongguan/Login.vue +4 -2
- package/src/filiale/dongguan/Main.vue +4 -2
- package/src/filiale/furuike/Login.vue +7 -3
- package/src/filiale/furuike/Main.vue +38 -25
- package/src/filiale/gehua/Main.vue +4 -2
- package/src/filiale/konggang/Login.vue +4 -2
- package/src/filiale/qianneng/Login.vue +4 -2
- package/src/filiale/qianneng/Main.vue +4 -2
- package/src/filiale/qianneng/ModifyPw.vue +1 -0
- package/src/filiale/rizhao/Login.vue +3 -1
- package/src/filiale/rizhao/Main.vue +2 -2
- package/src/filiale/ruihua/Login.vue +576 -0
- package/src/filiale/ruihua/system.js +5 -0
- package/src/filiale/shiquan/Login.vue +4 -2
- package/src/filiale/tianyi/Login.vue +4 -2
- package/src/filiale/tongchuan/Login.vue +4 -2
- package/src/filiale/tongchuan/Main.vue +7 -5
- package/src/filiale/weinan/Main.vue +6 -5
- package/src/filiale/wenxi/Login.vue +4 -2
- package/src/filiale/wenxi/Main.vue +4 -2
- package/src/filiale/wuhai/Main.vue +5 -2
- package/src/filiale/yuchuan/Login.vue +5 -3
- package/src/filiale/yuchuan/Main.vue +4 -2
- package/src/filiale/zhoukou/Main.vue +4 -2
- package/src/plugins/GetLoginInfoService.js +17 -75
- package/src/stores/AppData.js +1 -1
- package/static/ruihua/logo.jpg +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
@@ -212,7 +212,8 @@ let getwartermakr = async function (self) {
|
|
212
212
|
tablename: 't_singlevalue',
|
213
213
|
condition: " 1=1 and name=\'水印内容\'"
|
214
214
|
};
|
215
|
-
|
215
|
+
// todo v4
|
216
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
216
217
|
if (result && result.data.length > 0) {
|
217
218
|
self.showwatermakeflag = true;
|
218
219
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -376,6 +377,7 @@ let createWaterMark = function (userName) {
|
|
376
377
|
this.model.f_stopgas_id = this.notices.id
|
377
378
|
this.model.f_user_id = this.$login.f.id
|
378
379
|
console.log('保存', this.model)
|
380
|
+
// todo v4
|
379
381
|
this.$resetpost('rs/logic/savenoticenotarize', this.model, {resolveMsg: '保存成功', rejectMsg: '保存失败'}).then((res) => {
|
380
382
|
this.model.f_stopgas_id = ''
|
381
383
|
this.model.f_user_id = ''
|
@@ -493,7 +495,7 @@ let createWaterMark = function (userName) {
|
|
493
495
|
this.OrderDaiBan = ''
|
494
496
|
this.AppDaiBan = ''
|
495
497
|
let http = new HttpResetClass()
|
496
|
-
await http.load('POST', '/
|
498
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
497
499
|
tablename:'t_order_center',
|
498
500
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
499
501
|
}}, {
|
@@ -541,7 +543,7 @@ let createWaterMark = function (userName) {
|
|
541
543
|
async getExpireDate(){
|
542
544
|
// 获取分公司的表品牌id
|
543
545
|
let http = new HttpResetClass()
|
544
|
-
await http.load('POST', '/
|
546
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
545
547
|
tablename:'t_gasbrand_orgid',
|
546
548
|
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
547
549
|
}}, {
|
@@ -555,7 +557,7 @@ let createWaterMark = function (userName) {
|
|
555
557
|
}
|
556
558
|
if (this.gasbrandIdData.length > 0) {
|
557
559
|
// 获取卡表到期时间
|
558
|
-
http.load('POST', '/
|
560
|
+
http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
559
561
|
tablename:'t_gasbrand',
|
560
562
|
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
561
563
|
}}, {
|
@@ -566,7 +568,6 @@ let createWaterMark = function (userName) {
|
|
566
568
|
res.data.forEach(itre => {
|
567
569
|
let band = null
|
568
570
|
if ('f_dynamic_expire' in itre) {
|
569
|
-
console.log(itre.f_dynamic_expire)
|
570
571
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
571
572
|
let todayold = new Date(itre.f_dynamic_expire)
|
572
573
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -696,6 +697,7 @@ let createWaterMark = function (userName) {
|
|
696
697
|
username: this.$login.f.name,
|
697
698
|
usertelephone: this.$login.f.f_user_telephone
|
698
699
|
}
|
700
|
+
// todo v4
|
699
701
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
700
702
|
window.location.reload()
|
701
703
|
}
|
@@ -189,7 +189,8 @@ let getwartermakr = async function (self) {
|
|
189
189
|
tablename: 't_singlevalue',
|
190
190
|
condition: " 1=1 and name=\'水印内容\'"
|
191
191
|
};
|
192
|
-
|
192
|
+
// todo v4
|
193
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
193
194
|
if (result && result.data.length > 0) {
|
194
195
|
self.showwatermakeflag = true;
|
195
196
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -397,7 +398,7 @@ export default {
|
|
397
398
|
this.OrderDaiBan = ''
|
398
399
|
this.AppDaiBan = ''
|
399
400
|
let http = new HttpResetClass()
|
400
|
-
await http.load('POST', '/
|
401
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
401
402
|
tablename:'t_order_center',
|
402
403
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
403
404
|
}}, {
|
@@ -445,7 +446,7 @@ export default {
|
|
445
446
|
async getExpireDate(){
|
446
447
|
// 获取分公司的表品牌id
|
447
448
|
let http = new HttpResetClass()
|
448
|
-
await http.load('POST', '/
|
449
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
449
450
|
tablename:'t_gasbrand_orgid',
|
450
451
|
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
451
452
|
}}, {
|
@@ -459,7 +460,7 @@ export default {
|
|
459
460
|
}
|
460
461
|
if (this.gasbrandIdData.length > 0) {
|
461
462
|
// 获取卡表到期时间
|
462
|
-
http.load('POST', '/
|
463
|
+
http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
463
464
|
tablename:'t_gasbrand',
|
464
465
|
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
465
466
|
}}, {
|
@@ -470,7 +471,6 @@ export default {
|
|
470
471
|
res.data.forEach(itre => {
|
471
472
|
let band = null
|
472
473
|
if ('f_dynamic_expire' in itre) {
|
473
|
-
console.log(itre.f_dynamic_expire)
|
474
474
|
if (itre.f_dynamic_expire !== null && itre.f_dynamic_expire !== '') {
|
475
475
|
let todayold = new Date(itre.f_dynamic_expire)
|
476
476
|
todayold.setDate(todayold.getDate() - parseInt(this.$appdata.getSingleValue('动态库提醒天数设置')))
|
@@ -600,6 +600,7 @@ export default {
|
|
600
600
|
username: this.$login.f.name,
|
601
601
|
usertelephone: this.$login.f.f_user_telephone
|
602
602
|
}
|
603
|
+
// todo v4
|
603
604
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
604
605
|
window.location.reload()
|
605
606
|
}
|
@@ -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
|
@@ -259,7 +260,7 @@ export default {
|
|
259
260
|
this.vTime = this.format(new Date(window.versionTime));
|
260
261
|
try{
|
261
262
|
let http = new HttpResetClass()
|
262
|
-
let res = await http.load('POST', '
|
263
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
263
264
|
{data:{
|
264
265
|
tablename: 't_changedeclare',
|
265
266
|
condition: ` f_type ='变更通知' `
|
@@ -359,7 +360,7 @@ export default {
|
|
359
360
|
} else {
|
360
361
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
361
362
|
}
|
362
|
-
await http.load('POST', '/
|
363
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
363
364
|
tablename:'t_order_center',
|
364
365
|
condition:condition
|
365
366
|
}}, {
|
@@ -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,7 +165,8 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
-
|
168
|
+
// todo v4
|
169
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
169
170
|
if (result && result.data.length > 0) {
|
170
171
|
self.showwatermakeflag = true;
|
171
172
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -311,7 +312,7 @@ export default {
|
|
311
312
|
this.OrderDaiBan = ''
|
312
313
|
this.AppDaiBan = ''
|
313
314
|
let http = new HttpResetClass()
|
314
|
-
await http.load('POST', '/
|
315
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
315
316
|
tablename:'t_order_center',
|
316
317
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
317
318
|
}}, {
|
@@ -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,7 +165,8 @@ let getwartermakr = async function (self) {
|
|
165
165
|
tablename: 't_singlevalue',
|
166
166
|
condition: " 1=1 and name=\'水印内容\'"
|
167
167
|
};
|
168
|
-
|
168
|
+
// todo v4
|
169
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
169
170
|
if (result && result.data.length > 0) {
|
170
171
|
self.showwatermakeflag = true;
|
171
172
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -316,7 +317,7 @@ export default {
|
|
316
317
|
this.OrderDaiBan = ''
|
317
318
|
this.AppDaiBan = ''
|
318
319
|
let http = new HttpResetClass()
|
319
|
-
await http.load('POST', '/
|
320
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
320
321
|
tablename:'t_order_center',
|
321
322
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
322
323
|
}}, {
|
@@ -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
|
@@ -256,7 +257,7 @@ export default {
|
|
256
257
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
257
258
|
try{
|
258
259
|
let http = new HttpResetClass()
|
259
|
-
let res = await http.load('POST', '
|
260
|
+
let res = await http.load('POST', 'api/af-system/sql/singleTable',
|
260
261
|
{data:{
|
261
262
|
tablename: 't_changedeclare',
|
262
263
|
condition: ` f_type ='变更通知' `
|
@@ -302,7 +303,7 @@ export default {
|
|
302
303
|
isMac: false,
|
303
304
|
depPrompt: false,
|
304
305
|
weakPassword: false,
|
305
|
-
title: '
|
306
|
+
title: '榆林榆川客服系统',
|
306
307
|
distanceLogin: false,
|
307
308
|
// 那些角色可以定时获取预约提示
|
308
309
|
isTip : false,
|
@@ -343,7 +344,7 @@ export default {
|
|
343
344
|
} else {
|
344
345
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
345
346
|
}
|
346
|
-
await http.load('POST', '/
|
347
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
347
348
|
tablename:'t_order_center',
|
348
349
|
condition:condition
|
349
350
|
}}, {
|
@@ -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,7 +155,8 @@ let getwartermakr = async function (self) {
|
|
155
155
|
tablename: 't_singlevalue',
|
156
156
|
condition: " 1=1 and name=\'水印内容\'"
|
157
157
|
};
|
158
|
-
|
158
|
+
// todo v4
|
159
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
159
160
|
if (result && result.data.length > 0) {
|
160
161
|
self.showwatermakeflag = true;
|
161
162
|
createWaterMark(result.data[0].value);
|
@@ -390,7 +391,7 @@ export default {
|
|
390
391
|
this.OrderDaiBan = ''
|
391
392
|
this.AppDaiBan = ''
|
392
393
|
let http = new HttpResetClass()
|
393
|
-
await http.load('POST', '/
|
394
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
394
395
|
tablename:'t_order_center',
|
395
396
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
396
397
|
}}, {
|
@@ -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,7 +151,8 @@ let getwartermakr = async function (self) {
|
|
151
151
|
tablename: 't_singlevalue',
|
152
152
|
condition: " 1=1 and name=\'水印内容\'"
|
153
153
|
};
|
154
|
-
|
154
|
+
// todo v4
|
155
|
+
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
155
156
|
if (result && result.data.length > 0) {
|
156
157
|
self.showwatermakeflag = true;
|
157
158
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
@@ -291,7 +292,7 @@ export default {
|
|
291
292
|
this.OrderDaiBan = ''
|
292
293
|
this.AppDaiBan = ''
|
293
294
|
let http = new HttpResetClass()
|
294
|
-
await http.load('POST', '/
|
295
|
+
await http.load('POST', '/api/af-system/sql/singleTable', {data: {
|
295
296
|
tablename:'t_order_center',
|
296
297
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
297
298
|
}}, {
|
@@ -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,21 @@ 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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
12
|
+
if (getLogin.data.resources.data && getLogin.data.resources.data.id){
|
13
|
+
Vue.$login.jwt = getLogin.data.resources.data.id
|
14
|
+
Vue.$login.f = getLogin.data.resources.data
|
15
|
+
}else {
|
16
|
+
Vue.$login.jwt = getLogin.data.resources.id
|
17
|
+
Vue.$login.f = getLogin.data.resources
|
31
18
|
}
|
19
|
+
Vue.$login.jwtNew = getLogin.data.access_token
|
32
20
|
// 把登录用户添加到cookie里
|
33
21
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
34
22
|
try {
|
@@ -37,7 +25,6 @@ let loginGen = async function (name, password, cue) {
|
|
37
25
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
38
26
|
userid: Vue.$login.f.id
|
39
27
|
}, { resolveMsg: null, rejectMsg: null })
|
40
|
-
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
41
28
|
//准备替换功能树
|
42
29
|
var fun = []
|
43
30
|
hasRight.data[0].children[0].children.forEach((item) => {
|
@@ -47,8 +34,6 @@ let loginGen = async function (name, password, cue) {
|
|
47
34
|
})
|
48
35
|
}
|
49
36
|
})
|
50
|
-
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
51
|
-
// console.log('替换后', JSON.stringify(fun))
|
52
37
|
Vue.$login.f.functions = fun
|
53
38
|
} catch (error) {
|
54
39
|
}
|
@@ -99,21 +84,6 @@ let loginGen = async function (name, password, cue) {
|
|
99
84
|
Vue.$login.f.f_installman = []
|
100
85
|
console.log('安装人模块', error)
|
101
86
|
}
|
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
87
|
// 获取资源服务权限
|
118
88
|
try {
|
119
89
|
let getLic = await Vue.resetpost('/rs/search', {
|
@@ -131,37 +101,6 @@ let loginGen = async function (name, password, cue) {
|
|
131
101
|
Vue.$login.f.f_gasman = []
|
132
102
|
console.log('资源服务权限', error)
|
133
103
|
}
|
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
104
|
// TODO 处理界面细节
|
166
105
|
try {
|
167
106
|
let viewDetails = await Vue.resetpost('rs/search', {
|
@@ -205,7 +144,10 @@ let loginGen = async function (name, password, cue) {
|
|
205
144
|
}
|
206
145
|
|
207
146
|
} else {
|
208
|
-
let error = {status: 401, data:
|
147
|
+
let error = {status: 401, data: "登录失败,请稍后重试"}
|
148
|
+
if (getLogin.data.code !== 500) {
|
149
|
+
error = {status: getLogin.data.code, data: getLogin.data.msg}
|
150
|
+
}
|
209
151
|
// 抛出错误
|
210
152
|
throw error
|
211
153
|
}
|
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
|