From 13770fcc2dad1daa3534e4c4c5420e8d21904b29 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期四, 05 五月 2022 11:48:27 +0800
Subject: [PATCH] save jump subuser list

---
 src/views/personalCenter/components/SubAccount.vue |   13 +++++--------
 src/views/personalCenter/components/Content.vue    |    6 ++++--
 src/views/personalCenter/components/BasicInfo.vue  |    1 +
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/views/personalCenter/components/BasicInfo.vue b/src/views/personalCenter/components/BasicInfo.vue
index 1622d8f..eb5bb7e 100644
--- a/src/views/personalCenter/components/BasicInfo.vue
+++ b/src/views/personalCenter/components/BasicInfo.vue
@@ -182,6 +182,7 @@
       entireUserInfo(this.userInfo)
         .then((res) => {
           this.$notify.success("璐︽埛淇℃伅淇濆瓨鎴愬姛");
+          // this.$emit("gotolist")
         })
         .catch((err) => {
           if (err && err.status == 401) {
diff --git a/src/views/personalCenter/components/Content.vue b/src/views/personalCenter/components/Content.vue
index a884994..01865be 100644
--- a/src/views/personalCenter/components/Content.vue
+++ b/src/views/personalCenter/components/Content.vue
@@ -3,7 +3,7 @@
     <LeftMenu @mChange="mChange"> </LeftMenu>
     <div class="right-content">
       <SubAccount v-if="activeIndex == 4"></SubAccount>
-      <BasicInfo v-if="activeIndex == 3"></BasicInfo>
+      <BasicInfo v-if="activeIndex == 3" @gotolist="gotolist"></BasicInfo>
       <OrderMng v-if="activeIndex == 1"></OrderMng>
     </div>
   </div>
@@ -51,7 +51,9 @@
     mChange(i) {
       this.activeIndex = i;
     },
-    // 鏌ヨ鍒楄〃
+    gotolist(){
+      this.mChange(4)
+    }
   },
 };
 </script>
diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue
index 46f5518..eee504c 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() {

--
Gitblit v1.8.0