From bf4cb195c34e79dae5576b21a215118b7ef1357f Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期四, 11 七月 2024 21:33:39 +0800 Subject: [PATCH] 修改了bug和用户管理配偶显示问题 --- ruoyi-ui/src/views/pet/petnote.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ruoyi-ui/src/views/pet/petnote.vue b/ruoyi-ui/src/views/pet/petnote.vue index 9ecd134..82c7f1d 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 { @@ -773,10 +774,11 @@ var formData = new FormData(); formData.append('excelImport', file); formData.append('pid', pid); // 娣诲姞瀵煎叆鍒板摢涓� ID 鐨勪俊鎭� - console.log(this.pid); + // console.log(formData,'formDataformDataformData') + // alert(this.pid); let _this = this; - enload(formData) + enload(this.pid,formData) .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