diff --git a/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue b/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue index 6b76c44..66bdd0b 100644 --- a/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue +++ b/ruoyi-ui-vue3/src/views/mts/planDetail/index.vue @@ -31,15 +31,16 @@ + :default-expand-all="isExpandAll" :span-method="objectSpanMethod" :cell-style="handleChangeCellStyle" border> - --> + - + @@ -164,6 +165,7 @@ import { ref, onMounted } from 'vue' import { useRoute } from 'vue-router' import dayjs from 'dayjs' import { listPlanDetail, getPlanDetail, delPlanDetail, addPlanDetail, updatePlanDetail } from "@/api/mts/planDetail"; +import { getPlanMain } from "@/api/mts/planMain"; const { proxy } = getCurrentInstance(); const route = useRoute(); @@ -215,8 +217,11 @@ const { queryParams, form, rules } = toRefs(data); const dateColumns = ref([]) const allDates = []; -onMounted(() => { - for (const date of getDays('2024-02-01', '2024-02-25')) { +onMounted(async () => { + const res = await getPlanMain(route.params.mainId); + const { startDate, endDate } = res.data + + for (const date of getDays(startDate, endDate)) { allDates.push(date); dateColumns.value.push({ label: date,