From 42636c58501d68650ef5323676eee3bdea292347 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 23 八月 2023 17:08:02 +0800
Subject: [PATCH] 1.组织架构优化
---
src/views/basicSettings/powerDivider.vue | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/views/basicSettings/powerDivider.vue b/src/views/basicSettings/powerDivider.vue
index eabdde9..5997ed7 100644
--- a/src/views/basicSettings/powerDivider.vue
+++ b/src/views/basicSettings/powerDivider.vue
@@ -46,6 +46,8 @@
<el-button
style="position: absolute;right: 15px;z-index:1;top:3px"
type="primary"
+ :loading="$store.state.app.buttonIsDisabled"
+ :disabled="$store.state.app.buttonIsDisabled"
@click="saveClick"
>淇� 瀛�
</el-button>
@@ -430,11 +432,14 @@
})
}
})
+ this.$store.state.app.buttonIsDisabled = true
+
const res = await RolePermissionSava(JSON.stringify(arr), rolecode, this.activeName)
if (res.code === '200') {
const rolename = this.treeLeft.find(i => i.code === rolecode).name
this.$notify.success(rolename + '鐨勮鑹叉潈闄愭彁浜ゆ垚鍔燂紒')
await this.getRolePermissionSearchRoleMenuButton(rolecode)
+ this.$store.state.app.buttonIsDisabled = false
}
},
// 鑾峰彇椤甸潰楂樺害
--
Gitblit v1.9.3