From 0905d4eaf3420f47db1a19c49413a157c65474f8 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 17 十月 2023 18:36:01 +0800
Subject: [PATCH] style: 页头/侧边栏/页面布局 样式调整

---
 src/views/overview/AddOverviewDialog.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue
index 6f9807e..7a943b6 100644
--- a/src/views/overview/AddOverviewDialog.vue
+++ b/src/views/overview/AddOverviewDialog.vue
@@ -409,20 +409,22 @@
     },
     // 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず
     setBottonView() {
+      console.log(this.editConfig.infomation.status)
       if (this.editConfig.title === "鏂板缓") {
         this.showButton = false
         this.showEdit = false
         this.showFooter = true
         this.isValidateClick = false
-      } else if (
-        this.editConfig.title === "鏌ョ湅" &&
-        (this.editConfig.infomation.status !== 4 || this.editConfig.infomation.status !== "瀹屾垚")
-      ) {
+      } else if (this.editConfig.title === "鏌ョ湅" && this.editConfig.infomation.status !== 4) {
         this.showButton = true
         this.showEdit = false
         this.isDelClick = true
         this.showFooter = false
-        this.isValidateClick = true
+        if (this.editConfig.infomation.status === "瀹屾垚") {
+          this.isValidateClick = false
+        } else {
+          this.isValidateClick = true
+        }
       } else if (this.editConfig.infomation.status === 4 || this.editConfig.infomation.status === "瀹屾垚") {
         this.showButton = true
         this.showEdit = false
@@ -545,7 +547,11 @@
     },
     // 鎿嶄綔鍒楄〃
     setTableForm() {
-      if (this.editConfig.title !== "鏂板缓") {
+      if (
+        this.editConfig.title !== "鏂板缓" &&
+        this.editConfig.infomation.details &&
+        this.editConfig.infomation.details.length > 0
+      ) {
         const list = this.editConfig.infomation.details.map((item) => {
           return {
             ...item,

--
Gitblit v1.8.0