From 74950c0450b24d0f1046450a6116d071c29b140d Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Tue, 06 Feb 2024 11:07:27 +0800
Subject: [PATCH] 巡查详情加上其他隐患问题

---
 src/views/publicSecurity/ninePlaceManage/situationRectification.vue |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/views/publicSecurity/ninePlaceManage/situationRectification.vue b/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
index 7f67ce8..cd2997d 100644
--- a/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
+++ b/src/views/publicSecurity/ninePlaceManage/situationRectification.vue
@@ -104,6 +104,16 @@
                     </div>
                 </div>
             </div>
+            <div class="question-list">
+                <div class="question-type" @click="flodRM()">
+                    <div class="type-name">
+                        {{ CNNum[rowDetail.remarkNo] }}、其他隐患问题
+                    </div>
+                    <div class="icon-box"><i class="el-icon-arrow-down" v-show="rowDetail.isShowRemark"></i><i
+                            class="el-icon-arrow-up" v-show="!rowDetail.isShowRemark"></i></div>
+                </div>
+                <div class="remark-box" v-show="rowDetail.isShowRemark">{{ rowDetail.remark }}</div>
+            </div>
         </el-drawer>
         <!-- 审核弹窗 -->
         <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%"
@@ -345,8 +355,15 @@
             this.visible = true
         },
 
+        // 折叠问题列表
         flodQL (index) {
             this.rowDetail.qTypeList[index].isShowQList = !this.rowDetail.qTypeList[index].isShowQList
+            this.refreshNum += 1
+        },
+
+        // 折叠其他
+        flodRM () {
+            this.rowDetail.isShowRemark = !this.rowDetail.isShowRemark
             this.refreshNum += 1
         },
 
@@ -400,7 +417,10 @@
                 newArr.push({ questionName: part[0], questionList: part[1], isShowQList: true })
             })
             row.qTypeList = newArr
+            row.remarkNo = newArr.length
+            row.isShowRemark = true
             this.rowDetail = row
+            console.log('row', row)
             this.isDetail = true
         },
 
@@ -785,5 +805,13 @@
             }
         }
     }
+
+    .remark-box {
+        padding: 10px;
+        background-color: #f5f7fa;
+        border-radius: 8px;
+        min-height: 40px;
+        margin-bottom: 20px;
+    }
 }
 </style>

--
Gitblit v1.9.3