|
@@ -337,9 +337,16 @@
|
|
|
|
|
|
|
|
|
function changeCheckJobDate(schedule, changes) {
|
|
|
+ console.log(schedule)
|
|
|
+ if(schedule.calendarId === "5"){
|
|
|
+ alert("已完成的任务不可更改日期")
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
const startTime = moment(new Date(changes.start)).format("YYYY-MM-DD")
|
|
|
const endTime = moment(new Date(changes.end)).format("YYYY-MM-DD")
|
|
|
+
|
|
|
$.ajax({
|
|
|
type: "put",
|
|
|
url: '/api/check/jobs/' + schedule.id,
|
|
@@ -348,7 +355,7 @@
|
|
|
dataType: 'json',
|
|
|
headers: getHeader(),
|
|
|
success: function (response) {
|
|
|
- alert("执行日期更新成功")
|
|
|
+ alert("日期更改成功")
|
|
|
|
|
|
ScheduleList.forEach((item) => {
|
|
|
if(item.id == schedule.id){
|