eoss 0.1.0-alpha.38 → 0.1.0-alpha.39
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/lib/account-login.js +3729 -3725
- package/lib/ca-login.js +18 -8
- package/lib/checkbox-group.js +4329 -4329
- package/lib/data-table.js +3582 -3584
- package/lib/email-login.js +3525 -3522
- package/lib/eoss.common.js +426 -337
- package/lib/flow.js +27361 -27357
- package/lib/flows.js +5612 -5612
- package/lib/form.js +8 -8
- package/lib/index.js +1 -1
- package/lib/login.js +5982 -5978
- package/lib/lowcode-view.js +5263 -5258
- package/lib/lowcode.js +16885 -16884
- package/lib/main.js +99 -58
- package/lib/phone-login.js +3542 -3538
- package/lib/process-config.js +4105 -4080
- package/lib/process-module.js +3555 -3541
- package/lib/process-rule.js +4707 -4688
- package/lib/qrcode-login.js +3290 -3290
- package/lib/radio-group.js +3466 -3466
- package/lib/retrial-auth.js +3516 -3516
- package/lib/select.js +9354 -9354
- package/lib/selector-panel.js +6280 -6280
- package/lib/selector.js +5320 -5320
- package/lib/table.js +16094 -16094
- package/lib/tips.js +3309 -3309
- package/lib/tree.js +6666 -6661
- package/lib/upload.js +7994 -7989
- package/lib/wujie.js +9 -3
- package/package.json +1 -1
- package/packages/account-login/src/account-login.vue +9 -15
- package/packages/ca-login/src/ca-login.vue +5 -6
- package/packages/data-table/src/data-table.vue +1 -3
- package/packages/email-login/src/email-login.vue +10 -11
- package/packages/flow/src/form.vue +2 -2
- package/packages/login/src/download.vue +2 -2
- package/packages/login/src/login.vue +3 -4
- package/packages/login/src/resetPassword.vue +3 -3
- package/packages/lowcode/src/attribute.vue +10 -9
- package/packages/lowcode-view/src/view.vue +3 -2
- package/packages/main/src/components/message.vue +7 -7
- package/packages/main/src/components/notice.vue +3 -2
- package/packages/main/src/components/pages.vue +28 -2
- package/packages/main/src/components/router-page.vue +6 -1
- package/packages/main/src/minxs.js +14 -10
- package/packages/phone-login/src/phone-login.vue +4 -4
- package/packages/process-config/src/FormList.vue +14 -8
- package/packages/process-config/src/NodeConfig.vue +50 -37
- package/packages/process-config/src/NodeForm.vue +37 -32
- package/packages/process-config/src/main.vue +50 -37
- package/packages/process-module/src/FormList.vue +16 -11
- package/packages/process-module/src/main.vue +52 -39
- package/packages/process-rule/src/FormList.vue +120 -105
- package/packages/process-rule/src/companyReportDetail.vue +13 -8
- package/packages/process-rule/src/main.vue +71 -52
- package/packages/tree/src/tree.vue +6 -5
- package/packages/upload/src/index.vue +3 -2
- package/packages/wujie/src/wujie.vue +7 -1
- package/src/index.js +1 -1
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<script>
|
|
14
14
|
import { loading } from 'eoss/src/utils/util';
|
|
15
15
|
import { ajax } from 'eoss/src/utils/ajax';
|
|
16
|
+
import Message from 'eoss/packages/message';
|
|
16
17
|
|
|
17
18
|
import EsForm from 'eoss/packages/form';
|
|
18
19
|
export default {
|
|
@@ -492,125 +493,139 @@ export default {
|
|
|
492
493
|
ajax({
|
|
493
494
|
url: this.url,
|
|
494
495
|
params: { id: this.id }
|
|
495
|
-
})
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
this.
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
496
|
+
})
|
|
497
|
+
.then((res) => {
|
|
498
|
+
loadingInstance.close();
|
|
499
|
+
if (res.rCode === 0) {
|
|
500
|
+
this.formData = {};
|
|
501
|
+
if (res.results.issueModule) {
|
|
502
|
+
this.formData = res.results.issueModule;
|
|
503
|
+
this.generateTypeStatus = res.results.generateTypeStatus;
|
|
504
|
+
this.$set(this.formData, 'issueIsTime', '2');
|
|
505
|
+
this.$set(this.formData, 'isRepeatNow', '2');
|
|
506
|
+
this.$set(this.formData, 'isEnable', 'true');
|
|
507
|
+
}
|
|
508
|
+
// 编辑时
|
|
509
|
+
if (this.id) {
|
|
510
|
+
this.formData = res.results.bean;
|
|
511
|
+
this.formData.modelFillRole =
|
|
512
|
+
res.results.issueModule.modelFillRole;
|
|
513
|
+
this.formData.issueIsTime = res.results.issueModule.issueIsTime
|
|
514
|
+
? res.results.issueModule.issueIsTime + ''
|
|
515
|
+
: '2';
|
|
516
|
+
if (res.results.bean.tableCycle) {
|
|
517
|
+
if (res.results.bean.tableCycle.includes('季度')) {
|
|
518
|
+
this.$set(
|
|
519
|
+
this.formData,
|
|
520
|
+
'quarter',
|
|
521
|
+
res.results.bean.tableCycle
|
|
522
|
+
);
|
|
523
|
+
// this.formData.quarter = res.results.bean.tableCycle;
|
|
524
|
+
} else if (res.results.bean.tableCycle.includes('半年')) {
|
|
525
|
+
// this.formData.year = res.results.bean.tableCycle;
|
|
526
|
+
this.$set(this.formData, 'year', res.results.bean.tableCycle);
|
|
527
|
+
} else if (/\d/i.test(res.results.bean.tableCycle)) {
|
|
528
|
+
// this.formData.month = res.results.bean.tableCycle;
|
|
529
|
+
this.$set(
|
|
530
|
+
this.formData,
|
|
531
|
+
'month',
|
|
532
|
+
res.results.bean.tableCycle
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
this.formData.years = res.results.bean.years.toString();
|
|
538
|
+
// if (!this.readOnly) {
|
|
539
|
+
this.formData.tableNamecode =
|
|
540
|
+
res.results.issueModule.tableNamecode;
|
|
541
|
+
// }
|
|
542
|
+
if (res.results.bean.issueIsTime) {
|
|
515
543
|
this.$set(
|
|
516
544
|
this.formData,
|
|
517
|
-
'
|
|
518
|
-
res.results.bean.
|
|
545
|
+
'issueIsTime',
|
|
546
|
+
res.results.bean.issueIsTime + ''
|
|
519
547
|
);
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
548
|
+
}
|
|
549
|
+
if (res.results.bean.isRepeatNow) {
|
|
550
|
+
this.$set(
|
|
551
|
+
this.formData,
|
|
552
|
+
'isRepeatNow',
|
|
553
|
+
res.results.bean.isRepeatNow + ''
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
if (res.results.bean.companynames) {
|
|
557
|
+
let nameArr = res.results.bean.companynames
|
|
558
|
+
.split(',')
|
|
559
|
+
.map((item) => {
|
|
560
|
+
return { showname: item };
|
|
561
|
+
});
|
|
562
|
+
let idArr = res.results.bean.companyids
|
|
563
|
+
.split(',')
|
|
564
|
+
.map((item) => {
|
|
565
|
+
return { showid: item };
|
|
566
|
+
});
|
|
567
|
+
let companyArr = nameArr.map((item, i) => {
|
|
568
|
+
item.showid = idArr[i].showid;
|
|
569
|
+
return item;
|
|
570
|
+
});
|
|
571
|
+
// this.formData.singleCompanyArray = companyArr;
|
|
572
|
+
this.$set(this.formData, 'singleCompanyArray', companyArr);
|
|
573
|
+
}
|
|
574
|
+
if (res.results.bean.errorToUser) {
|
|
575
|
+
let errorToUserArray = [
|
|
576
|
+
{
|
|
577
|
+
showname: res.results.bean.errorToUser,
|
|
578
|
+
showid: res.results.bean.errorToUserId
|
|
579
|
+
}
|
|
580
|
+
];
|
|
581
|
+
this.$set(this.formData, 'errorToUserArray', errorToUserArray);
|
|
527
582
|
}
|
|
528
583
|
}
|
|
529
|
-
|
|
530
|
-
this.
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
if (
|
|
535
|
-
this
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
);
|
|
584
|
+
//补发时
|
|
585
|
+
if (this.reissue) {
|
|
586
|
+
delete this.formData.singleCompanyArray;
|
|
587
|
+
}
|
|
588
|
+
//查看时
|
|
589
|
+
if (this.readOnly) {
|
|
590
|
+
this.formData.tableName = {
|
|
591
|
+
shortName: res.results.bean.tableName,
|
|
592
|
+
cciValue: res.results.issueModule.tableNamecode
|
|
593
|
+
};
|
|
540
594
|
}
|
|
541
|
-
|
|
595
|
+
let businessMainList = res.results.businessMainList.map((item) => {
|
|
596
|
+
return { name: item.businessName, value: item.id };
|
|
597
|
+
});
|
|
598
|
+
this.filid = res.results.orgid;
|
|
599
|
+
this.businessMainList = businessMainList;
|
|
600
|
+
if (this.businessMainList.length == 1) {
|
|
542
601
|
this.$set(
|
|
543
602
|
this.formData,
|
|
544
|
-
'
|
|
545
|
-
|
|
603
|
+
'businessId',
|
|
604
|
+
this.businessMainList[0].value
|
|
546
605
|
);
|
|
547
606
|
}
|
|
548
|
-
if (res.results.bean.companynames) {
|
|
549
|
-
let nameArr = res.results.bean.companynames
|
|
550
|
-
.split(',')
|
|
551
|
-
.map((item) => {
|
|
552
|
-
return { showname: item };
|
|
553
|
-
});
|
|
554
|
-
let idArr = res.results.bean.companyids.split(',').map((item) => {
|
|
555
|
-
return { showid: item };
|
|
556
|
-
});
|
|
557
|
-
let companyArr = nameArr.map((item, i) => {
|
|
558
|
-
item.showid = idArr[i].showid;
|
|
559
|
-
return item;
|
|
560
|
-
});
|
|
561
|
-
// this.formData.singleCompanyArray = companyArr;
|
|
562
|
-
this.$set(this.formData, 'singleCompanyArray', companyArr);
|
|
563
|
-
}
|
|
564
|
-
if (res.results.bean.errorToUser) {
|
|
565
|
-
let errorToUserArray = [
|
|
566
|
-
{
|
|
567
|
-
showname: res.results.bean.errorToUser,
|
|
568
|
-
showid: res.results.bean.errorToUserId
|
|
569
|
-
}
|
|
570
|
-
];
|
|
571
|
-
this.$set(this.formData, 'errorToUserArray', errorToUserArray);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
//补发时
|
|
575
|
-
if (this.reissue) {
|
|
576
|
-
delete this.formData.singleCompanyArray;
|
|
577
|
-
}
|
|
578
|
-
//查看时
|
|
579
|
-
if (this.readOnly) {
|
|
580
|
-
this.formData.tableName = {
|
|
581
|
-
shortName: res.results.bean.tableName,
|
|
582
|
-
cciValue: res.results.issueModule.tableNamecode
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
let businessMainList = res.results.businessMainList.map((item) => {
|
|
586
|
-
return { name: item.businessName, value: item.id };
|
|
587
|
-
});
|
|
588
|
-
this.filid = res.results.orgid;
|
|
589
|
-
this.businessMainList = businessMainList;
|
|
590
|
-
if (this.businessMainList.length == 1) {
|
|
591
|
-
this.$set(
|
|
592
|
-
this.formData,
|
|
593
|
-
'businessId',
|
|
594
|
-
this.businessMainList[0].value
|
|
595
|
-
);
|
|
596
|
-
}
|
|
597
607
|
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
608
|
+
this.formData.info =
|
|
609
|
+
'注:\n1、定时下发根据上次成功下发的规则,按报表类型顺次下发\n2、开始填报时间、结束填报时间,按照上次成功下发的报表,增加报表期相应的时间,首次下发则为当前选择的时间\n3、定时下发时间根据设置的时间,增加报表期相应的时间,首次触发定时则为设置的时间,根据实际使用情况可编辑更改';
|
|
610
|
+
} else {
|
|
611
|
+
return Message.error(res.msg);
|
|
612
|
+
}
|
|
613
|
+
})
|
|
614
|
+
.catch(() => {
|
|
615
|
+
loadingInstance.close();
|
|
616
|
+
});
|
|
604
617
|
ajax({
|
|
605
618
|
url: this.org,
|
|
606
619
|
params: { name: 'app_systemdufault_businesscode' }
|
|
607
|
-
})
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
620
|
+
})
|
|
621
|
+
.then((res) => {
|
|
622
|
+
if (res.rCode === 0) {
|
|
623
|
+
this.orgcenter = res.results;
|
|
624
|
+
} else {
|
|
625
|
+
return Message.error(res.msg);
|
|
626
|
+
}
|
|
627
|
+
})
|
|
628
|
+
.catch(() => {});
|
|
614
629
|
}
|
|
615
630
|
}
|
|
616
631
|
};
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
import { companyDetail } from 'eoss/src/config/api';
|
|
26
26
|
import { loading } from 'eoss/src/utils/util';
|
|
27
27
|
import { ajax } from 'eoss/src/utils/ajax';
|
|
28
|
+
import Message from 'eoss/packages/message';
|
|
28
29
|
|
|
29
30
|
import EsDataTable from 'eoss/packages/data-table';
|
|
30
31
|
export default {
|
|
@@ -77,14 +78,18 @@ export default {
|
|
|
77
78
|
ajax({
|
|
78
79
|
url: this.reportDetailUrl,
|
|
79
80
|
params: this.isActive == 1 ? this.ysbParam : this.wsbParam
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
})
|
|
82
|
+
.then((res) => {
|
|
83
|
+
loadingInstance.close();
|
|
84
|
+
if (res.rCode === 0) {
|
|
85
|
+
this.detailData = res.results;
|
|
86
|
+
} else {
|
|
87
|
+
return Message.error(res.msg);
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
.catch(() => {
|
|
91
|
+
loadingInstance.close();
|
|
92
|
+
});
|
|
88
93
|
},
|
|
89
94
|
handleTab(val) {
|
|
90
95
|
this.isActive = val;
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
import { loading } from 'eoss/src/utils/util';
|
|
89
89
|
import { ajax } from 'eoss/src/utils/ajax';
|
|
90
90
|
import { getStorage } from 'eoss/src/utils/storage';
|
|
91
|
+
import Message from 'eoss/packages/message';
|
|
91
92
|
|
|
92
93
|
import {
|
|
93
94
|
ruleListJson,
|
|
@@ -522,18 +523,22 @@ export default {
|
|
|
522
523
|
method: 'post',
|
|
523
524
|
url: `/${this.bootName}${ruleUndore}`,
|
|
524
525
|
data: { ids: id }
|
|
525
|
-
})
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
526
|
+
})
|
|
527
|
+
.then((res) => {
|
|
528
|
+
loadingInstance.close();
|
|
529
|
+
if (res.rCode === 0) {
|
|
530
|
+
Message({
|
|
531
|
+
type: 'success',
|
|
532
|
+
message: res.msg
|
|
533
|
+
});
|
|
534
|
+
this.$refs.detailTable.getData();
|
|
535
|
+
} else {
|
|
536
|
+
return Message.error(res.msg ? res.msg : '撤回失败');
|
|
537
|
+
}
|
|
538
|
+
})
|
|
539
|
+
.catch(() => {
|
|
540
|
+
loadingInstance.close();
|
|
541
|
+
});
|
|
537
542
|
},
|
|
538
543
|
handleRecall({ handle, row }) {
|
|
539
544
|
switch (handle.text) {
|
|
@@ -558,7 +563,7 @@ export default {
|
|
|
558
563
|
// 补发所选
|
|
559
564
|
reissueSelected() {
|
|
560
565
|
if (!this.multipleSelection || !this.multipleSelection.length) {
|
|
561
|
-
return
|
|
566
|
+
return Message.warning('您未勾选任何信息');
|
|
562
567
|
}
|
|
563
568
|
let ids = this.multipleSelection.map((item) => item.id).join(',');
|
|
564
569
|
this.reissueItem(ids);
|
|
@@ -569,18 +574,22 @@ export default {
|
|
|
569
574
|
url: `/${this.bootName}${supplement}`,
|
|
570
575
|
method: 'post',
|
|
571
576
|
data: { ids }
|
|
572
|
-
})
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
577
|
+
})
|
|
578
|
+
.then((res) => {
|
|
579
|
+
loadingInstance.close();
|
|
580
|
+
if (res.rCode === 0) {
|
|
581
|
+
Message({
|
|
582
|
+
type: 'success',
|
|
583
|
+
message: res.msg
|
|
584
|
+
});
|
|
585
|
+
this.$refs.detailTable.getData();
|
|
586
|
+
} else {
|
|
587
|
+
return Message.error(res.msg);
|
|
588
|
+
}
|
|
589
|
+
})
|
|
590
|
+
.catch(() => {
|
|
591
|
+
loadingInstance.close();
|
|
592
|
+
});
|
|
584
593
|
},
|
|
585
594
|
handleSelectionChange(val) {
|
|
586
595
|
this.multipleSelection = val;
|
|
@@ -702,40 +711,50 @@ export default {
|
|
|
702
711
|
companyid: getStorage('orgId'),
|
|
703
712
|
...res
|
|
704
713
|
}
|
|
705
|
-
})
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
})
|
|
715
|
+
.then((res) => {
|
|
716
|
+
loadingInstance.close();
|
|
717
|
+
if (res.rCode === 0) {
|
|
718
|
+
this.show = false;
|
|
719
|
+
this.row = '';
|
|
720
|
+
Message.success(res.msg);
|
|
721
|
+
this.$refs.table.getData();
|
|
722
|
+
} else {
|
|
723
|
+
return Message.error(res.msg);
|
|
724
|
+
}
|
|
725
|
+
})
|
|
726
|
+
.catch(() => {
|
|
727
|
+
loadingInstance.close();
|
|
728
|
+
});
|
|
716
729
|
},
|
|
717
730
|
deleteRule(id) {
|
|
718
731
|
this.$confirm('是否删除该规则?', '提示', {
|
|
719
732
|
confirmButtonText: '确定',
|
|
720
733
|
cancelButtonText: '取消',
|
|
721
734
|
type: 'warning'
|
|
722
|
-
})
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
735
|
+
})
|
|
736
|
+
.then(() => {
|
|
737
|
+
ajax({
|
|
738
|
+
method: 'post',
|
|
739
|
+
url: `/${this.bootName}${deleteRule}`,
|
|
740
|
+
data: { id: id }
|
|
741
|
+
})
|
|
742
|
+
.then((res) => {
|
|
743
|
+
if (res.rCode === 0) {
|
|
744
|
+
Message({
|
|
745
|
+
type: 'success',
|
|
746
|
+
message: res.msg
|
|
747
|
+
});
|
|
748
|
+
this.$refs.table.getData();
|
|
749
|
+
} else {
|
|
750
|
+
return Message.error(res.msg);
|
|
751
|
+
}
|
|
752
|
+
})
|
|
753
|
+
.catch(() => {
|
|
754
|
+
loadingInstance.close();
|
|
732
755
|
});
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
return this.$message.error(res.msg);
|
|
736
|
-
}
|
|
737
|
-
});
|
|
738
|
-
});
|
|
756
|
+
})
|
|
757
|
+
.catch(() => {});
|
|
739
758
|
},
|
|
740
759
|
// closeDialog() {
|
|
741
760
|
// this.$refs.formList.resetForm();
|
|
@@ -82,7 +82,8 @@ import {
|
|
|
82
82
|
scrollMove
|
|
83
83
|
} from 'eoss/src/utils/scrollbar';
|
|
84
84
|
import { throttle } from 'throttle-debounce';
|
|
85
|
-
import {
|
|
85
|
+
import { renderIcon } from 'eoss/src/utils/util';
|
|
86
|
+
import Message from 'eoss/packages/message';
|
|
86
87
|
|
|
87
88
|
import EsInput from 'eoss/packages/input';
|
|
88
89
|
/**
|
|
@@ -922,11 +923,11 @@ export default {
|
|
|
922
923
|
} else {
|
|
923
924
|
this.nodeData = null;
|
|
924
925
|
}
|
|
925
|
-
error(res.msg || res.message || '获取树数据失败'
|
|
926
|
+
Message.error(res.msg || res.message || '获取树数据失败');
|
|
926
927
|
}
|
|
927
928
|
})
|
|
928
929
|
.catch((err) => {
|
|
929
|
-
error('获取树数据失败'
|
|
930
|
+
Message.error('获取树数据失败');
|
|
930
931
|
resolve && resolve([]);
|
|
931
932
|
});
|
|
932
933
|
},
|
|
@@ -951,12 +952,12 @@ export default {
|
|
|
951
952
|
if (res.rCode === 0) {
|
|
952
953
|
this.nodeData = res.results;
|
|
953
954
|
} else {
|
|
954
|
-
error(res.msg || res.message || '获取树数据失败'
|
|
955
|
+
Message.error(res.msg || res.message || '获取树数据失败');
|
|
955
956
|
}
|
|
956
957
|
})
|
|
957
958
|
.catch((err) => {
|
|
958
959
|
this.loading = false;
|
|
959
|
-
error('获取树数据失败'
|
|
960
|
+
Message.error('获取树数据失败');
|
|
960
961
|
});
|
|
961
962
|
} else {
|
|
962
963
|
// 本地搜索时也需要更新滚动条
|
|
@@ -202,7 +202,7 @@ import { getStorage } from 'eoss/src/utils/storage';
|
|
|
202
202
|
import MessageBox from 'eoss/packages/message-box';
|
|
203
203
|
import ImageViewer from 'eoss/packages/image-viewer';
|
|
204
204
|
import { ajax, deleteFile } from 'eoss/src/utils/ajax';
|
|
205
|
-
import {
|
|
205
|
+
import { getWinTop } from 'eoss/src/utils/util';
|
|
206
206
|
import EsButton from 'eoss/packages/button';
|
|
207
207
|
import {
|
|
208
208
|
getAdjunctProperties,
|
|
@@ -217,6 +217,7 @@ import {
|
|
|
217
217
|
delAdjunct,
|
|
218
218
|
downloadByAdjunctId
|
|
219
219
|
} from 'eoss/src/config/api';
|
|
220
|
+
import Message from 'eoss/packages/message';
|
|
220
221
|
function noop() {}
|
|
221
222
|
|
|
222
223
|
export default {
|
|
@@ -1137,7 +1138,7 @@ export default {
|
|
|
1137
1138
|
}
|
|
1138
1139
|
} else {
|
|
1139
1140
|
let msg = res.msg || '系统错误,请联系管理员!';
|
|
1140
|
-
error(msg);
|
|
1141
|
+
Message.error(msg);
|
|
1141
1142
|
}
|
|
1142
1143
|
})
|
|
1143
1144
|
.catch((err) => {});
|
|
@@ -142,7 +142,9 @@ export default {
|
|
|
142
142
|
|
|
143
143
|
watch: {
|
|
144
144
|
/**
|
|
145
|
-
* 监听 keys
|
|
145
|
+
* 监听 keys 变化,重建子应用实现刷新(点菜单/刷新按钮的统一通道);
|
|
146
|
+
* url 变化不单独触发重建:换地址场景(如 fourthTabs)由调用方同时更新 keys,
|
|
147
|
+
* 避免 url+keys 同变时重建两次
|
|
146
148
|
*/
|
|
147
149
|
keys() {
|
|
148
150
|
this.refresh();
|
|
@@ -155,6 +157,10 @@ export default {
|
|
|
155
157
|
bus.$off(this.name);
|
|
156
158
|
}
|
|
157
159
|
this._clearTimer();
|
|
160
|
+
// 保活模式下沙箱不随组件卸载回收,页签关闭时主动销毁,避免沙箱常驻内存
|
|
161
|
+
if (this.alive) {
|
|
162
|
+
this.destroy();
|
|
163
|
+
}
|
|
158
164
|
},
|
|
159
165
|
|
|
160
166
|
methods: {
|