From 29f113c066d8aae57d117bd04ffd2132dd739f4a Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 8 May 2024 16:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/modules/zy/zy.ts | 8 + .../renKeJiaoCheng/checkKecheng/dqxqkc.vue | 2 +- .../checkKecheng/dqxqkcMenu.vue | 12 +- src/views/zy/zyInfo/ZyInfoHistoryList.vue | 221 ++++++++++++++++++ src/views/zy/zyInfo/ZyInfoList.vue | 63 +++-- src/views/zy/zyInfo/components/ZyInfoForm.vue | 30 +++ .../zy/zyInfoStudent/ZyInfoStudent.data.ts | 5 + 7 files changed, 317 insertions(+), 24 deletions(-) create mode 100644 src/views/zy/zyInfo/ZyInfoHistoryList.vue diff --git a/src/router/routes/modules/zy/zy.ts b/src/router/routes/modules/zy/zy.ts index cf8d1da..f8e34ed 100644 --- a/src/router/routes/modules/zy/zy.ts +++ b/src/router/routes/modules/zy/zy.ts @@ -38,6 +38,14 @@ const zuoye: AppRouteModule = { title: '当前作业', }, }, + { + path: 'dqkcLszy', + name: 'dqkcLszy', + component: () => import('/@/views/zy/zyInfo/ZyInfoHistoryList.vue'), + meta: { + title: '历史作业', + }, + }, { path: 'dqkcGongju', name: 'dqkcGongju', diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue index b46ebff..2eb7db7 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue @@ -50,7 +50,7 @@ function toWeek(week){ function openKechengDetail(item){ console.log(`🚀 ~ openKechengDetail ~ item:`, item) - window.open(`/zy/dqkcDetail?rwbh=`+item.rwbh,"_blank"); + window.open('/zy/dqkcDetail?rwbh='+item.rwbh+'&xqxn='+getSysConfig().flag1+"&type=1","_blank"); } diff --git a/src/views/zy/zyInfo/ZyInfoList.vue b/src/views/zy/zyInfo/ZyInfoList.vue index b98e2bb..bcc1b12 100644 --- a/src/views/zy/zyInfo/ZyInfoList.vue +++ b/src/views/zy/zyInfo/ZyInfoList.vue @@ -37,21 +37,23 @@ - - - - {{item.title}} - 类型:{{item.zyType_dictText}} - 开始时间:{{item.startTime}} - 结束时间:{{item.endTime}} - 状态:{{item.zyStatus_dictText}} - 学年学期:{{item.xnxq}} - - 编辑 - 发布 - 详情 - 作业信息 - 上传 + + + + {{item.zyStatus_dictText}} + + + + 【{{item.zyType_dictText}}】{{item.title}} + + 时间:{{item.startTime}} - {{item.endTime}} + {{item.xnxq}}-{{item.xkxs}}人选课 + + 编辑 + 发布 + 详情 + 作业 + @@ -89,7 +91,7 @@ //当前路由信息 const { currentRoute } = useRouter(); const { query } = unref(currentRoute); - const { rwbh } = query;//获取传递参数 + const { rwbh,xqxn,type } = query;//获取传递参数 const APagination = Pagination; const { createConfirm,createMessage } = useMessage(); const queryParam = ref({}); @@ -145,7 +147,7 @@ function handleShangchuan(record){ ZyInfoStudentModalPage.value.disableSubmit = false; - var param = {mainId:record.id} + var param = {mainId:record.id,zyfj:record.filePath} ZyInfoStudentModalPage.value.edit(param); } @@ -202,6 +204,10 @@ queryParam.value.pageNo = pageNo; queryParam.value.pageSize = pageSize; queryParam.value.rwbh = rwbh; + queryParam.value.xqxn = xqxn; + queryParam.value.sflssj = '0'; + queryParam.value.column="startTime"; + queryParam.value.order="asc"; defHttp.get({ url: '/zyInfo/zyInfo/list', params: queryParam.value }).then(res => { console.log(`🚀 ~ defHttp.get ~ res:`, res) total.value = res.total; @@ -225,6 +231,7 @@ diff --git a/src/views/zy/zyInfo/components/ZyInfoForm.vue b/src/views/zy/zyInfo/components/ZyInfoForm.vue index 20584b2..788bdcb 100644 --- a/src/views/zy/zyInfo/components/ZyInfoForm.vue +++ b/src/views/zy/zyInfo/components/ZyInfoForm.vue @@ -17,6 +17,11 @@ + + + + + @@ -71,6 +76,7 @@ import { saveOrUpdate } from '../ZyInfo.api'; import { Form } from 'ant-design-vue'; import { useRouter } from 'vue-router'; + import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue'; //当前路由信息 const { currentRoute } = useRouter(); @@ -89,6 +95,7 @@ title: '', zyType: '0', content: '', + filePath: '', startTime: '', endTime: '', wwcc: '0', @@ -175,6 +182,29 @@ } } } + + if(model.wwcc=='1'){ + if(!model.wwtgl){ + createMessage.warning('外网通过率不能为空'); + confirmLoading.value = false; + return; + } + } + if(model.nwcc=='1'){ + if(!model.nwtgl){ + createMessage.warning('内网通过率不能为空'); + confirmLoading.value = false; + return; + } + } + if(model.aigccc=='1'){ + if(!model.aigctgl){ + createMessage.warning('AIGC通过率不能为空'); + confirmLoading.value = false; + return; + } + } + await saveOrUpdate(model, isUpdate.value) .then((res) => { if (res.success) { diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts index 9d350fe..a3002a5 100644 --- a/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts +++ b/src/views/zy/zyInfoStudent/ZyInfoStudent.data.ts @@ -9,6 +9,11 @@ export const columns: BasicColumn[] = [ align: "center", dataIndex: 'studentName' }, + { + title: '学生学号', + align: "center", + dataIndex: 'createBy' + }, { title: '作业附件', align: "center",