From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期二, 25 十月 2022 14:53:57 +0800 Subject: [PATCH] 设备管理 样式调整 --- src/views/personalCenter/components/SubAccount.vue | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue index dc001bc..996cc34 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="鐢ㄦ埛绫诲瀷"> @@ -126,11 +135,11 @@ <el-form-item label="瀵嗙爜" prop="password"> <el-input v-model="ruleForm.password" style="width: 350px"></el-input> </el-form-item> - <el-form-item label="閲嶇疆瀵嗙爜"> + <!-- <el-form-item label="閲嶇疆瀵嗙爜"> <el-checkbox v-model="ruleForm.isChangePwd" >棣栨鐧婚檰淇敼瀵嗙爜</el-checkbox > - </el-form-item> + </el-form-item> --> <el-form-item label="鐢ㄦ埛绫诲瀷" prop="userType"> <el-radio v-model="ruleForm.userType" :label="1">涓汉</el-radio> <el-radio v-model="ruleForm.userType" :label="2">鍏徃</el-radio> @@ -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) { @@ -881,4 +900,4 @@ color: #0065ff; border-color: #0065ff; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0