|
|
@ -228,7 +228,7 @@ |
|
|
v-loading="allocListLoading" |
|
|
v-loading="allocListLoading" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item, index) in allocColumnList" |
|
|
|
|
|
|
|
|
v-for="(item, index) in filteredAllocColumnList" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:prop="item.columnProp" |
|
|
:prop="item.columnProp" |
|
|
:header-align="item.headerAlign" |
|
|
:header-align="item.headerAlign" |
|
|
@ -247,7 +247,7 @@ |
|
|
v-loading="allocListLoading" |
|
|
v-loading="allocListLoading" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item, index) in allocColumnList" |
|
|
|
|
|
|
|
|
v-for="(item, index) in filteredAllocColumnList" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:prop="item.columnProp" |
|
|
:prop="item.columnProp" |
|
|
:header-align="item.headerAlign" |
|
|
:header-align="item.headerAlign" |
|
|
@ -266,7 +266,7 @@ |
|
|
v-loading="allocListLoading" |
|
|
v-loading="allocListLoading" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item, index) in allocColumnList" |
|
|
|
|
|
|
|
|
v-for="(item, index) in filteredAllocColumnList" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:prop="item.columnProp" |
|
|
:prop="item.columnProp" |
|
|
:header-align="item.headerAlign" |
|
|
:header-align="item.headerAlign" |
|
|
@ -285,7 +285,7 @@ |
|
|
v-loading="allocListLoading" |
|
|
v-loading="allocListLoading" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
v-for="(item, index) in allocColumnList" |
|
|
|
|
|
|
|
|
v-for="(item, index) in filteredAllocColumnList" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:prop="item.columnProp" |
|
|
:prop="item.columnProp" |
|
|
:header-align="item.headerAlign" |
|
|
:header-align="item.headerAlign" |
|
|
@ -407,6 +407,18 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
filteredAllocColumnList() { |
|
|
|
|
|
const hideColumnsByTab = { |
|
|
|
|
|
'产量未传输': ['allocSetupTime', 'allocManfTime'], |
|
|
|
|
|
'产量已传输': ['allocSetupTime', 'allocManfTime'], |
|
|
|
|
|
'工时未传输': ['allocReportQty', 'allocApproveQty', 'allocScrapQty'] |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const hiddenColumnProps = hideColumnsByTab[this.activeTab] || []; |
|
|
|
|
|
return this.allocColumnList.filter(item => !hiddenColumnProps.includes(item.columnProp)); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.calculateTableHeight(); |
|
|
this.calculateTableHeight(); |
|
|
window.addEventListener('resize', this.calculateTableHeight); |
|
|
window.addEventListener('resize', this.calculateTableHeight); |
|
|
|