修改
This commit is contained in:
@@ -183,6 +183,7 @@ export default {
|
||||
})();
|
||||
};
|
||||
console.log(this.$route.query.name, 'name');
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<!-- <monthlyRelatedMetrics :itemData="renderList" :title="'月度·相关指标分析'" /> -->
|
||||
<relatedIndicatorsAnalysis :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
<relatedIndicatorsAnalysis :factory="factory" :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,6 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -182,6 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<!-- <monthlyRelatedMetrics :itemData="renderList" :title="'月度·相关指标分析'" /> -->
|
||||
<relatedIndicatorsAnalysis :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
<relatedIndicatorsAnalysis :factory="factory" :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,6 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -166,6 +166,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<!-- <monthlyRelatedMetrics :itemData="renderList" :title="'月度·相关指标分析'" /> -->
|
||||
<relatedIndicatorsAnalysis :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
<relatedIndicatorsAnalysis :factory="factory" :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
};
|
||||
console.log('this.$route.query.factory', this.$route.query.factory);
|
||||
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : this.factory
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 804px 804px;
|
||||
">
|
||||
<monthlyRelatedMetrics :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
<monthlyRelatedMetrics :factory="factory" :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :factory="factory" :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
|
||||
|
||||
</div>
|
||||
@@ -183,7 +183,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : this.factory
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
handleChange(value) {
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 804px 804px;
|
||||
">
|
||||
<monthlyRelatedMetrics :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
<monthlyRelatedMetrics :factory="factory" :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :factory="factory" :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom" style="display: flex; gap: 16px;margin-top: 6px;">
|
||||
|
||||
@@ -168,6 +168,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
grid-template-columns: 1624px;
|
||||
">
|
||||
<!-- <monthlyRelatedMetrics :itemData="renderList" :title="'月度·相关指标分析'" /> -->
|
||||
<relatedIndicatorsAnalysis :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
<relatedIndicatorsAnalysis :factory="factory" :relatedData="relatedData" :title="'相关指标分析'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
};
|
||||
console.log('this.$route.query.factory', this.$route.query.factory);
|
||||
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : this.factory
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -36,8 +36,8 @@
|
||||
gap: 12px;
|
||||
grid-template-columns: 804px 804px;
|
||||
">
|
||||
<monthlyRelatedMetrics :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
<monthlyRelatedMetrics :factory="factory" :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :factory="factory" :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom" style="display: flex; gap: 16px;margin-top: 6px;">
|
||||
@@ -69,7 +69,7 @@ import monthlyOverview from "../productionCostAnalysisComponents/monthlyOverview
|
||||
import totalOverview from "../productionCostAnalysisComponents/totalOverview.vue";
|
||||
// import totalOverview from "../operatingComponents/totalOverview.vue";
|
||||
import monthlyRelatedMetrics from "../productionCostAnalysisComponents/monthlyRelatedMetricsProcessingFuel.vue";
|
||||
import yearRelatedMetrics from "../productionCostAnalysisComponents/yearRelatedMetrics.vue";
|
||||
import yearRelatedMetrics from "../productionCostAnalysisComponents/yearRelatedMetricsFuel.vue";
|
||||
import dataTrend from "../productionCostAnalysisComponents/dataTrendProcessingFuel.vue";
|
||||
import { mapState } from "vuex";
|
||||
import { getCostAnalysisData } from '@/api/cockpit'
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : this.factory
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
handleChange(value) {
|
||||
|
||||
@@ -168,6 +168,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -144,7 +144,7 @@ export default {
|
||||
startTime: this.selectDate.startTime,
|
||||
endTime: this.selectDate.endTime,
|
||||
analysisObject: [
|
||||
"总制造成本"
|
||||
"制造成本"
|
||||
],
|
||||
levelId: 1,
|
||||
// timeDim: this.selectDate.mode
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
gap: 12px;
|
||||
grid-template-columns:804px 804px;
|
||||
">
|
||||
<monthlyRelatedMetrics :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
<monthlyRelatedMetrics :factory="factory" :relatedData="monthRelatedData" :title="'月度概览'" />
|
||||
<yearRelatedMetrics :factory="factory" :relatedData="totalRelatedData" :title="'累计概览'" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
totalData: {},
|
||||
trend: [],
|
||||
relatedData: [],
|
||||
trendName: '总制造成本',
|
||||
trendName: '制造成本',
|
||||
monthRelatedData:[],
|
||||
totalRelatedData: [],
|
||||
};
|
||||
@@ -178,7 +178,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : this.factory
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
handleChange(value) {
|
||||
@@ -208,19 +208,19 @@ export default {
|
||||
// 调用接口
|
||||
getCostAnalysisData(requestParams).then((res) => {
|
||||
this.monData = res.data.currentMonthData.find(item => {
|
||||
return item.name === "总制造成本";
|
||||
return item.name === "制造成本";
|
||||
});
|
||||
console.log('this.monData', this.monData);
|
||||
|
||||
this.totalData = res.data.totalMonthData.find(item => {
|
||||
return item.name === "总制造成本";
|
||||
return item.name === "制造成本";
|
||||
});
|
||||
// this.relatedMon = res.data.relatedMon
|
||||
this.monthRelatedData = res.data.currentMonthData.filter(item => {
|
||||
return item.name !== "总制造成本";
|
||||
return item.name !== "制造成本";
|
||||
})
|
||||
this.totalRelatedData = res.data.totalMonthData.filter(item => {
|
||||
return item.name !== "总制造成本";
|
||||
return item.name !== "制造成本";
|
||||
}) // 兜底累
|
||||
|
||||
;
|
||||
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
console.log(this.$route.query.name, 'name');
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
console.log(this.$route.query.name, 'name');
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -94,7 +94,7 @@ export default {
|
||||
totalData: {},
|
||||
trend: [],
|
||||
relatedData: {},
|
||||
trendName: '人工成本',
|
||||
trendName: '备品丶机物料',
|
||||
};
|
||||
},
|
||||
|
||||
@@ -160,6 +160,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
@@ -182,7 +182,7 @@ export default {
|
||||
this.beilv = _this.clientWidth / 1920;
|
||||
})();
|
||||
};
|
||||
console.log(this.$route.query.name, 'name');
|
||||
this.factory = this.$route.query.factory ? Number(this.$route.query.factory) : 5
|
||||
},
|
||||
methods: {
|
||||
changeItem(item) {
|
||||
|
||||
Reference in New Issue
Block a user