From c003a5fb28554e2f37c431214dabf6f75f27cc29 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期三, 26 七月 2023 16:52:06 +0800
Subject: [PATCH] 除魅宠外其它模块的图片删除均已完善

---
 ruoyi-ui/src/views/selfeconomy/index.vue |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue
index 77702f5..78060e2 100644
--- a/ruoyi-ui/src/views/selfeconomy/index.vue
+++ b/ruoyi-ui/src/views/selfeconomy/index.vue
@@ -1,15 +1,14 @@
 <template>
     <div class="app-container">
       <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
-        <el-form-item label="" prop="phone wx qq twitter isAlways remark" >
+        <el-form-item label="" prop="type incomeName timeLimit happenTime " >
           <el-input
-            v-model:phone="queryParams.phone"
-            v-model:wx="queryParams.wx"
-            v-model:qq="queryParams.qq"
-            v-model:twitter="queryParams.twitter"
-            v-model:isAlways="queryParams.isAlways"
-            v-model:remark="queryParams.remark"
-            placeholder="鍦ㄢ�滅櫨骞村績鎰库�濅腑鎼滅储"
+            v-model:type="queryParams.type"
+            v-model:incomeName="queryParams.incomeName"
+            v-model:timeLimit="queryParams.timeLimit"
+            v-model:happenTime="queryParams.happenTime"
+
+            placeholder="鍦ㄢ�滆储浜р�濅腑鎼滅储"
             clearable
             style="width: 240px"
             @keyup.enter.native="handleQuery">
@@ -20,7 +19,7 @@
 
         </el-form-item>
 
-        <el-form-item label="鏃ユ湡">
+        <el-form-item label="鏃ユ湡" prop="happenTime">
           <el-date-picker
             v-model="dateRange"
             style="width:  197px;
@@ -333,7 +332,7 @@
             class="upload-demo"
             multiple
 
-            :on-remove="handleRemove"
+            :on-remove="handleRemoveFile"
             :http-request="requestUpload"
             :show-file-list="true"
           >
@@ -444,8 +443,8 @@
           pageSize: 10,
           type:undefined,
           incomeName:undefined,
-          beneficiary:undefined,
-          // happenTime:undefined,
+          timeLimit:undefined,
+          happenTime:undefined,
         },
         // searchVal:"",
 
@@ -574,7 +573,18 @@
       },
 
       handleRemove(file) {
-        alert(323)
+        for(let i = 0; i < this.fileList.length; i++)
+        {
+          if(this.fileList[i].url==file.url)
+            this.$delete(this.fileList,i);
+        }
+      },
+      handleRemoveFile(file) {
+        for(let i = 0; i < this.fileListOther.length; i++)
+        {
+          if(this.fileListOther[i].url==file.url)
+            this.$delete(this.fileListOther,i);
+        }
       },
       // 鍙栨秷鎸夐挳
       cancel() {
@@ -686,6 +696,12 @@
             });
           }
         });
+        // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
+        Object.keys(this.formDat).forEach(key => {
+          this.formDat[key] = '';
+        });
+        this.handleRemove(this.fileList[0]);
+        this.handleRemoveFile(this.fileListOther[0]);
       },
       requestUpload(params)
       {

--
Gitblit v1.9.1