Commit 3e36e41e authored by ‘老张’'s avatar ‘老张’

员工年假修改

parent 6996feeb
......@@ -82,6 +82,7 @@
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="唯一标识每条记录" align="center" prop="id" />
<el-table-column label="员工ID" align="center" prop="employeeId" />
<el-table-column label="员工姓名" align="center" prop="name"/>
<el-table-column label="年假余额/天" align="center" prop="annualLeaveBalance">
<template #default="scope">
<span>{{ scope.row.annualLeaveBalance }}</span>
......@@ -182,6 +183,7 @@ const data = reactive({
pageNum: 1,
pageSize: 10,
employeeId: null,
name: null,
annualLeaveBalance: null,
overtimeHoursBalance: null,
createdAt: null,
......@@ -224,6 +226,7 @@ function reset() {
form.value = {
id: null,
employeeId: null,
name: null,
annualLeaveBalance: null,
overtimeHoursBalance: null,
createdAt: null,
......@@ -270,7 +273,7 @@ function handleAdd() {
/** 修改按钮操作 */
function handleUpdate(row) {
reset();
const _id = row.id || ids.value
const _id = row.employeeId || employeeId.value;
getBalance(_id).then(response => {
form.value = response.data;
open.value = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment