防止修改权限连击
This commit is contained in:
parent
e6c6ada291
commit
6ed365124b
@ -288,6 +288,7 @@ function assignment(row: any) {
|
|||||||
const params = {
|
const params = {
|
||||||
roleId: rowid.value
|
roleId: rowid.value
|
||||||
}
|
}
|
||||||
|
isCombo.value = false
|
||||||
assignmentPer(params).then((res: any) => {
|
assignmentPer(params).then((res: any) => {
|
||||||
accessdata.value = res
|
accessdata.value = res
|
||||||
let ids: any = []
|
let ids: any = []
|
||||||
@ -310,6 +311,10 @@ function accesssubmit() {
|
|||||||
id: rowid.value,
|
id: rowid.value,
|
||||||
menuIds: Passparameter.value.toString()
|
menuIds: Passparameter.value.toString()
|
||||||
}
|
}
|
||||||
|
if(isCombo.value == true){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
isCombo.value = true
|
||||||
setMenuById(parans).then((res) => {
|
setMenuById(parans).then((res) => {
|
||||||
accessVisible.value = false
|
accessVisible.value = false
|
||||||
gettableData()
|
gettableData()
|
||||||
@ -317,7 +322,10 @@ function accesssubmit() {
|
|||||||
type: "success",
|
type: "success",
|
||||||
message: "修改成功",
|
message: "修改成功",
|
||||||
});
|
});
|
||||||
|
}).finally(() => {
|
||||||
|
isCombo.value = false
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user