制造成本分析接口+单位修改
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
v-for="item in sortedIndicators"
|
||||
:key="item.key"
|
||||
class="dashboard"
|
||||
@click="handleDashboardClick(item.name)"
|
||||
@click="item.route && handleDashboardClick(item.name,item.route)"
|
||||
>
|
||||
<div class="title">
|
||||
{{ item.name }}·{{ item.unit }}
|
||||
@@ -62,9 +62,9 @@ export default {
|
||||
computed: {
|
||||
indicatorDefs() {
|
||||
return [
|
||||
{ key: 'mx', name: '芒硝', unit: '元/㎡'},
|
||||
{ key: 'xsn', name: '硝酸钠', unit: '元/㎡'},
|
||||
{ key: 'jtsn', name: '焦锑酸钠', unit: '元/㎡'},
|
||||
{ key: 'mx', name: '芒硝', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'xsn', name: '硝酸钠', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'jtsn', name: '焦锑酸钠', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
]
|
||||
},
|
||||
indicators() {
|
||||
@@ -112,16 +112,17 @@ export default {
|
||||
console.log('组件挂载时的相关数据:', this.relatedData);
|
||||
},
|
||||
methods: {
|
||||
handleDashboardClick(name) {
|
||||
handleDashboardClick(material, path) {
|
||||
this.$router.push({
|
||||
path: 'singleProcMfgOverheadCost',
|
||||
path: path,
|
||||
query: {
|
||||
name,
|
||||
factory: this.$route.query.factory ? this.$route.query.factory : this.factory,
|
||||
name: material,
|
||||
month: this.month,
|
||||
factory: this.$route.query.factory ? this.$route.query.factory :5,
|
||||
dateData: this.dateData
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user