1.更新im
2.修改bug
This commit is contained in:
2025-07-09 15:18:56 +08:00
parent 308d9ae94e
commit 78141a788f
22 changed files with 168 additions and 368 deletions
@@ -159,7 +159,7 @@
import { ref } from 'vue';
import { Dayjs } from 'dayjs';
import detail from './detail.vue';
import { stat, scheduleRecordApi } from './commApi';
import { stat, scheduleRecordApi, scheduleRecordNewApi } from './commApi';
import forHelpAdv from './forHelpAdv.vue';
import moment from 'moment';
import qs from 'qs';
@@ -246,21 +246,28 @@
year: year,
month: month,
};
scheduleRecordApi(params)
.then((res) => {
if (res.months !== null) {
let result = [];
res.months.forEach((item) => {
item.days.forEach((it) => {
result.push(item.month + '-' + it.day);
});
});
dayS.value = result;
}
})
.catch((e) => {
console.log(e);
});
// scheduleRecordApi(params)
// .then((res) => {
// if (res.months !== null) {
// let result = [];
// res.months.forEach((item) => {
// item.days.forEach((it) => {
// result.push(item.month + '-' + it.day);
// });
// });
// dayS.value = result;
// }
// })
// .catch((e) => {
// console.log(e);
// });
scheduleRecordNewApi(params).then((res: any) => {
if (res) {
dayS.value = res.map((item) => {
return `${month}-${item}`;
});
}
});
};
const nowDate = new Date();
scheduleRecord(nowDate.getFullYear(), nowDate.getMonth() + 1);