ZZJ
2022-07-14 2b99047683332624832c1dfcae596e957a710b7d
src/views/personalCenter/components/SubAccount.vue
@@ -10,7 +10,11 @@
        <div class="cluster">
          授权时长
          <el-select v-model="timeLength" placeholder="请选择">
          <el-select
            @change="findUserList"
            v-model="timeLength"
            placeholder="请选择"
          >
            <el-option
              v-for="item in durationArr"
              :key="item.value"
@@ -33,10 +37,10 @@
        <span class="iconfont">&#xe614;</span>
        <span>添加子账号</span>
      </div>
      <div class="button export" @click="isShowRelate = true">
      <!-- <div class="button export" @click="isShowRelate = true">
        <span class="iconfont">&#xe614;</span>
        <span>关联子账号</span>
      </div>
      </div> -->
    </div>
    <div class="table-area">
@@ -52,14 +56,19 @@
            scope.$index + 1 + (page - 1) * size
          }}</template>
        </el-table-column>
        <el-table-column
        <!--  <el-table-column
          prop="trueName"
          label="姓名"
          show-overflow-tooltip
        ></el-table-column>
        ></el-table-column> -->
        <el-table-column
          prop="username"
          label="用户名"
          show-overflow-tooltip
        ></el-table-column>
        <el-table-column
          prop="phoneNum"
          label="手机号"
          show-overflow-tooltip
        ></el-table-column>
        <el-table-column prop="userType" label="用户类型">
@@ -291,15 +300,15 @@
      durationArr: [
        {
          value: 1,
          label: "一年",
          label: "1年",
        },
        {
          value: 2,
          label: "两年",
          label: "2年",
        },
        {
          value: 3,
          label: "三年",
          label: "3年",
        },
      ], //所属集群下拉框
      timeLength: null, //选中的授权时长
@@ -318,7 +327,7 @@
        isChangePwd: false,
        industryId: "",
        address: [],
        authDuration: "",
        authDuration: 1,
        areaId: "",
        provinceId: "",
        menuIds: [],
@@ -401,7 +410,7 @@
        industryId: "",
        areaId: "",
        provinceId: "",
        authDuration: "",
        authDuration: 1,
      };
      this.$nextTick(() => {
        this.$refs.treeMenus.setCheckedKeys([]);
@@ -436,6 +445,15 @@
            menuIds: this.ruleForm.menuIds,
            dataIds: this.ruleForm.dataIds,
          };
          if (typeof json.areaId === "string") {
            delete json.areaId;
          }
          if (typeof json.authDuration === "string") {
            delete json.authDuration;
          }
          saveSubUser(json)
            .then((res) => {
              if (res.success) {
@@ -460,6 +478,7 @@
        inputText: this.inputText,
        page: this.page,
        size: this.size,
        authDuration: this.timeLength,
      })
        .then((res) => {
          if (res.success) {