From b2f9340443b60b9f3912bdab6a1daa8f61471c02 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 16 五月 2023 03:24:16 +0800
Subject: [PATCH] 修改家庭收支台账bug

---
 ruoyi-ui/src/views/contacts/contactsInfo.vue |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/ruoyi-ui/src/views/contacts/contactsInfo.vue b/ruoyi-ui/src/views/contacts/contactsInfo.vue
index 28d001c..8c5959b 100644
--- a/ruoyi-ui/src/views/contacts/contactsInfo.vue
+++ b/ruoyi-ui/src/views/contacts/contactsInfo.vue
@@ -2,7 +2,7 @@
   <div class="app-container">
     <div class="form-header mt">
       <h4 class="dt h4">閫氳褰曡缁嗕俊鎭� </h4>
-      <el-button v-if="isShow" type="primary" class="pt"  icon="el-icon-edit" @click="handleEdit()" >缂栬緫</el-button>
+<!--      <el-button v-if="isShow" type="primary" class="pt"  icon="el-icon-edit" @click="handleEdit()" >缂栬緫</el-button>-->
 <!--      <br>-->
 <!--      <el-button type="primary" class="pt"   @click="handleExport"-->
 <!--                 v-hasPermi="['self:user:export']" >瀵煎嚭</el-button>-->
@@ -46,12 +46,7 @@
         </el-input>
       </el-form-item>
       <el-form-item label="鏄惁甯歌仈绯�" prop="isAlways">
-        <el-input v-model="formData.isAlways" placeholder="鏄惁甯歌仈绯�" clearable :style="{width: '100%'}" :disabled="dsb">
-<!--          <template slot-scope="scope">-->
-<!--            <span v-if="scope.row.isAlways===1">鏄�</span>-->
-<!--            <span v-if="scope.row.isAlways===0">鍚�</span>-->
-<!--            <span v-if="scope.row.isAlways== null">鈥斺��</span>-->
-<!--          </template>-->
+        <el-input v-model="formData.isAlways === 1 ? '鏄�':'鍚�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb">
         </el-input>
       </el-form-item>
       <el-form-item label="澶囨敞锛堟槸鍚﹀瓨鍦ㄩ噾閽卞叧绯伙級" prop="remark">
@@ -78,20 +73,21 @@
           >
           <span class="el-upload-list__item-actions">
         <span
+          v-if="isShow"
           class="el-upload-list__item-preview"
           @click="handlePictureCardPreview(file)"
         >
           <i class="el-icon-zoom-in"></i>
         </span>
         <span
-          v-if="!disabled"
+          v-if="isShow"
           class="el-upload-list__item-delete"
           @click="handleDownload(file.url)"
         >
           <i class="el-icon-download"></i>
         </span>
         <span
-          v-if="!disabled"
+          v-if="isShow"
           class="el-upload-list__item-delete"
           @click="handleRemove(file)"
         >
@@ -103,10 +99,10 @@
         </div>
       </el-upload>
 
-     
+
 
       <el-form-item size="large">
-        <el-button type="primary" @click="submitForm" :disabled="dsb">淇敼</el-button>
+        <el-button  v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">淇敼</el-button>
       </el-form-item>
     </el-form>
 
@@ -208,12 +204,14 @@
       jd =  this.$route.query.detail
       this.btn= jd
       this.dsb = !jd
+      this.isShow=true
       document.title = "淇敼閫氳褰曡缁嗕俊鎭�";
       this.$route.meta.title = "淇敼閫氳褰曡缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
     }
     else{
       document.title = "鏌ョ湅閫氳褰曡缁嗕俊鎭�";
       this.$route.meta.title = "鏌ョ湅閫氳褰曡缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
+      this.isShow=false
     }
 
     let _this = this

--
Gitblit v1.9.1