fix:巡检计划编辑、保养计划编辑
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -45,7 +45,7 @@ async function handleOpenChange(open: boolean) {
|
||||
}
|
||||
modalApi.modalLoading(true);
|
||||
const {id,attendanceType} = modalApi.getData() as { id?: number | string,attendanceType?:string };
|
||||
const res = await groupInfo(id,attendanceType);
|
||||
const res = await groupInfo(id as string,attendanceType as string);
|
||||
groupDetail.value=res;
|
||||
if(res.attendanceType==0){
|
||||
unCheckInData.value=res.clockDateList.filter(item=>item.mustNoCheck==0)
|
||||
@@ -65,7 +65,7 @@ async function handleOpenChange(open: boolean) {
|
||||
})
|
||||
groupDetail.value.isAutomatic=true
|
||||
}else {
|
||||
cycleData.value=res;
|
||||
cycleData.value=[];
|
||||
}
|
||||
modalApi.modalLoading(false);
|
||||
}
|
||||
@@ -115,7 +115,7 @@ async function showHoliday() {
|
||||
size="small"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column, record, index }">
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'dayOfWeek'">
|
||||
<component :is="renderDict(record.dayOfWeek,'wy_kqgzr')"></component>
|
||||
</template>
|
||||
|
@@ -89,7 +89,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
};
|
||||
isUpdate.value = !!id;
|
||||
if (isUpdate.value && id) {
|
||||
const record = await groupInfo(id, attendanceType);
|
||||
const record = await groupInfo(id, attendanceType as string);
|
||||
record.attendanceType = record.attendanceType.toString()
|
||||
if (record.attendanceType == '0') {
|
||||
settingData.unCheckInData = record.clockDateList.filter(item => item.mustNoCheck == 0)
|
||||
|
Reference in New Issue
Block a user