From 6be2ec8054664e72cb6e54a3487f884b3fd482ba Mon Sep 17 00:00:00 2001 From: userName <244140623@qq.com> Date: Wed, 21 Feb 2024 16:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/mts/planDetail/index.vue | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) 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,