From 68338b19f9dc2ad9725326b7e699a3e191030cb8 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 24 八月 2023 17:27:59 +0800
Subject: [PATCH] 1.角色分配

---
 src/views/basicSettings/groupList.vue |   39 ++++++++++++++++++++++++++++++++-------
 1 files changed, 32 insertions(+), 7 deletions(-)

diff --git a/src/views/basicSettings/groupList.vue b/src/views/basicSettings/groupList.vue
index 4b7220d..89fc83d 100644
--- a/src/views/basicSettings/groupList.vue
+++ b/src/views/basicSettings/groupList.vue
@@ -14,10 +14,10 @@
           style="display: flex;"
         >
           <div class="elForm">
-            <el-form-item label="缁勭粐缂栫爜" style=" display: flex;">
+            <el-form-item label="鐝粍缂栫爜" style=" display: flex;">
               <el-input v-model="form.storg_code" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
-            <el-form-item label="缁勭粐鍚嶇О" style=" display: flex;">
+            <el-form-item label="鐝粍鍚嶇О" style=" display: flex;">
               <el-input v-model="form.storg_name" placeholder="璇疯緭鍏�" style="width: 200px" />
             </el-form-item>
           </div>
@@ -29,7 +29,24 @@
             <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
           </div>
         </el-form>
-
+        <div
+          class="bodyTopFormExpand"
+          style="height:5px"
+        >
+          <!--          <svg-icon-->
+          <!--            v-show="mouseHoverType==='mouseout'"-->
+          <!--            style="cursor: pointer"-->
+          <!--            :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"-->
+          <!--            @mouseenter="mouseHoverType=$event.type"-->
+          <!--          />-->
+          <!--          <svg-icon-->
+          <!--            v-show="mouseHoverType==='mouseenter'"-->
+          <!--            style="cursor: pointer"-->
+          <!--            :icon-class="!isExpandForm?'doubleDown':'doubleUp'"-->
+          <!--            @click="isExpandForm=!isExpandForm"-->
+          <!--            @mouseout="mouseHoverType=$event.type"-->
+          <!--          />-->
+        </div>
       </div>
 
       <div class="elTableDiv">
@@ -74,7 +91,7 @@
           </el-table-column>
           <el-table-column
             prop="description"
-            label="鐝粍鍚嶇О"
+            label="鎻忚堪"
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -82,7 +99,7 @@
             </template>
           </el-table-column>
           <el-table-column
-            prop="lm_user"
+            prop="username"
             label="鍒涘缓浜哄憳"
             sortable="custom"
           />
@@ -161,7 +178,13 @@
       <span slot="footer" class="dialog-footer">
         <div class="footerButton">
           <el-button v-waves @click="dialogVisibleCancel">鍙� 娑�</el-button>
-          <el-button v-waves type="primary" @click="dialogVisibleConfirm">纭� 瀹�</el-button>
+          <el-button
+            v-waves
+            type="primary"
+            :loading="$store.state.app.buttonIsDisabled"
+            :disabled="$store.state.app.buttonIsDisabled"
+            @click="dialogVisibleConfirm"
+          >纭� 瀹�</el-button>
         </div>
       </span>
     </el-dialog>
@@ -306,13 +329,15 @@
     dialogVisibleConfirm() {
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
-          // console.log(JSON.parse(JSON.stringify(this.dialogForm)), 1)
+          this.$store.state.app.buttonIsDisabled = true
           AddUpdateGroup(this.dialogForm).then(res => {
             if (res.code === '200') {
               this.$notify.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '淇敼鎴愬姛锛�')
               this.dialogVisible = false
               this.getGroupData()
+              this.$store.state.app.buttonIsDisabled = false
             } else {
+              this.$store.state.app.buttonIsDisabled = false
               this.$notify.error(this.operation === 'add' ? '娣诲姞澶辫触锛�' : '淇敼澶辫触锛�')
             }
           })

--
Gitblit v1.9.3