From c1cff08cdbcee3278c1ac8d8a3a067e3bf015202 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期三, 21 二月 2024 22:45:01 +0800
Subject: [PATCH] 提交新内容

---
 ruoyi-ui/src/views/pet/petnote.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/views/pet/petnote.vue b/ruoyi-ui/src/views/pet/petnote.vue
index 9de585f..d14094f 100644
--- a/ruoyi-ui/src/views/pet/petnote.vue
+++ b/ruoyi-ui/src/views/pet/petnote.vue
@@ -251,7 +251,7 @@
       name:'',
       disabled: false,
       loading: true,
-      formData:[],
+      formData:{},
       // 閫変腑鏁扮粍
       ids: [],
       // 闈炲崟涓鐢�
@@ -486,6 +486,7 @@
       this.formDat.url = ul+","+uls
       this.$refs["elForm"].validate(valid => {
         if (valid) {
+		//	alert(33)
           addPetnote(this.formDat).then(response => {
             this.$modal.msgSuccess("鏂板鎴愬姛");
             this.open = false;
@@ -501,11 +502,12 @@
     requestUpload(params)
     {
       var file = params.file;
-      var formData = new FormData();
-      formData.append('uploadFile', file);
+      var formData1 = new FormData();
+      formData1.append('uploadFile', file);
       let _this = this
+	//  alert(123)
 
-      uploadPic(formData).then(response => {
+      uploadPic(formData1).then(response => {
         let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
 
         if(_this.fot.includes(pth) === true)
@@ -527,6 +529,8 @@
           _this.formData.url = ul+","+uls
           console.log(_this.formData.url)
         //  alert(87)
+		const pid = _this.$route.params && _this.$route.params.id;
+		_this.formData.pid = pid
           updatenotePet(_this.formData).then(response => {
             this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛");
             // this.open = false;

--
Gitblit v1.9.1