'考试管理人员管理'

This commit is contained in:
esacpe
2025-09-24 20:32:05 +08:00
parent 10a8094a3c
commit 6fe683e97e
11 changed files with 48 additions and 46 deletions

View File

@ -17,7 +17,7 @@ export function getDict(...args) {
getSysDictByCode({
dictCode: d
}).then(result => {
result.itemList.forEach(p => {
result?.itemList?.forEach(p => {
p.label = p.zdmc
p.value = p.dm
p.id = p.dm
@ -27,7 +27,7 @@ export function getDict(...args) {
}
p.children = p.itemList
})
res.value[d] = result.itemList
res.value[d] = result?.itemList
})
})
return toRefs(res.value);
@ -66,9 +66,9 @@ export function setCascader(id, array, childDeptList = 'childDeptList', fun) {
}
/**
* 当type=1时获取出生日期,type=2时获取性别,type=3时获取年龄 all
* @param {*} IdCard
* @param {*} type
* @returns
* @param {*} IdCard
* @param {*} type
* @returns
*/
export function IdCard(IdCard, type) {
let user = {