13425963 by lxs

数据定价更新

1 parent c9f12146
...@@ -643,6 +643,7 @@ const getResourceInfo = (sGuid) => { ...@@ -643,6 +643,7 @@ const getResourceInfo = (sGuid) => {
643 } 643 }
644 } 644 }
645 645
646 // 需求表字段匹配
646 const matchTableFields = (rData, tData) => { 647 const matchTableFields = (rData, tData) => {
647 rData.dataFields.map(t => { 648 rData.dataFields.map(t => {
648 const match = tData.find(d => d.chName == t.fieldName); 649 const match = tData.find(d => d.chName == t.fieldName);
...@@ -694,8 +695,7 @@ const setTableRowData = (dGuid, rIndex) => { ...@@ -694,8 +695,7 @@ const setTableRowData = (dGuid, rIndex) => {
694 t.damFieldTable = JSON.parse(JSON.stringify(damFieldOptions)); 695 t.damFieldTable = JSON.parse(JSON.stringify(damFieldOptions));
695 }) 696 })
696 // 匹配 697 // 匹配
697 !guid && matchTableFields(rowData, damTableField); 698 (!guid || (guid && dGuid != rowData.dataTableGuid)) && matchTableFields(rowData, damTableField);
698 // console.log('rowData', rowData)
699 } else { 699 } else {
700 proxy.$ElMessage.error(res.msg); 700 proxy.$ElMessage.error(res.msg);
701 } 701 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!