修改字段

This commit is contained in:
2026-04-22 16:05:55 +08:00
parent cfcb4f5068
commit a6eaf41099

View File

@@ -69,14 +69,14 @@ export default {
computed: { computed: {
indicatorDefs() { indicatorDefs() {
return [ return [
{ key: 'silicaSand', name: '硅砂', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'silicaSand', name: '硅砂', label:'硅砂',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'sodaAsh', name: '纯碱', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'sodaAsh', name: '纯碱', label:'纯碱',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'dolomite', name: '白云石', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'dolomite', name: '白云石', label:'白云石',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'limestone', name: '石灰石', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'limestone', name: '石灰石', label:'石灰石',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'compoundClarifyingAgent', name: '复合澄清剂', unit: '元/㎡', route: 'compositeClarifyingAgentCostAnalysis'}, { key: 'compoundClarifyingAgent', name: '复合澄清剂', label:'复合澄清剂',unit: '元/㎡', route: 'compositeClarifyingAgentCostAnalysis'},
{ key: 'ATH', name: '氢氧化铝', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'ATH', name: '氢氧化铝', label:'氢氧化铝',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'cosolvent', name: '助熔剂', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'cosolvent', name: '助熔剂', label:'助熔剂',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
{ key: 'brokenGlass', name: '碎玻璃', unit: '元/㎡', route: 'SIMFRMCostAnalysis'}, { key: 'brokenGlass', name: '碎玻璃', label:'碎玻璃(外购)',unit: '元/㎡', route: 'SIMFRMCostAnalysis'},
] ]
}, },
indicators() { indicators() {
@@ -84,7 +84,7 @@ export default {
const list = (Array.isArray(this.activeData) ? this.activeData : []) const list = (Array.isArray(this.activeData) ? this.activeData : [])
return this.indicatorDefs.map(def => { 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 { return {
...def, ...def,
data, data,