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;"> - +