mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-25 08:15:07 +08:00
1. 统一化代码
2. 增加 DocAlert 关联文档
This commit is contained in:
@ -44,7 +44,7 @@ const submitForm = async () => {
|
||||
data.startTime = Date.parse(new Date(data.startTime).toString()).toString()
|
||||
data.endTime = Date.parse(new Date(data.endTime).toString()).toString()
|
||||
// 添加的提交
|
||||
await LeaveApi.createLeaveApi(data)
|
||||
await LeaveApi.createLeave(data)
|
||||
message.success(t('common.createSuccess'))
|
||||
// 关闭窗口
|
||||
push('/bpm/oa/leave')
|
||||
|
@ -35,7 +35,7 @@ onMounted(() => {
|
||||
return
|
||||
}
|
||||
// 获得请假信息
|
||||
LeaveApi.getLeaveApi(id.value).then((data) => {
|
||||
LeaveApi.getLeave(id.value).then((data) => {
|
||||
formData.value = data
|
||||
})
|
||||
})
|
||||
|
@ -37,7 +37,7 @@ const { push } = useRouter() // 路由
|
||||
|
||||
const [registerTable, { reload }] = useXTable({
|
||||
allSchemas: allSchemas,
|
||||
getListApi: LeaveApi.getLeavePageApi
|
||||
getListApi: LeaveApi.getLeavePage
|
||||
})
|
||||
|
||||
// 发起请假
|
||||
@ -55,7 +55,7 @@ const cancelLeave = (row) => {
|
||||
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
|
||||
inputErrorMessage: '取消原因不能为空'
|
||||
}).then(async ({ value }) => {
|
||||
await ProcessInstanceApi.cancelProcessInstanceApi(row.id, value)
|
||||
await ProcessInstanceApi.cancelProcessInstance(row.id, value)
|
||||
message.success('取消成功')
|
||||
reload()
|
||||
})
|
||||
|
Reference in New Issue
Block a user