From 6459f8bff3e568e65e6dc617f22c686cf5a8db44 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 15 七月 2024 16:35:06 +0800 Subject: [PATCH] 组卷 --- src/views/onlineEducation/systemManage/company/index.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/onlineEducation/systemManage/company/index.vue b/src/views/onlineEducation/systemManage/company/index.vue index cbb5355..13f6aaf 100644 --- a/src/views/onlineEducation/systemManage/company/index.vue +++ b/src/views/onlineEducation/systemManage/company/index.vue @@ -20,7 +20,7 @@ <el-table-column label="总课时(分)" prop="totalPeriodMin" align="center"/> <el-table-column label="课时变动详情" align="center" class-name="small-padding fixed-width" > <template #default="scope"> - <el-button link type="primary">查看详情</el-button> + <el-button link type="primary" @click="openDetail(scope.row)">查看详情</el-button> </template> </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" > @@ -41,6 +41,7 @@ /> <company-dialog ref="dialogRef" @getList=getList></company-dialog> + <class-hour-change ref="classHourRef" @getList=getList></class-hour-change> </div> </template> @@ -49,6 +50,7 @@ import {ElMessage, ElMessageBox} from "element-plus"; import {delCompany, getCompany} from "@/api/onlineEducation/company"; import companyDialog from "./components/companyDialog.vue"; +import classHourChange from '@/views/onlineEducation/classHourBatch/components/classHourChange.vue' const { proxy } = getCurrentInstance(); const loading = ref(false); @@ -63,7 +65,7 @@ }); const { queryParams, total, dataList } = toRefs(data); - +const classHourRef = ref(); onMounted(()=>{ getList() }) @@ -119,4 +121,7 @@ }) } +const openDetail = (val) => { + classHourRef.value.openDialog(val.id) +} </script> -- Gitblit v1.9.2