From db3d71b62fcd859bf5e2c75b107c1d28bd977632 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期日, 23 六月 2024 18:23:45 +0800 Subject: [PATCH] 修改了333之前的报错 --- ruoyi-ui/src/views/pet/petnote.vue | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/pet/petnote.vue b/ruoyi-ui/src/views/pet/petnote.vue index 9ecd134..99cddf2 100644 --- a/ruoyi-ui/src/views/pet/petnote.vue +++ b/ruoyi-ui/src/views/pet/petnote.vue @@ -749,6 +749,7 @@ ...this.queryParams }; + if (Object.keys(queryParams).length === 1 && 'pid' in queryParams) { this.download('/family/zfPetNote/export', queryParams, `zfPetNote_${new Date().getTime()}.xlsx`); } else { @@ -772,11 +773,12 @@ var file = params.file; var formData = new FormData(); formData.append('excelImport', file); - formData.append('pid', pid); // 娣诲姞瀵煎叆鍒板摢涓� ID 鐨勪俊鎭� - console.log(this.pid); + // formData.append('pid', pid); // 娣诲姞瀵煎叆鍒板摢涓� ID 鐨勪俊鎭� + // console.log(formData,'formDataformDataformData') + // alert(this.pid); let _this = this; - enload(formData) + enload(formData,this.pid) .then(response => { _this.getList(); Message({ message: "瀵煎叆鎴愬姛", type: 'warning' }); @@ -784,15 +786,17 @@ .catch(error => { Message({ message: "瀵煎叆澶辫触", type: 'error' }); }); - } + }, + // 寮圭獥 + handleShow(scope){ + + this.openDataScope = true + this.getList() + }, + }, - // 寮圭獥 - handleShow(scope){ - this.openDataScope = true - this.getList() - } }; </script> -- Gitblit v1.9.1