| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="filters" :inline="true"> |
| | | <el-form-item label="发放季度:" prop="season"> |
| | | <el-select |
| | | style="width: 200px;" |
| | | @change="handleQuery" |
| | | v-model="filters.season" |
| | | placeholder="请选择" |
| | | :clearable="false" |
| | | > |
| | | <el-option :label="item.label" :value="item.value" v-for="(item,index) in jidu" :key="item.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="员工名称:"> |
| | | <el-input |
| | | v-model="filters.staffName" |
| | |
| | | @pagination="changePage" |
| | | > |
| | | <template #operation="{ row }"> |
| | | <el-button type="primary" text @click="edit(row)" icon="editPen"> |
| | | <el-button type="primary" link @click="edit(row)"> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button type="primary" :disabled="row.adoptedDate ? true : false" text @click="adopted(row)"> |
| | | <el-button type="success" :disabled="row.adoptedDate ? true : false" link @click="adopted(row)"> |
| | | 领用 |
| | | </el-button> |
| | | </template> |
| | |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | import dayjs from "dayjs"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | import { getCurrentMonth } from "@/utils/util" |
| | | |
| | | // 表格多选框选中项 |
| | | const multipleList = ref([]); |
| | |
| | | listPage, |
| | | { |
| | | staffName: '', |
| | | season: getCurrentMonth(), |
| | | }, |
| | | [ |
| | | { |
| | |
| | | dataType: "slot", |
| | | slot: "operation", |
| | | align: "center", |
| | | width: "200px", |
| | | width: "150px", |
| | | }, |
| | | ] |
| | | ); |
| | | |
| | | const jidu = ref([ |
| | | { |
| | | value: '1', |
| | | label: '第一季度' |
| | | }, |
| | | { |
| | | value: '2', |
| | | label: '第二季度' |
| | | }, |
| | | { |
| | | value: '3', |
| | | label: '第三季度' |
| | | }, |
| | | { |
| | | value: '4', |
| | | label: '第四季度' |
| | | } |
| | | ]) |
| | | |
| | | // 多选后做什么 |
| | | const handleSelectionChange = (selectionList) => { |
| | | multipleList.value = selectionList; |