From 55937d47d7dc5ab7e09515a54b6ddf17aa997eeb Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 29 Aug 2024 13:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=9C=E4=B8=9A=E6=96=B0?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/zy/zyInfo/ZyInfoV2List.vue | 80 ++++++-- .../zy/zyInfo/components/ZyInfoDetailForm.vue | 21 ++ .../components/ZyInfoStudentForm.vue | 11 +- .../components/ZyInfoStudentPiyueForm.vue | 188 ++++++++++++++++++ .../components/ZyInfoStudentPiyueModal.vue | 75 +++++++ 5 files changed, 352 insertions(+), 23 deletions(-) create mode 100644 src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue create mode 100644 src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueModal.vue diff --git a/src/views/zy/zyInfo/ZyInfoV2List.vue b/src/views/zy/zyInfo/ZyInfoV2List.vue index 58306f0..1956971 100644 --- a/src/views/zy/zyInfo/ZyInfoV2List.vue +++ b/src/views/zy/zyInfo/ZyInfoV2List.vue @@ -264,7 +264,17 @@
查重设置
- + + + + + % - +
维普
@@ -544,6 +554,7 @@ + @@ -581,6 +592,7 @@ import { openByUrl } from '/@/utils/file/download'; import SzybStudentModal from '/@/views/zy/zyInfoStudent/components/SzybStudentModal.vue'; import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'; +import ZyInfoStudentPiyueModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueModal.vue'; import KcTeachingUnitContentOneListModal from '/@/views/zy/zyInfo/zyCheckZcjc/KcTeachingUnitContentOneListModal.vue'; import ZyInfoDetailModal from './components/ZyInfoDetailModal.vue'; @@ -619,6 +631,7 @@ const formRef = ref(); const confirmLoading = ref(false); const zyyqShow = ref(false); const pfbzShow = ref(false); +const sfccShow = ref(false); const editDisabled = ref(false); const queryType = ref(''); @@ -636,6 +649,7 @@ const ZyInfoStudentModalPage = ref(); const XxhbbksListModalPage = ref(); const registerEditModal = ref(); const registerDetialModal = ref(); +const registerPiyueModal = ref(); const pdfUrl = ref('/downPath/ylhpsf.pdf'); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ @@ -649,7 +663,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ pageSize: 10, }, actionColumn: { - width: '170px', + width: '200px', fixed: 'right', }, showTableSetting: true, @@ -833,9 +847,14 @@ function handleDown(text) { } //预览 function yulanFile(record) { - var url2 = getFileAccessHttpUrl(record.pdfPath); - let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2); - window.open(url, '_blank'); + if(record.pdfPath){ + var url2 = getFileAccessHttpUrl(record.pdfPath); + let url = baseApiUrl + '/generic/web/viewer.html?file=' + encodeURIComponent(url2); + window.open(url, '_blank'); + }else{ + createMessage.error('当前作业不支持预览,请下载后查阅!'); + } + } //驳回 function handleBohui(record: Recordable) { @@ -868,6 +887,12 @@ function handleScoreFabu(record: Recordable) { handleSuccess(); }); } +//教师批阅作业 +function handlepiyue(record: Recordable){ + registerPiyueModal.value.disableSubmit = false; + registerPiyueModal.value.edit(record); +} + /** * 操作栏 */ @@ -899,6 +924,10 @@ function getTableAction(record) { label: '驳回', onClick: handleBohui.bind(null, record), }, + { + label: '批阅', + onClick: handlepiyue.bind(null, record), + }, // { // label: record.score ? '修改评分' : '评分', // onClick: handleScore.bind(null, record), @@ -1195,22 +1224,32 @@ async function submitForm() { var xncc = model.xncc; var nwcc = model.nwcc; var aigccc = model.aigccc; + var sfcc = model.sfcc; console.log('🚶‍♂️', model); - if (wwtgl) { - if ((wwcc == false && xncc == false && nwcc == false && aigccc == false) || (!wwcc && !xncc && !nwcc && !aigccc)) { - createMessage.warning('您设置了检测通过率,但您没有设置查重比对库,请先设置查重比对库!'); - confirmLoading.value = false; - return; - } - console.log('1111111111', wwtgl, wwcc, xncc, aigccc); - } else { - console.log('22222222222', wwtgl, wwcc, xncc, aigccc); - if (wwcc == true || xncc == true || nwcc == true || aigccc == true || wwcc == 'true' || xncc == 'true' || nwcc == 'true' || aigccc == 'true') { - createMessage.warning('您设置了查重比对库,但您没设置检测通过率,请先设置检测通过率'); - confirmLoading.value = false; - return; + if(sfcc == '1'){//开启查重再进行验证,否则不进行验证 + if (wwtgl) { + if ((wwcc == false && xncc == false && nwcc == false && aigccc == false) || (!wwcc && !xncc && !nwcc && !aigccc)) { + createMessage.warning('您设置了检测通过率,但您没有设置查重比对库,请先设置查重比对库!'); + confirmLoading.value = false; + return; + } + console.log('1111111111', wwtgl, wwcc, xncc, aigccc); + } else { + console.log('22222222222', wwtgl, wwcc, xncc, aigccc); + if (wwcc == true || xncc == true || nwcc == true || aigccc == true || wwcc == 'true' || xncc == 'true' || nwcc == 'true' || aigccc == 'true') { + createMessage.warning('您设置了查重比对库,但您没设置检测通过率,请先设置检测通过率'); + confirmLoading.value = false; + 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; @@ -1433,6 +1472,9 @@ function handleEdit(record, type) { if (!record.sfzzcj) { record.sfzzcj = '1'; } + if (!record.sfcc) { + record.sfcc = '1'; + } if (!record.xssfck) { record.xssfck = '1'; } diff --git a/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue b/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue index 719cb8d..c9b2771 100644 --- a/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue +++ b/src/views/zy/zyInfo/components/ZyInfoDetailForm.vue @@ -80,6 +80,27 @@ + + +
+
批阅信息
+ + + +
+
+
+ + + {{ lastString(formData.pyFilePath) }} + 下载 + + +
+
+
+ + diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue index 7bf1d91..d7f95ec 100644 --- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue +++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue @@ -88,10 +88,13 @@ - - - - +
+ +
+
+ +
+ diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue new file mode 100644 index 0000000..31b8343 --- /dev/null +++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueForm.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueModal.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueModal.vue new file mode 100644 index 0000000..bea2ec8 --- /dev/null +++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentPiyueModal.vue @@ -0,0 +1,75 @@ + + + + +