bug: 🐛 界面逻辑优化
All checks were successful
Release / lint (push) Successful in 54s
Release / Release (push) Successful in 2m0s

This commit is contained in:
my_ong 2025-03-09 14:36:02 +08:00
parent f3a2438066
commit 90da064f25
2 changed files with 12 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<div>
<a-form :model="formData" name="basic" layout="horizontal" label-wrap>
<a-form-item label="申请人" name="applicant">
<a-input v-model="formData.applicant" style="width: 40%" />
<a-input v-model:value="formData.applicant" style="width: 40%" />
</a-form-item>
<a-form-item label="申请类型" name="applyType">
@ -15,7 +15,7 @@
</a-radio-group>
</a-form-item>
<a-form-item v-if="formData.applyType === 'SCRAP_OUT'" label="审核人" name="reviewer">
<a-select v-model:value="formData.viewer" style="width: 40%" :options="personList"></a-select>
<a-select v-model:value="formData.reviewer" style="width: 40%" :options="personList"></a-select>
</a-form-item>
<a-form-item label="申请日期" name="applyDate" style="width: 40%">
<a-date-picker v-model:value="formData.applyDate" />
@ -122,6 +122,7 @@
applyDate: formData.value.applyDate.format('YYYY-MM-DD HH:mm:ss'),
isConfirm: true,
result: '',
reviewer: formData.value.reviewer,
}
}
defineExpose({ getTableData, getApplyForm })
@ -131,14 +132,14 @@
applyDate: Dayjs //
applyType: string //
slectedList: number[] //
viewer: string //
reviewer: string //
}
const formData = ref<FormData>({
applicant: '',
applyDate: dayjs(),
applyType: props.applyType,
slectedList: [],
viewer: '',
reviewer: '',
})
//

View File

@ -29,6 +29,9 @@
<template v-if="column.dataIndex === 'applyTypeInfo'">
{{ record.applyTypeInfo.description }}
</template>
<template v-if="column.dataIndex === 'operation'">
<a-button v-if="record.applyType === 'SCRAP_OUT'" type="link" style="margin-left: 10px">审核</a-button>
</template>
</template>
</a-table>
</div>
@ -108,6 +111,10 @@
title: '备注',
dataIndex: 'remark',
},
{
title: '操作',
dataIndex: 'operation',
},
]
//