Skip to content

Commit

Permalink
fix(frontend): 轮值起止时间问题修复 TencentBlueKing#9088
Browse files Browse the repository at this point in the history
  • Loading branch information
jinquantianxia committed Jan 16, 2025
1 parent 892bef9 commit 180f4b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
};
return {
effective_time: dayjs(formModel.dateTimeRange![0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'),
end_time: dayjs(formModel.dateTimeRange![1]).startOf('day').format('YYYY-MM-DD HH:mm:ss'),
end_time: dayjs(formModel.dateTimeRange![1]).startOf('day').hour(23).minute(59).second(59).format('YYYY-MM-DD HH:mm:ss'),
duty_arranges: formModel.tableData.map(item => ({
date: item.dateTime,
work_times: item.timeRange.map(data => data.value.map(str => splitTimeToMinute(str)).join('--')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
};
return {
effective_time: dayjs(dateTimeRange.value![0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'),
end_time: dayjs(dateTimeRange.value![1]).startOf('day').format('YYYY-MM-DD HH:mm:ss'),
end_time: dayjs(dateTimeRange.value![1]).startOf('day').hour(23).minute(59).second(59).format('YYYY-MM-DD HH:mm:ss'),
duty_arranges: tableData.value.map(item => ({
duty_number: formModel.singleDutyPeoples,
duty_day: formModel.sinlgeDutyDays,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,16 @@
duty_arranges: customValues.duty_arranges,
...bizConfig,
};
if (isCreate.value) {
// 新建/克隆
runCreateDutyRule(customParams);
} else {
// 克隆或者编辑
if (props.data) {
runUpdateDutyRule(props.data.id, customParams);
}
}
console.log(customParams);
// if (isCreate.value) {
// // 新建/克隆
// runCreateDutyRule(customParams);
// } else {
// // 克隆或者编辑
// if (props.data) {
// runUpdateDutyRule(props.data.id, customParams);
// }
// }
}
};

Expand Down

0 comments on commit 180f4b9

Please sign in to comment.