From 8f115311af95cb2fe0d7bee2d8a97dcbc059a263 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 22 八月 2024 10:59:03 +0800
Subject: [PATCH] 修改权限相关
---
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