mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
fix:面授课、审核管理课程分类显示
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
tree-default-expand-all
|
||||
:fieldNames="{
|
||||
children: 'children',
|
||||
label: 'dictCode',
|
||||
value: 'dictName',
|
||||
title: 'dictName',
|
||||
value: 'dictCode',
|
||||
}"
|
||||
:tree-data="sysTypeOptions"
|
||||
>
|
||||
@@ -2352,6 +2352,7 @@ import TableStudent from "@/components/student/TableStudent";
|
||||
import FJUpload from "@/components/common/FJUpload";
|
||||
import { updateStudent } from "@/api/indexProjStu";
|
||||
import {useStore} from "vuex";
|
||||
|
||||
//列表表格
|
||||
const columns1 = [
|
||||
// {
|
||||
@@ -3283,7 +3284,7 @@ export default defineComponent({
|
||||
name: "",
|
||||
createName: "",
|
||||
auditStatus: null,
|
||||
categoryId: '',
|
||||
categoryId: undefined,
|
||||
projectTime: "",
|
||||
|
||||
//列表
|
||||
@@ -3542,7 +3543,30 @@ export default defineComponent({
|
||||
state.viewpowervisible = true;
|
||||
};
|
||||
|
||||
const sysTypeOptions = computed(() => store.state.sysType);
|
||||
const sysTypeOptions = computed(() => formateDictT(store.state.sysType));
|
||||
|
||||
// console.log('12344', sysTypeOptions)
|
||||
|
||||
// 处理数据字典
|
||||
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;
|
||||
}
|
||||
|
||||
// 富文本 sssssssssssssss
|
||||
// 编辑器实例,必须用 shallowRef
|
||||
@@ -3711,6 +3735,7 @@ export default defineComponent({
|
||||
|
||||
// 渲染列表1操作
|
||||
const getTableDate = async () => {
|
||||
console.log('我是点击搜索的数据',state.categoryId)
|
||||
// let datas = state.tableData1;
|
||||
let startTime = "";
|
||||
let endTime = "";
|
||||
|
||||
Reference in New Issue
Block a user