From 3b08dfe999d6c93ec54f2e2535beda8047cd2625 Mon Sep 17 00:00:00 2001 From: wyx Date: Wed, 18 Jan 2023 22:24:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BC=96=E8=BE=91=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E6=97=B6=EF=BC=8C=E9=85=8D=E7=BD=AE=E8=80=83=E8=AF=95?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E9=83=BD=E4=B8=BA=E6=96=B0=E5=BB=BA=E8=80=83?= =?UTF-8?q?=E8=AF=95=E4=BF=AE=E6=94=B9=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=9C=A8=E5=8E=9F=E6=9D=A5=E8=80=83=E8=AF=95=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E4=B8=8A=E8=BF=9B=E8=A1=8C=E7=BC=96=E8=BE=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddTest.vue | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue index 93f843de..b1bff03b 100644 --- a/src/components/drawers/AddTest.vue +++ b/src/components/drawers/AddTest.vue @@ -309,8 +309,8 @@ import {message} from "ant-design-vue"; import { createExamination, queryExaminationDetailById, - updateExamination, } from "@/api/indexExam"; +// updateExamination, import STest from "./SelectTest.vue"; import {ProjectEditTask, RouterEditTask} from "@/api/indexTask"; import {addTempTask} from "../../api/indexTaskadd"; @@ -456,7 +456,7 @@ export default { console.log("props", props); if (props.addtestVisible && props.EditTestId && props.EditTestId >0) { // 该页面显示同时 edit为true 时,发送查询请求, - queryTest(); + // queryTest(); } if (bool) { state.test.showAnswers = 1; @@ -553,18 +553,18 @@ export default { } - if (props.EditTestId > 0) { - // 编辑任务 - updateExamination(state.test) - .then(async (res) => { - await updateTask(res); - // closeDrawer(); - }) - .catch(() => { - message.destroy(); - message.error(`编辑失败`); - }); - } else { + // if (props.EditTestId > 0) { + // // 编辑任务 + // updateExamination(state.test) + // .then(async (res) => { + // await updateTask(res); + // // closeDrawer(); + // }) + // .catch(() => { + // message.destroy(); + // message.error(`编辑失败`); + // }); + // } else { // 创建任务 createExamination(state.test) .then(async (res) => { @@ -575,7 +575,7 @@ export default { message.destroy(); message.error(`创建失败`); }); - } + // } }; const updateTask = (res) => { state.EditTestId = res.data.data.examinationId;