From de8f8ef6e87ebf0d207011b35a7f43e41200011d Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 05 六月 2025 13:52:46 +0800 Subject: [PATCH] 修改配置 --- src/views/performance/manHour/workTimeConfig.vue | 95 +++++++++++++++++------------------------------ 1 files changed, 34 insertions(+), 61 deletions(-) diff --git a/src/views/performance/manHour/workTimeConfig.vue b/src/views/performance/manHour/workTimeConfig.vue index 5364c89..d02ceba 100644 --- a/src/views/performance/manHour/workTimeConfig.vue +++ b/src/views/performance/manHour/workTimeConfig.vue @@ -1,37 +1,36 @@ <template> - <div class="work-time-config"> + <div class="capacity-scope"> <div class="search"> - <div class="search_thing"> - <div class="search_label">缂栧彿锛�</div> - <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.number" - @keyup.enter.native="refreshTable()"></el-input> - </div> + <div> + <el-form :model="queryParams" ref="queryParams" size="small" :inline="true"> + <el-form-item label="缂栧彿" prop="number"> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.number" + @keyup.enter.native="refreshTable()"></el-input> + </el-form-item> + <el-form-item label="瀹為獙瀹�" prop="laboratory"> + <el-select v-model="queryParams.laboratory" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()" clearable> + <el-option v-for="item in laboratoryList" :key="item.value" :label="item.label" :value="item.value"> + </el-option> + </el-select> + </el-form-item> + <el-form-item label="閮ㄩ棬" prop="department"> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.department" + @keyup.enter.native="refreshTable()"></el-input> + </el-form-item> + <el-form-item> + <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button> + <el-button size="mini" @click="refresh">閲嶇疆</el-button> + </el-form-item> + </el-form> </div> - <div class="search_thing"> - <div class="search_label">瀹為獙瀹わ細</div> - <el-select v-model="queryParams.laboratory" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()" clearable> - <el-option v-for="item in laboratoryList" :key="item.value" :label="item.label" :value="item.value"> - </el-option> - </el-select> + <div> + <el-button size="small" type="primary" @click="openAdd('鏂板')" + v-if="checkPermi(['performance:manHour:workTimeConfig:add'])">鏂� 澧�</el-button> </div> - <div class="search_thing"> - <div class="search_label">閮ㄩ棬锛�</div> - <div class="search_input"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.department" - @keyup.enter.native="refreshTable()"></el-input> - </div> - </div> - <div class="search_thing" style="padding-left: 30px"> - <el-button size="small" @click="refresh()">閲� 缃�</el-button> - <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button> - </div> - <el-button size="small" type="primary" style="position: absolute; right: 50px" @click="openAdd('鏂板')" - v-if="checkPermi(['performance:manHour:workTimeConfig:add'])">鏂� 澧�</el-button> </div> <div class="table"> - <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" - :height="'calc(100vh - 290px)'" @pagination="pagination"></lims-table> + <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 290px)'" + :page="page" @pagination="pagination"></lims-table> </div> <!-- 鏂板/缂栬緫 --> <el-dialog :title="title" :visible.sync="timeDia" width="500px"> @@ -112,7 +111,6 @@ { label: "澶囨敞", prop: "remarks" }, { dataType: "action", - fixed: "right", label: "鎿嶄綔", operation: [ { @@ -144,7 +142,7 @@ ], page: { total: 0, - size: 10, + size: 20, current: 0, }, tableLoading: false, @@ -277,9 +275,10 @@ }) .then(() => { deleteAuxiliaryWorkingHours({ id: row.id }).then((res) => { - if (res.code == 201) return; - this.$message.success("鍒犻櫎鎴愬姛"); - this.refresh(); + if (res.code == 200){ + this.$message.success("鍒犻櫎鎴愬姛"); + this.refresh(); + } }); }) .catch(() => { }); @@ -289,35 +288,9 @@ </script> <style scoped> -.work-time-config { - height: 100%; -} - .search { - background-color: #fff; - height: 80px; + height: 46px; display: flex; - align-items: center; -} - -.search_thing { - width: 250px; - display: flex; - align-items: center; -} - -.search_label { - width: 70px; - font-size: 14px; - text-align: right; -} - -.search_input { - width: calc(100% - 70px); -} - -.table { - padding: 10px; - padding-top: 0; + justify-content: space-between; } </style> -- Gitblit v1.9.3