| | |
| | | |
| | | <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" |
| | |
| | | <span class="iconfont"></span> |
| | | <span>添加子账号</span> |
| | | </div> |
| | | <div class="button export" @click="isShowRelate = true"> |
| | | <!-- <div class="button export" @click="isShowRelate = true"> |
| | | <span class="iconfont"></span> |
| | | <span>关联子账号</span> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | |
| | | <div class="table-area"> |
| | |
| | | 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="用户类型"> |
| | |
| | | durationArr: [ |
| | | { |
| | | value: 1, |
| | | label: "一年", |
| | | label: "1年", |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: "两年", |
| | | label: "2年", |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: "三年", |
| | | label: "3年", |
| | | }, |
| | | ], //所属集群下拉框 |
| | | timeLength: null, //选中的授权时长 |
| | |
| | | isChangePwd: false, |
| | | industryId: "", |
| | | address: [], |
| | | authDuration: "", |
| | | authDuration: 1, |
| | | areaId: "", |
| | | provinceId: "", |
| | | menuIds: [], |
| | |
| | | industryId: "", |
| | | areaId: "", |
| | | provinceId: "", |
| | | authDuration: "", |
| | | authDuration: 1, |
| | | }; |
| | | this.$nextTick(() => { |
| | | this.$refs.treeMenus.setCheckedKeys([]); |
| | |
| | | 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) { |
| | |
| | | inputText: this.inputText, |
| | | page: this.page, |
| | | size: this.size, |
| | | authDuration: this.timeLength, |
| | | }) |
| | | .then((res) => { |
| | | if (res.success) { |