From df829e4abba185437ba72229dd19ec57b1b2dccc Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Fri, 31 Oct 2025 09:05:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/testdata/testtask/index.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/web/src/views/testdata/testtask/index.vue b/web/src/views/testdata/testtask/index.vue index 48dae66..4b18753 100644 --- a/web/src/views/testdata/testtask/index.vue +++ b/web/src/views/testdata/testtask/index.vue @@ -373,9 +373,9 @@ onMounted(() => { const roles = res.data.roles const hasSingleMachineUser = roles.some(name => name === '单机用户'); if (hasSingleMachineUser) { - standAlone.value = true + standAlone.value = true } - }) + }) getdata() getDictOne() }); @@ -474,6 +474,10 @@ function reset() { getdata() } function importproject() { + fileList.value = [] + importForm.value.fileName = '' + importForm.value.localStorageId = '' + importForm.value.backupStorageId = '' getMaxTaskCode().then((res: any) => { if (res.data) { importForm.value.taskCode = res.data @@ -489,7 +493,6 @@ function fileChange(uploadFile, uploadFiles) { importForm.value.fileName = uploadFile.name fileList.value = [] fileList.value = [uploadFile.raw] - console.log(fileList.value, 999) } const isconnect = ref(false) function importSubmit(formEl: any) { @@ -499,7 +502,7 @@ function importSubmit(formEl: any) { if (fileList.value.length == 0) { return ElMessage.warning('请上传导入文件!') } - if (isconnect) { + if (isconnect.value) { return } const formData = new FormData() @@ -642,8 +645,8 @@ function importClose() { style="cursor: pointer;"> - +