From bd40473c9c634005bc7e62e7fc901bcd8b598fa0 Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期五, 02 二月 2024 15:20:26 +0800
Subject: [PATCH] 提交了修改

---
 ruoyi-ui/src/views/pet/petInfo.vue |   46 +++++++++++++++++++++++++++-------------------
 1 files changed, 27 insertions(+), 19 deletions(-)

diff --git a/ruoyi-ui/src/views/pet/petInfo.vue b/ruoyi-ui/src/views/pet/petInfo.vue
index 0cb0c76..e0d5a8c 100644
--- a/ruoyi-ui/src/views/pet/petInfo.vue
+++ b/ruoyi-ui/src/views/pet/petInfo.vue
@@ -166,8 +166,10 @@
                     </el-upload>
             </el-col>
           </div>
+
 <!--          <el-button  v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">淇敼榄呭疇淇℃伅</el-button> -->
         </el-col>
+
       </div>
     </el-container>
 
@@ -259,11 +261,15 @@
         </div>
 
       </el-col>
+
     </div>
+    <div class="form-header mt">
 
 
-
-
+</div>
+    <div>
+        <el-button  v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">淇敼榄呭疇淇℃伅</el-button>
+    </div>
 
     <el-dialog  :visible.sync="dialogVisible">
       <img w-full :src="dialogImageUrl" alt="Preview Image" />
@@ -394,7 +400,10 @@
     return {
       cdi:"榄呭疇璇︾粏淇℃伅",
       udi:"榄呭疇淇℃伅淇敼",
-      fot:[".jpg",".jif"],
+      // 鏁版嵁鑼冨洿閫夐」
+      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
+        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
+
       fileList:[
       ],
       fileListOther:[
@@ -554,13 +563,16 @@
       jd =  this.$route.query.detail
       this.btn= jd
       this.dsb = !jd
-      document.title = "淇敼榄呭疇璇︾粏淇℃伅";
+      this.isShow = true
+
+     // document.title = "淇敼榄呭疇璇︾粏淇℃伅";
       this.$route.meta.title = "淇敼榄呭疇璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
     }
     else{
-      document.title = "鏌ョ湅榄呭疇璇︾粏淇℃伅";
+     // document.title = "鏌ョ湅榄呭疇璇︾粏淇℃伅";
       this.$route.meta.title = "鏌ョ湅榄呭疇璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
       this.btn = false;
+      this.isShow = false;
     }
 
     let _this = this
@@ -570,7 +582,7 @@
       getPetList(id).then((response) => {
         this.petList = response.data;
         console.log(this.petList)
-        alert(this.petList.headPicture)
+     //   alert(this.petList.headPicture)
         this.loading = false;
       });
       // getPetowner(id).then((response) => {
@@ -588,15 +600,11 @@
       this.loading = true;
       //   this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
       //   this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
-
-      // console.log(this.queryParams)
       this.queryParams.pid = this.pid;
       //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
       listPetnote(this.queryParams).then(response => {
-          //  alert(123)
-          //   console.log(response.data)
           this.PetNoteList = response.data.data;
-          
+
           this.total = response.data.total;
           this.loading = false;
         }
@@ -620,14 +628,14 @@
     },
     submitForm() {
 
-      let ul = this.fileList1.map(function (elem){
-        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
-      }).join(",")
-      let uls = this.fileList2.map(function (elem){
-        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
-      }).join(",")
-      this.petList.headPicture = ul,
-        this.petList.fullPicture = uls,
+      // let ul = this.fileList1.map(function (elem){
+      //   return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      // }).join(",")
+      // let uls = this.fileList2.map(function (elem){
+      //   return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      // }).join(",")
+      // this.petList.headPicture = ul,
+      //   this.petList.fullPicture = uls,
         this.$refs['elForm'].validate(valid => {
 
 

--
Gitblit v1.9.1