制造成本分析修改
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<dataTrend :trendData="trend" :title="'数据趋势'" />
|
||||
<dataTrend :trendData="trend" :relatedData="relatedData" :title="'指标分析&数据趋势'" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -95,7 +95,10 @@ export default {
|
||||
monData: {},
|
||||
totalData: {},
|
||||
trend: [],
|
||||
relatedData: {},
|
||||
relatedData: {
|
||||
total:[],
|
||||
current:[]
|
||||
},
|
||||
trendName: '包材成本',
|
||||
};
|
||||
},
|
||||
@@ -208,8 +211,9 @@ export default {
|
||||
this.totalData = res.data.totalMonthData.find(item => {
|
||||
return item.name === "包材成本";
|
||||
});
|
||||
// this.relatedMon = res.data.relatedMon
|
||||
;
|
||||
this.relatedData.total =res.data.totalMonthData,
|
||||
this.relatedData.current= res.data.currentMonthData
|
||||
|
||||
this.trend = res.data.dataTrend
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user