update
1.更新im 2.修改bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user