From f112e2c62b6fca7b115dd37e34dc19dbcbc91d15 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 14:52:41 +0800
Subject: [PATCH] 样式优化

---
 src/views/standard/standardLibrary/index.vue |   63 +------------------------------
 1 files changed, 3 insertions(+), 60 deletions(-)

diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index 9d15c85..36e74a2 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -206,7 +206,8 @@
           height: calc(100% - 30px);
           overflow-y: scroll;
           scrollbar-width: none;
-        " @node-click="handleNodeClick" @node-expand="nodeOpen" @node-collapse="nodeClose" @node-drop="handleDrop">
+        " @node-click="handleNodeClick"
+               @node-drop="handleDrop">
         <div slot-scope="{ node, data }" class="custom-tree-node">
           <el-row style="width: 100%">
             <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">
@@ -777,7 +778,6 @@
           }
           this.selectTree = data2.replace(" - ", "");
           delStandardTree({ tree: this.selectTree }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("宸插垹闄�");
             let arr = this.selectTree.split(" - ");
             this.deleteStandard(this.list, arr[arr.length - 1]);
@@ -796,15 +796,6 @@
           item.children && this.deleteStandard(item.children, label);
         }
       });
-    },
-    nodeOpen(data, node, el) {
-      $($(el.$el).find(".node_i")[0]).attr(
-        "class",
-        "node_i el-icon-folder-opened"
-      );
-    },
-    nodeClose(data, node, el) {
-      $($(el.$el).find(".node_i")[0]).attr("class", "node_i el-icon-folder");
     },
     selectEnumByCategoryForFactory() {
       this.getConfigKey("sys_factory").then((response) => {
@@ -887,10 +878,6 @@
       this.addLoad = true;
       addStandardTree(this.addOb)
         .then((res) => {
-          if (res.code === 201) {
-            this.addLoad = false;
-            return;
-          }
           this.$message.success("娣诲姞鎴愬姛");
           this.addDia = false;
           this.list
@@ -924,10 +911,6 @@
       this.updateLoad = true;
       updateStandardTree(this.addOb)
         .then((res) => {
-          if (res.code === 201) {
-            this.updateLoad = false;
-            return;
-          }
           this.$message.success("娣诲姞鎴愬姛");
           this.$tab.refreshPage();
           // this.selectStandardTreeList();
@@ -961,10 +944,6 @@
           ask: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -975,10 +954,6 @@
           tell: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -990,10 +965,6 @@
           methodS: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -1005,10 +976,6 @@
           radius: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -1019,10 +986,6 @@
           price: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -1033,10 +996,6 @@
           manHour: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -1047,10 +1006,6 @@
           templateId: value,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
         this.$message.success("宸蹭繚瀛�");
       });
     },
@@ -1131,11 +1086,7 @@
           state: row.state,
         }),
       }).then((res) => {
-        if (res.code == 201) {
-          this.$message.error("鏈繚瀛�");
-          return;
-        }
-        // this.$message.success('宸蹭繚瀛�')
+        this.$message.success('宸蹭繚瀛�')
       });
     },
     filterHandler(value) {
@@ -1285,10 +1236,6 @@
           }),
         }).then((res) => {
           this.sectionLoad = false;
-          if (res.code == 201) {
-            this.$message.error("鏈繚瀛�");
-            return;
-          }
           this.$message.success("宸蹭繚瀛�");
           this.sectionUpDia = false;
         });
@@ -1307,10 +1254,6 @@
           },
         }).then((res) => {
           this.sectionLoad = false;
-          if (res.code == 201) {
-            this.$message.error("鏈繚瀛�");
-            return;
-          }
           this.$message.success("宸蹭繚瀛�");
           this.sectionUpDia = false;
           this.currentPage0 = 1;

--
Gitblit v1.9.3