From 2b99047683332624832c1dfcae596e957a710b7d Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:20:49 +0800 Subject: [PATCH] bug修复 --- src/views/personalCenter/components/SubAccount.vue | 39 +++++++++++++++++++++++++++++---------- 1 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue index dc001bc..2de1e99 100644 --- a/src/views/personalCenter/components/SubAccount.vue +++ b/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"></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"> @@ -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) { -- Gitblit v1.8.0