diff --git a/src/views/report/Product/monthly.vue b/src/views/report/Product/monthly.vue
index 9bb927aa..4bf178e8 100644
--- a/src/views/report/Product/monthly.vue
+++ b/src/views/report/Product/monthly.vue
@@ -1,7 +1,7 @@
@@ -43,12 +43,16 @@
{
+ this.reTable1();
+ });
},
// 设置表格数据
buildTableData(data) {
@@ -250,6 +261,15 @@ export default {
}
this.tableData = tempData;
this.getSpanArr(this.tableData);
+ this.$nextTick(() => {
+ this.reTable();
+ });
+ },
+ reTable() {
+ this.$refs.productionDataMonthTable11.doLayout('productionDataMonthTable1');
+ },
+ reTable1() {
+ this.$refs.productionDataMonthTable22.doLayout('productionDataMonthTable2');
},
getSpanArr1(data) {
this.span2 = [];
diff --git a/src/views/report/Product/year.vue b/src/views/report/Product/year.vue
index 826ad0bc..93e4e3ff 100644
--- a/src/views/report/Product/year.vue
+++ b/src/views/report/Product/year.vue
@@ -1,7 +1,7 @@
@@ -43,12 +43,16 @@
{
this.resData = res.data;
// 设置表头
Object.keys(this.resData).forEach((item) => {
- this.tableProps[0].children.push({
+ this.tableProps[2].children.push({
prop: item,
label: item,
'show-overflow-tooltip': true,
@@ -170,7 +178,7 @@ export default {
this.resData1 = res.data;
// 设置表头
Object.keys(this.resData1).forEach((item) => {
- this.tableProps1[0].children.push({
+ this.tableProps1[2].children.push({
prop: item,
label: item,
'show-overflow-tooltip': true,
@@ -213,6 +221,9 @@ export default {
}
this.tableData1 = tempData;
this.getSpanArr1(this.tableData1);
+ this.$nextTick(() => {
+ this.reTable1();
+ });
},
// 设置表格数据
buildTableData(data) {
@@ -248,6 +259,15 @@ export default {
}
this.tableData = tempData;
this.getSpanArr(this.tableData);
+ this.$nextTick(() => {
+ this.reTable();
+ });
+ },
+ reTable() {
+ this.$refs.productionDataYearTable11.doLayout('productionDataYearTable1');
+ },
+ reTable1() {
+ this.$refs.productionDataYearTable22.doLayout('productionDataYearTable2');
},
getSpanArr1(data) {
this.span2 = [];