固定开头列

master
陈恒杰 6 months ago
parent 0f8e2cadc9
commit 11ed117c0b

@ -19,7 +19,7 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="烘房名称" prop="equName"> <el-form-item label="烘房名称" prop="equName">
<el-input <el-input
v-model="queryParams.equName" v-model="queryParams.equName"
@ -65,9 +65,9 @@
:data="machineProList" :data="machineProList"
:summary-method="getSummaries" :summary-method="getSummaries"
show-summary show-summary
> >
<el-table-column label="日期" align="center" prop="ymd" min-width="100"/> <el-table-column label="日期" align="center" prop="ymd" min-width="100" fixed/>
<template v-for="(column, index) in products"> <template v-for="(column, index) in products">
<el-table-column align="center" min-width="100" :prop="column.code" :key="column.code" :label="column.label"/> <el-table-column align="center" min-width="100" :prop="column.code" :key="column.code" :label="column.label"/>
</template> </template>

@ -96,9 +96,9 @@
:summary-method="getSummaries" :summary-method="getSummaries"
show-summary show-summary
> >
<el-table-column label="设备编码" align="center" prop="equCode" min-width="100" /> <el-table-column label="设备编码" align="center" prop="equCode" min-width="100" fixed />
<el-table-column label="设备名称" align="center" prop="equName" min-width="100" /> <el-table-column label="设备名称" align="center" prop="equName" min-width="100" fixed/>
<el-table-column label="设备总产量" align="center" prop="quantity" min-width="100" /> <el-table-column label="设备总产量" align="center" prop="quantity" min-width="100" fixed/>
<template v-for="(column, index) in showTitles"> <template v-for="(column, index) in showTitles">
<el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/> <el-table-column align="center" min-width="120" :prop="column.id" :key="column.id" :label="column.titleName"/>
</template> </template>
@ -191,7 +191,7 @@ export default {
this.queryParams.productDateStart = moment(this.queryParams.productDateArray[0]).format('YYYY-MM-DD HH:mm:00'); this.queryParams.productDateStart = moment(this.queryParams.productDateArray[0]).format('YYYY-MM-DD HH:mm:00');
this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD HH:mm:00'); this.queryParams.productDateEnd = moment(this.queryParams.productDateArray[1]).format('YYYY-MM-DD HH:mm:00');
} }
this.loading = true; this.loading = true;
//Table //Table
getHourProductionTitle(this.queryParams).then(response => { getHourProductionTitle(this.queryParams).then(response => {

Loading…
Cancel
Save