From 462782f4b2ce653e84260ca586a58c8627c4ac9c Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期五, 18 十一月 2022 13:55:22 +0800
Subject: [PATCH] 1

---
 src/views/userManage/orgManage.vue |   45 ++++++++++++++-------------------------------
 1 files changed, 14 insertions(+), 31 deletions(-)

diff --git a/src/views/userManage/orgManage.vue b/src/views/userManage/orgManage.vue
index 3b0e144..5509134 100644
--- a/src/views/userManage/orgManage.vue
+++ b/src/views/userManage/orgManage.vue
@@ -141,17 +141,17 @@
             </el-form-item>
             <div class="btnBox" v-if="menuStatus.update">
               <el-button
-                class="el-button-sure"
-                type="primary"
+                style="
+                  background: #409eff;
+                  border: 1px solid #409eff;
+                  color: white;
+                "
                 @click="updDep('itemdetail')"
                 >{{ $t('common.submit') }}</el-button
               >
-              <el-button
-                class="el-button-sure"
-                type="primary"
-                @click="reset('itemdetail')"
-                >{{ $t('common.cancel') }}</el-button
-              >
+              <el-button @click="reset('itemdetail')">{{
+                $t('common.cancel')
+              }}</el-button>
             </div>
           </el-form>
         </div>
@@ -233,12 +233,11 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button class="el-button-sure" @click="resetForm('ruleForm')">{{
+        <el-button @click="resetForm('ruleForm')">{{
           $t('common.cancel')
         }}</el-button>
         <el-button
-          class="el-button-remove"
-          type="primary"
+          style="background: #409eff; border: 1px solid #409eff; color: white"
           @click="submitForm('ruleForm')"
           v-loading.fullscreen.lock="fullscreenLoading"
           >{{ $t('common.submit') }}</el-button
@@ -326,7 +325,7 @@
     };
   },
   methods: {
-    getDepTree() {
+    getMenuTree() {
       //鑾峰彇鐩綍鏍戞渶澶D锛屾柊寤鸿妭鐐逛娇鐢�
       // queryMaxId().then((res) => {
       //   this.id = res.data;
@@ -382,11 +381,12 @@
                     message: '娣诲姞鎴愬姛',
                     type: 'success',
                   });
-                  this.getMenuTree();
+
                   this.itemdetail = {};
                   this.ruleForm = {};
                   this.dialogFormVisible = false;
                   this.$refs[formName].resetFields();
+                  this.getMenuTree();
                 }
               }, 500);
             })
@@ -606,7 +606,7 @@
     },
   },
   mounted() {
-    this.getDepTree();
+    this.getMenuTree();
   },
   created() {
     var val = this.$store.state.currentPerms;
@@ -798,23 +798,6 @@
   }
   /deep/.el-form-item__label {
     color: white;
-  }
-  .el-button-sure {
-    width: 116px;
-    height: 40px;
-    background: linear-gradient(180deg, #002992, #080472);
-    border: 1px solid #000000;
-    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.21);
-    border-radius: 3px;
-  }
-  .el-button-remove {
-    width: 116px;
-    height: 40px;
-    background: linear-gradient(180deg, #002992, #080472);
-    border: 1px solid #000000;
-    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.21);
-    opacity: 0.5;
-    border-radius: 3px;
   }
 }
 </style>

--
Gitblit v1.9.3