This commit is contained in:
zhoutianchi
2025-12-30 16:56:05 +08:00
parent f47d309192
commit 92a4bdb115
7 changed files with 34 additions and 10 deletions

View File

@@ -21,7 +21,7 @@
</template>
<script setup lang="ts">
// import {listAllRole} from '/@/api/admin/role'
import {listAllRole} from '/@/api/admin/role'
import {Local, Session} from '/@/utils/storage';
import {useMessage} from "/@/hooks/message";
// import {querySchoolName} from "/@/api/admin/tenant"
@@ -29,16 +29,16 @@ import {useMessage} from "/@/hooks/message";
const visible=ref(false)
const radio=ref('')
const allRole=reactive([])
const schoolName=ref('')
// const schoolName=ref('')
const open=()=>{
visible.value=true
// handleQuerySchoolName()
// listAllRole().then(res=>{
// Object.assign(allRole,res.data)
// radio.value=Local.get("roleCode")
// visible.value=true
// })
listAllRole().then(res=>{
Object.assign(allRole,res.data)
radio.value=Local.get("roleCode")
visible.value=true
})
}
const handleChangeRole=(label:any)=>{
let obj:any=allRole.find((v:any) => v.roleCode == label)