From c7ec9e17f6e48335912bad1c07df56ba8eb8f662 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期四, 05 五月 2022 13:35:21 +0800
Subject: [PATCH] page subuser

---
 src/views/personalCenter/components/SubAccount.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue
index 46f5518..74eb946 100644
--- a/src/views/personalCenter/components/SubAccount.vue
+++ b/src/views/personalCenter/components/SubAccount.vue
@@ -82,14 +82,9 @@
 
         <el-table-column label="鎿嶄綔">
           <template slot-scope="scope">
-            <!-- 缂栬緫 -->
             <span class="iconfont option" @click="editUser(scope.row)"
               >缂栬緫</span
             >
-            <!-- 瑙g粦 -->
-            <!-- <span class="iconfont option" @click="Untying(scope.row)"
-              >瑙g粦</span
-            > -->
           </template>
         </el-table-column>
       </el-table>
@@ -371,7 +366,6 @@
       this.ruleForm.isChangePwd = row.isChangePwd;
       this.ruleForm.industryId = row.industryId;
       this.ruleForm.areaId = row.areaId;
-      debugger;
       this.ruleForm.address = [row.provinceId, row.areaId];
       this.ruleForm.provinceId = row.provinceId;
       this.ruleForm.authDuration = row.authDuration;
@@ -420,9 +414,12 @@
         menuIds: this.ruleForm.menuIds,
         dataIds: this.ruleForm.dataIds,
       };
-      debugger;
       saveSubUser(json).then((res) => {
-        debugger;
+        if (res.success) {
+          this.isShowAdd = false;
+          this.isEditing = false;
+          this.findUserList();
+        }
       });
     },
     findUserList() {
@@ -433,7 +430,12 @@
       }).then((res) => {
         if (res.success) {
           this.dataList = res.data.dataList;
+          this.total = res.data.total
+        }else{
+          this.$notify.error("鍔犺浇瀛愯处鎴峰垪琛ㄥけ璐�")
         }
+      }).catch((e) => {
+          this.$notify.error(e.msg)
       });
     },
     goback() {

--
Gitblit v1.8.0