| | |
| | | showOverflow: true, |
| | | showHeaderOverflow: true, |
| | | showFooterOverflow: true, |
| | | virtualXConfig: { |
| | | enabled: true, |
| | | gt: 0, |
| | | }, |
| | | height: height, |
| | | columnConfig: { |
| | | resizable: true, |
| | |
| | | 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; |
| | |
| | | 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, |
| | | }); |
| | |
| | | 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"), |