修改字段
This commit is contained in:
@@ -69,14 +69,14 @@ export default {
|
||||
computed: {
|
||||
indicatorDefs() {
|
||||
return [
|
||||
{ key: 'silicaSand', name: '硅砂', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'sodaAsh', name: '纯碱', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'dolomite', name: '白云石', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'limestone', name: '石灰石', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'compoundClarifyingAgent', name: '复合澄清剂', unit: '元/㎡', route: 'compositeClarifyingAgentCostAnalysis'},
|
||||
{ key: 'ATH', name: '氢氧化铝', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'cosolvent', name: '助熔剂', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'brokenGlass', name: '碎玻璃', unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'silicaSand', name: '硅砂', label:'硅砂',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'sodaAsh', name: '纯碱', label:'纯碱',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'dolomite', name: '白云石', label:'白云石',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'limestone', name: '石灰石', label:'石灰石',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'compoundClarifyingAgent', name: '复合澄清剂', label:'复合澄清剂',unit: '元/㎡', route: 'compositeClarifyingAgentCostAnalysis'},
|
||||
{ key: 'ATH', name: '氢氧化铝', label:'氢氧化铝',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'cosolvent', name: '助熔剂', label:'助熔剂',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
{ key: 'brokenGlass', name: '碎玻璃', label:'碎玻璃(外购)',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
|
||||
]
|
||||
},
|
||||
indicators() {
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
const list = (Array.isArray(this.activeData) ? this.activeData : [])
|
||||
|
||||
return this.indicatorDefs.map(def => {
|
||||
const data = list.find(item => item && item.name === def.name+'成本') || fallback
|
||||
const data = list.find(item => item && item.name === def.label+'成本') || fallback
|
||||
return {
|
||||
...def,
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user