heyujie
2022-05-05 13770fcc2dad1daa3534e4c4c5420e8d21904b29
save jump subuser list
3个文件已修改
20 ■■■■ 已修改文件
src/views/personalCenter/components/BasicInfo.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personalCenter/components/Content.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personalCenter/components/SubAccount.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {
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>
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
            >
            <!-- 解绑 -->
            <!-- <span class="iconfont option" @click="Untying(scope.row)"
              >解绑</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() {