This commit is contained in:
zhangsir
2024-04-17 14:30:26 +08:00
parent 9b3b9accb1
commit c88cf51bbf

View File

@@ -1727,11 +1727,14 @@ import {downLoadZip} from "@/utils/zipdownload";
state.permissionId = ''
state.checkclick = []
}
const getByUserId = async () => {
await getByUserId().then(res=>{
// const getByUserIds = async () => {
// const roleCode = userInfo.value
// const roleId = roleCode.roleList.find(item=>item.roleCode=='quiz-admin') || null
// const isQuizAdmin = roleId ? 1 : 0
// await getByUserId({loginId:roleCode.userId,roleId,isQuizAdmin}).then(res=>{
})
}
// })
// }
const powerTrue = async () => {
state.powerStatus.permission = state.checkclick.join(",")
if(state.permissionId){
@@ -1748,6 +1751,7 @@ import {downLoadZip} from "@/utils/zipdownload";
message.success('启用成功')
listData()
saveListItem()
getByUserIds()
}
})
}
@@ -1785,7 +1789,7 @@ import {downLoadZip} from "@/utils/zipdownload";
powerSetting,
of_power,
powerTrue,
getByUserId,
getByUserIds,
textDeleteAdd,
searchStatusVal2,
serchList,