From 14a8bde1fe1814d4ffb7c93563f244b3247f544b Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 11 Jun 2024 16:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Home/components/LockList.vue | 28 +----------------- src/pages/Home/index.vue | 41 +++++++++++++++++++++++--- src/utils/request/request.ts | 3 +- 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/src/pages/Home/components/LockList.vue b/src/pages/Home/components/LockList.vue index 518d1d6..04d4d07 100644 --- a/src/pages/Home/components/LockList.vue +++ b/src/pages/Home/components/LockList.vue @@ -53,33 +53,7 @@ const activeNames = ref([ "otherPoint", ]); const list = ref([]); -const getData = (data: any, templateInfo: any): void => { - // 效验 - let msg = ""; - if (!templateInfo.headList[2].point.length && !templateInfo.tailsList[2].point.length) { - msg = "考号未框选!"; - } - if (!templateInfo.headList[1].point.length && !templateInfo.tailsList[1].point.length) { - msg = "学科未框选!"; - } - if (templateInfo.hasPosition) { - if (templateInfo.imgSrc.length === 2) { - if ( - templateInfo.headList[0].point.length !== 4 || - templateInfo.tailsList[0].point.length !== 4 - ) { - msg = "定位点未框选完成!"; - } - } else { - if (templateInfo.headList[0].point.length !== 4) { - msg = "定位点未框选完成!"; - } - } - } - if (msg) { - ElMessage.error(msg); - return; - } +const getData = (data: any): void => { // 修改数据 changeData(data); // 显示弹窗内容 diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue index 92d6679..fdcf3bb 100644 --- a/src/pages/Home/index.vue +++ b/src/pages/Home/index.vue @@ -163,7 +163,11 @@ 保 存 - 锁 定 @@ -503,7 +507,7 @@