From e7ccc3a38ee2b6a3c9576cb4b0f5ac3b6089945e Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Wed, 15 Jan 2025 17:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E4=BD=9C=E5=BC=8A=E3=80=81=E4=BA=92?= =?UTF-8?q?=E8=AF=84=E8=B0=83=E6=95=B4=EF=BC=9A=20=E4=BD=9C=E5=BC=8A?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=20=E6=94=BE=E5=88=B0=E6=B5=8B=E9=AA=8C?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E9=87=8C=20=E8=AF=BE=E7=A8=8B=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E4=BF=9D=E5=AD=98=E6=97=B6=20=E4=BA=92=E8=AF=84=20?= =?UTF-8?q?=E5=92=8C=E6=9F=A5=E9=87=8D=20=E5=90=A6=E6=97=B6=E6=B8=85?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E4=BD=9C=E7=AD=94=E6=97=B6=E9=99=90?= =?UTF-8?q?=E5=90=8E=E5=8A=A0=E6=8F=90=E7=A4=BA=20=E9=99=90=E6=97=B6?= =?UTF-8?q?=E5=A4=9A=E5=B0=91=E5=88=86=E9=92=9F=E5=86=85=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=8C=E8=B6=85=E8=BF=87=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=88=99=E7=AE=97=E4=B8=80=E6=AC=A1=E4=BD=9C=E5=BC=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kc/wjxCswj/WjxCywjV2List.vue | 4 +- .../components/WjxWjxxTmlbAllDjjgsList.vue | 91 +++++++++++++++++-- src/views/zy/zyInfo/ZyInfoV2List.vue | 23 ++--- 3 files changed, 93 insertions(+), 25 deletions(-) diff --git a/src/views/kc/wjxCswj/WjxCywjV2List.vue b/src/views/kc/wjxCswj/WjxCywjV2List.vue index f40fa27..c1d396a 100644 --- a/src/views/kc/wjxCswj/WjxCywjV2List.vue +++ b/src/views/kc/wjxCswj/WjxCywjV2List.vue @@ -155,7 +155,7 @@ - + 限时多少分钟内进行提交,超过时间则算一次作弊。 @@ -622,7 +622,7 @@ - 保存2 + 保存 返回 diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbAllDjjgsList.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbAllDjjgsList.vue index 00eec3f..39d701b 100644 --- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbAllDjjgsList.vue +++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbAllDjjgsList.vue @@ -1,5 +1,5 @@ @@ -62,6 +72,8 @@ import { list, getExportUrl } from './WjxWjxxTmlbDjjgs.api'; import WjxWjxxTmlbDjjgModal from '/@/views/kc/wjxWjxx/components/WjxWjxxTmlbDjjgModal.vue'; import ZgtpfModal from '/@/views/kc/wjxWjxx/components/ZgtpfModal.vue'; +const wgxxOpen = ref(false) +const wgxxData = ref([]) const queryParam = ref({}); const isFinished = ref(''); const toggleSearchStatus = ref(false); @@ -162,6 +174,14 @@ function handleHqjg(record){ }) } +async function handleWeiGui(info){ + wgxxData.value = [] + let res = await defHttp.get({ url: '/wjxDjxxFzbtj/wjxDjxxFzbtj/list', params: { vid: info.vid, createBy: info.userId, pageNo: 1, pageSize: -1 } }); + console.log("🎅 ~ handleWeiGui ~ res:", res) + wgxxData.value = res.records + wgxxOpen.value = true +} + /** * 操作栏 */ @@ -172,6 +192,11 @@ function getTableAction(record) { label: '答卷结果', onClick: handlePeizhiDjjg.bind(null, record), }, + { + label: '违规信息', + onClick: handleWeiGui.bind(null, record), + ifShow:record.zbcs > 0 + }, // { // label: '获取结果', // onClick: handleHqjg.bind(null, record), @@ -220,4 +245,50 @@ defineExpose({ text-align: center; } } + +.timeline { + position: relative; + padding-left: 40px; /* 调整左侧内边距以适应新的时间点位置 */ + padding-bottom: 20px; +} + +.timeline::before { + content: ''; + position: absolute; + width: 2px; /* 灰线变细 */ + height: calc(100% - 40px); + background-color: #dfe1e6; + top: 8px; /* 确保灰线上下有适当的间距 */ + bottom: 8px; /* 确保灰线下方也有相同的间距 */ + left: 55px; /* 让灰线从时间点的中心穿过:14px (时间点左边距) + 6px (时间点半径) = 20px */ + z-index: 1; +} + +.timeline-item { + margin-top: 25px; + margin-bottom: 25px; + position: relative; +} + +.timeline-item:last-child { + margin-bottom: 0; +} + +.timeline-point { + width: 10px; /* 圆点大小 */ + height: 10px; /* 圆点大小 */ + background-color: #1890ff; + border-radius: 50%; + position: absolute; + top: 4px; /* 保持时间点的垂直位置以对齐文本 */ + left: 17px; /* 设置时间点距离左边界的距离,使其中心与灰线对齐 */ + transform: translateX(-50%); /* 将时间点中心对齐灰线 */ + z-index: 2; + box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2); /* 添加阴影效果 */ +} + +.timeline-content { + padding-left: 28px; /* 减少左侧内边距,使内容更贴近时间点 */ + line-height: 1.5715; /* 设置行高,确保文本对齐 */ +} diff --git a/src/views/zy/zyInfo/ZyInfoV2List.vue b/src/views/zy/zyInfo/ZyInfoV2List.vue index 3232806..349d44a 100644 --- a/src/views/zy/zyInfo/ZyInfoV2List.vue +++ b/src/views/zy/zyInfo/ZyInfoV2List.vue @@ -967,10 +967,15 @@ async function handleBohui(record: Recordable) { okText: '确认', cancelText: '取消', onOk: async () => { - let stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuIdById', data: { zyinfoId: record.mainId, xh: record.createBy } }) - stuZyIds.forEach(async stu => { - await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: stu.id } }) - }) + let zyinfo = await defHttp.get({ url: '/zyInfo/zyInfo/queryById', params: { id: record.mainId } }) + if(zyinfo.xzxstjzy == 'Y'){ + let stuZyIds = await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/getZyStuIdById', data: { zyinfoId: record.mainId, xh: record.createBy } }) + stuZyIds.forEach(async stu => { + await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: stu.id } }) + }) + }else{ + await defHttp.post({ url: '/zyInfoStudent/zyInfoStudent/editBohui', params: { id: record.id } }) + } createMessage.success('作业驳回成功!') handleSuccess(); }, @@ -1414,14 +1419,7 @@ async function submitForm() { return; } } - } else { - //如果不进行查重,则强制清空查重配置数据 - model.wwtgl = null; - model.wwcc = null; - model.xncc = null; - model.nwcc = null; - model.aigccc = null; - } + } var xshpkssj = model.xshpkssj; var xshpjssj = model.xshpjssj; @@ -1456,7 +1454,6 @@ async function submitForm() { return; } } - await saveOrUpdate(model, isUpdate.value) .then((res) => { if (res.success) {