a9de3186 by lxs

数据定价模型配置更新

1 parent 9891cb99
...@@ -599,7 +599,14 @@ const setTableRowData = (dGuid, rIndex) => { ...@@ -599,7 +599,14 @@ const setTableRowData = (dGuid, rIndex) => {
599 }) 599 })
600 rowData.dataFields.map(t => { 600 rowData.dataFields.map(t => {
601 t.damFieldTable = JSON.parse(JSON.stringify(damFieldOptions)); 601 t.damFieldTable = JSON.parse(JSON.stringify(damFieldOptions));
602 const match = damFieldOptions.find(d => d.chName == t.fieldName);
603 t.chName = match?.chName || '';
604 t.enName = match?.enName || '';
602 }) 605 })
606 rowData.dataFieldsNum = rowData.dataFields.filter(item => item.chName != '' && item.chName != null).length;
607 resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => {
608 return accumulator + Number(currentValue.dataFieldsNum);
609 }, 0);
603 // console.log('rowData', rowData) 610 // console.log('rowData', rowData)
604 } else { 611 } else {
605 proxy.$ElMessage.error(res.msg); 612 proxy.$ElMessage.error(res.msg);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!