From af1c9e588f1de0240390648f9bb56aa486870aff Mon Sep 17 00:00:00 2001 From: chengxiangling <291105840@qq.com> Date: 星期五, 16 五月 2025 17:40:18 +0800 Subject: [PATCH] 提交高度修改; --- src/views/mainPlan/apsPartRoutStat/index.vue | 41 +++++++++++++++++++++++++++++++---------- 1 files changed, 31 insertions(+), 10 deletions(-) diff --git a/src/views/mainPlan/apsPartRoutStat/index.vue b/src/views/mainPlan/apsPartRoutStat/index.vue index d33329f..0fe2316 100644 --- a/src/views/mainPlan/apsPartRoutStat/index.vue +++ b/src/views/mainPlan/apsPartRoutStat/index.vue @@ -38,7 +38,7 @@ const { t, locale } = useI18n(); const loading = ref(false); const gridRef = ref(); -const height = ref(document.documentElement.clientHeight - 130 + "px;"); +const height = ref(document.documentElement.clientHeight - 170 + "px;"); const headers = ref([]); const exportData = ref([]); @@ -49,6 +49,10 @@ showOverflow: true, showHeaderOverflow: true, showFooterOverflow: true, + virtualXConfig: { + enabled: true, + gt: 0, + }, height: height, columnConfig: { resizable: true, @@ -68,9 +72,13 @@ let tableColumn = []; let tableData = []; let merges = []; -watch(locale, (newLocale) => { - getList() -},{immediate:true, deep:true}) +watch( + locale, + (newLocale) => { + getList(); + }, + { immediate: true, deep: true } +); /** 鏌ヨ闆朵欢缁熻琛ㄥ垪琛� */ function getList() { let rowKey = 0; @@ -89,14 +97,19 @@ loading.value = false; return; } - headersOne.push(t('plan.table.dateYearMonth')); - headersTwo.push(t('plan.table.resourceName')); + headersOne.push(t("plan.table.dateYearMonth")); + headersTwo.push(t("plan.table.resourceName")); colList.push({ field: "dateCol", - title: t('plan.table.dateYearMonth'), + title: t("plan.table.dateYearMonth"), fixed: "left", children: [ - { field: `resourceName`, title: t('plan.table.resourceName'), width: 250, type: "html" }, + { + field: `resourceName`, + title: t("plan.table.resourceName"), + width: 250, + type: "html", + }, ], width: 160, }); @@ -112,8 +125,16 @@ field: `dateColTime${colKey}`, title: item, children: [ - { field: `designTimes${colKey}`, title: t("plan.table.designWorkingHours"), width: 80 }, - { field: `requireTimes${colKey}`, title: t("plan.table.requiredWorkingHours"), width: 80 }, + { + field: `designTimes${colKey}`, + title: t("plan.table.designWorkingHours"), + width: 80, + }, + { + field: `requireTimes${colKey}`, + title: t("plan.table.requiredWorkingHours"), + width: 80, + }, { field: `capacityLoad${colKey}`, title: t("plan.table.capacityLoad"), -- Gitblit v1.9.3