From dd0ea31871a79cbc081bbb51dc9c14ce51ddc6c2 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期四, 27 七月 2023 21:41:05 +0800
Subject: [PATCH] 隐私详情

---
 ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue |  100 ++++++++++++++++++++++++-------------------------
 1 files changed, 49 insertions(+), 51 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
index 3fe4675..b660b35 100644
--- a/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
+++ b/ruoyi-ui/src/views/selfeconomy/selfeconomyInfo.vue
@@ -2,7 +2,7 @@
     <div class="app-container">
       <div class="form-header mt">
         <h4 class="dt h4">涓汉璐骇璇︾粏淇℃伅 </h4>
-      
+
       </div>
       <div style="padding-left:15px">
         <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="120px">
@@ -21,9 +21,9 @@
                   </el-input>
                 </el-form-item>
               </el-cow>
-  
+
               <el-cow >
-                <el-form-item label="鏀舵敮鍚嶇О" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
+                <el-form-item label="鑾峰緱鏂瑰紡" prop="incomeName" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
                   <el-input v-model="formData.incomeName" placeholder="璇疯緭鍏ユ敹鏀悕绉�" clearable :style="{width: '100%'}" :disabled="dsb">
                   </el-input>
                 </el-form-item>
@@ -114,11 +114,11 @@
                 <i class="el-icon-delete"></i>
               </span>
             </span>
-  
-  
+
+
             </div>
           </el-upload>
-  
+
           <!--<h4 class="form-header">鍏朵粬闄勪欢 </h4>
           <el-upload
             action=""
@@ -126,7 +126,7 @@
             class="upload-demo"
             multiple
             :on-preview="handlePreview"
-  
+
             :on-remove="handleRemove"
             :http-request="requestUpload"
             :show-file-list="true"
@@ -136,8 +136,8 @@
               <div class="el-upload__tip">
               </div>
             </template>
-  
-  
+
+
           </el-upload>-->
           <h4 class="form-header">鍏朵粬闄勪欢 </h4>
           <el-upload
@@ -147,11 +147,11 @@
             multiple
             list-type="picture-card"
             :on-preview="handleFileCardPreview"
-            :on-remove="handleRemove"
+            :on-remove="handleRemoveFile"
             :http-request="requestUpload"
             :show-file-list="true"
           >
-  
+
             <i slot="default" class="el-icon-plus"></i>
             <div slot="file" slot-scope="{file}">
               <img
@@ -170,12 +170,11 @@
                       </span>
                       <span
                         v-if="isShow"
-                        @click="handleRemove(file)"
                         class="el-upload-list__item-delete"
-  
+                        @click="handleDownload(file.url)"
                       >
-                        <i class="el-icon-download"></i>
-                      </span>
+                 <i class="el-icon-download"></i>
+                 </span>
                       <span
                         v-if="isShow"
                         class="el-upload-list__item-delete"
@@ -184,34 +183,34 @@
                         <i class="el-icon-delete"></i>
                       </span>
                     </span>
-  
-  
+
+
             </div>
-  
-  
+
+
           </el-upload>
-  
+
           <el-form-item size="large">
             <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb" >淇敼</el-button>
           </el-form-item>
         </el-form>
       </div>
-  
+
       <el-dialog  :visible.sync="dialogVisible">
         <img w-full :src="dialogImageUrl"    style="width: 700px; height: 700px" alt="Preview Image" />
       </el-dialog>
-  
-  
+
+
     </div>
   </template>
-  
+
   <script>
-  
+
   import {blobValidate} from "@/utils/ruoyi";
   import errorCode from "@/utils/errorCode";
   import {Message} from "element-ui";
   import {getSelfEconomyInfo, updateSelfEconomy,download,uploadPic} from "@/api/selfeconomy/index";
-  
+
   export default {
     components: {},
     props: [],
@@ -223,14 +222,14 @@
         fileList:[
         ],
         fileListOther:[
-  
+
         ],
         dsb:true,
         btn:false,
         isShow:true,
-   
+
         selfeconomyList: [],
-  
+
         formData: {
           id:undefined,
           happenTime:undefined,
@@ -294,7 +293,7 @@
             message: '璇疯緭鍏ュ疄鐜伴毦搴�',
             trigger: 'blur'
           }],
-  
+
           remark: [{
             // required: true,
             message: '璇疯緭鍏ュ娉�',
@@ -329,7 +328,7 @@
         this.$route.meta.title = "涓汉璐骇璇︾粏淇℃伅";//鍒楄〃鐨勫悕绉�
         this.isShow=true
       }
-  
+
       let _this = this
       if (id) {
         this.loading = true;
@@ -339,9 +338,9 @@
           for(let i = 0; i < paths.length; i++)
           {
             if(paths[i]!="") {
-  
+
               let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
-  
+
               if (_this.fot.includes(pth) === true)
                 _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
               else {
@@ -355,7 +354,7 @@
           this.loading = false;
         });
         // this.getCateInfor()
-  
+
       }
     },
     mounted() {},
@@ -379,10 +378,10 @@
           return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
         }).join(",")
         this.formData.url = ul+","+uls
-  
+
         this.$refs['elForm'].validate(valid => {
-  
-  
+
+
           if (valid) {
             if (this.formData.id != undefined) {
               updateSelfEconomy(this.formData).then(response => {
@@ -392,7 +391,7 @@
               });
             } else {
               this.$modal.msgSuccess("淇敼澶辫触");
-  
+
             }
           }
         })
@@ -443,7 +442,7 @@
       },
       handleDownload(url) {
         var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
-  
+
         let lens = formData.path.split(".")
         let suffix = lens[lens.length-1]
         download(formData).then(async (response) => {
@@ -466,36 +465,36 @@
         var formData = new FormData();
         formData.append('uploadFile', file);
         let _this = this
-  
+
         uploadPic(formData).then(response => {
           let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
-  
+
           if(_this.fot.includes(pth) === true)
           {
             _this.fileList.push({name:response.data.fileName, "url":response.data.url})
-  
+
           }
-  
+
           else{
             _this.fileListOther.push({name:response.data.fileName, url:response.data.url})
-  
+
           }
         })
-  
+
       },
-  
+
       /** 瀵煎嚭鎸夐挳鎿嶄綔 */
       handleExport() {
         this.download('/zIdea/export', {
           ...this.queryParams
         }, `zIdea_${new Date().getTime()}.xlsx`)
       }
-  
+
     }
   }
-  
+
   </script>
-  
+
   <style scoped>
   .app-container{
     background-color: #FEF7FC;
@@ -506,7 +505,7 @@
   }
   .dt{
     display: block;
-  
+
   }
   .pt{
     right: 10px;
@@ -521,4 +520,3 @@
     color: #000000;
   }
   </style>
-  
\ No newline at end of file

--
Gitblit v1.9.1