mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
fix:面授课、审核管理课程分类显示
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
" v-model:value="valueproj" show-search :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
|
||||
placeholder="请选择内容分类" allow-clear tree-default-expand-all :tree-data="options2222">
|
||||
placeholder="请选择内容分类" allow-clear tree-default-expand-all :tree-data="sysTypeOptions">
|
||||
<template #title="{ value: val, title }">
|
||||
<b v-if="val === '11111'" style="color: #08c">sss</b>
|
||||
<template v-else>{{ title }}</template>
|
||||
@@ -401,7 +401,28 @@ export default {
|
||||
|
||||
const store = useStore();
|
||||
|
||||
const sysTypeOptions = computed(() => store.state.sysType);
|
||||
const sysTypeOptions = computed(() => formateDictT(store.state.sysType));
|
||||
|
||||
// 处理数据字典
|
||||
function formateDictT(data) {
|
||||
for(let i=0;i<data.length;i++){
|
||||
data[i].title = data[i].dictName;
|
||||
data[i].value = data[i].dictCode;
|
||||
if(data[i].children.length!==0){
|
||||
for(let j=0;j<data[i].children.length;j++){
|
||||
data[i].children[j].title = data[i].children[j].dictName;
|
||||
data[i].children[j].value = data[i].children[j].dictCode;
|
||||
if(data[i].children[j].children.length!==0){
|
||||
for(let k=0; k<data[i].children[j].children.length; k++) {
|
||||
data[i].children[j].children[k].title = data[i].children[j].children[k].dictName;
|
||||
data[i].children[j].children[k].value = data[i].children[j].children[k].dictCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
function findClassFullName(list,classify,name=''){
|
||||
return list && list.length && list.map(e=>{
|
||||
@@ -515,6 +536,7 @@ export default {
|
||||
changePagination,
|
||||
showProjAuditModal,
|
||||
closeProjAuditModal,
|
||||
sysTypeOptions
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user