From 313a5b7ae2140d97068768b69a97208c462a8a3d Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Wed, 24 Jul 2024 14:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=A6=81=E7=94=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/control/offLineDataImport/index.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/govern/device/control/offLineDataImport/index.vue b/src/views/govern/device/control/offLineDataImport/index.vue index f97c028..4f4689a 100644 --- a/src/views/govern/device/control/offLineDataImport/index.vue +++ b/src/views/govern/device/control/offLineDataImport/index.vue @@ -9,11 +9,17 @@ @click="handleUpload" :loading="loading" size="small" - :disabled="disableHandleUpload" + :disabled="offLineFileList.length == 0 || disableHandleUpload" > 开始上传 - + 清空文件 @@ -101,13 +107,12 @@ const submitUpload = e => { offLineFileList.value.map((item: any) => { item.status = 0 }) + disableHandleUpload.value = false } - disableHandleUpload.value = false } //清空文件 const removeAllFile = () => { offLineFileList.value = [] - disableHandleUpload.value = true } //移除文件 const removeFile = async (file: any) => { @@ -138,6 +143,7 @@ const handleUpload = () => { }) // 操作数据后更新视图 updateKey.value += 1 + disableHandleUpload.value = true // return; uploadOffLineDataFile(subForm).then(res => { if (res.code == 'A0000') {