32c74f33 by lxs

数据定价模型配置更新

1 parent cb6cb6e0
......@@ -599,7 +599,14 @@ const setTableRowData = (dGuid, rIndex) => {
})
rowData.dataFields.map(t => {
t.damFieldTable = JSON.parse(JSON.stringify(damFieldOptions));
const match = damFieldOptions.find(d => d.chName == t.fieldName);
t.chName = match?.chName || '';
t.enName = match?.enName || '';
})
rowData.dataFieldsNum = rowData.dataFields.filter(item => item.chName != '' && item.chName != null).length;
resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => {
return accumulator + Number(currentValue.dataFieldsNum);
}, 0);
// console.log('rowData', rowData)
} else {
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!