From 16edb612abbfeafe6e4d2f3f8089b689e3c14456 Mon Sep 17 00:00:00 2001 From: lzhe <181968431@qq.com> Date: 星期四, 11 四月 2024 23:51:06 +0800 Subject: [PATCH] 1 --- src/views/master/person/main/personPost.vue | 34 ++++++---------------------------- 1 files changed, 6 insertions(+), 28 deletions(-) diff --git a/src/views/master/person/main/personPost.vue b/src/views/master/person/main/personPost.vue index 0d18ba3..c1312b3 100644 --- a/src/views/master/person/main/personPost.vue +++ b/src/views/master/person/main/personPost.vue @@ -2,7 +2,7 @@ * @Author: lzhe lzhe@example.com * @Date: 2024-03-26 10:28:33 * @LastEditors: lzhe lzhe@example.com - * @LastEditTime: 2024-04-09 20:46:11 + * @LastEditTime: 2024-04-10 15:44:08 * @FilePath: /smart-web/src/views/master/person/main/index.vue * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -16,11 +16,14 @@ </div> <div> <el-select v-model="postSearchData.status" placeholder="鐘舵��" class="searchStatus"> - <el-option v-for="item in statusList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" size="small"/> + <el-option key="1" label="鍚敤" value="1" size="small"/> + <el-option key="0" label="鍋滅敤" value="0" size="small"/> </el-select> <el-input v-model="postSearchData.keywords" style="width: 200px" size="small" placeholder="璇疯緭鍏ュ叧閿瓧杩涜杩囨护"> <template #append> - <el-button :icon="searchIcon" @click="searchPerson" /> + <el-button @click="getPost"> + <i class="el-icon"><svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"></path></svg></i> + </el-button> </template> </el-input> </div> @@ -71,7 +74,6 @@ data(){ return { totle: "0", - statusList: [], postSearchData: { current: 1, size: 15, @@ -80,16 +82,6 @@ keywords: "" }, isSaveing: false, - groups: [], - departmentFrom: { - department: "" - }, - departmentVisibleRules: { - department:[ - {required: true, message: '璇烽�夋嫨閮ㄩ棬'} - ] - }, - departmentVisible: false, dialog: { save: false }, @@ -102,7 +94,6 @@ }, mounted(){ - this.getStatus(); this.getPost(); }, components: { @@ -122,13 +113,6 @@ postHandleSuccess() { this.getPost(); }, - getStatus() { //鑾峰彇鍏ㄩ儴璐﹀彿 - this.$HTTP.get(`/api/blade-system/dict/dictionary?code=employee_status`).then(res=> { - if(res.code == 200) { - this.statusList = res.data; - } - }) - }, getPost() { //宀椾綅 this.$HTTP.get(`/api/blade-system/post/page?`+this.$TOOL.qsStringify(this.postSearchData)).then(res=> { if(res.code == 200) { @@ -136,9 +120,6 @@ this.totle = res.data.total; } }) - }, - departmentSubmit() { - this.departmentVisible=false; //閮ㄩ棬璋冩暣 }, //娣诲姞 addPerson(){ @@ -177,9 +158,6 @@ }) this.selectId = selStr.replace(/,$/, ''); this.delPersonModel = true; - }, - changeDepartment() { - this.departmentVisible = true; }, handleSizeChange(val) { console.log(`姣忛〉 ${val} 鏉); -- Gitblit v1.9.3