From 639195a3afb28438cfab77a2711e665c9f8a8ff0 Mon Sep 17 00:00:00 2001 From: wyx Date: Sun, 15 Jan 2023 17:38:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=9D=A2=E6=8E=88=E8=AF=BE=E3=80=81?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=AE=A1=E7=90=86=E8=AF=BE=E7=A8=8B=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 33 +++++++++++++-- src/views/examine/CourseReviewed.vue | 26 +++++++++++- src/views/examine/CourseReviewedN.vue | 42 ++++++++++++++++++-- 3 files changed, 91 insertions(+), 10 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 2fdaa91b..b2b6ef1b 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -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 { + console.log('我是点击搜索的数据',state.categoryId) // let datas = state.tableData1; let startTime = ""; let endTime = ""; diff --git a/src/views/examine/CourseReviewed.vue b/src/views/examine/CourseReviewed.vue index 0d4b8277..2104ca4d 100644 --- a/src/views/examine/CourseReviewed.vue +++ b/src/views/examine/CourseReviewed.vue @@ -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">