|
@@ -498,6 +498,9 @@ export default {
|
498
|
498
|
},
|
499
|
499
|
// 新建
|
500
|
500
|
toAdd() {
|
|
501
|
+ if (this.adminInfo.timer) {
|
|
502
|
+ clearInterval(this.adminInfo.timer);
|
|
503
|
+ }
|
501
|
504
|
this.adminInfo = {
|
502
|
505
|
show: true,
|
503
|
506
|
timer: null,
|
|
@@ -646,6 +649,9 @@ export default {
|
646
|
649
|
},
|
647
|
650
|
// 编辑
|
648
|
651
|
toEdit(row) {
|
|
652
|
+ if (this.adminInfo.timer) {
|
|
653
|
+ clearInterval(this.adminInfo.timer);
|
|
654
|
+ }
|
649
|
655
|
admin_detail({ adminid: row.adminid }).then((data) => {
|
650
|
656
|
if (data.code === 0) {
|
651
|
657
|
this.adminInfo = {
|