81bcb5df by lxs

数据定价更新

1 parent bf89cbc0
...@@ -660,8 +660,7 @@ const matchTableFields = (rData, tData) => { ...@@ -660,8 +660,7 @@ const matchTableFields = (rData, tData) => {
660 }, 0); 660 }, 0);
661 } 661 }
662 662
663 const setRowData = (rowData, dGuid) => { 663 const setRowData = (rowData, dGuid, detailDataTable) => {
664 const detailDataTable = (flowDetail.value.dataPricingDemandmatchingRQVOS || []).find(f => f.dataTableGuid == dGuid);
665 if (guid && dGuid == rowData.dataTableGuid) { 664 if (guid && dGuid == rowData.dataTableGuid) {
666 const pricingDemandField = detailDataTable?.pricingDemandFieldRQVOS || []; 665 const pricingDemandField = detailDataTable?.pricingDemandFieldRQVOS || [];
667 rowData.dataFields.map(f => { 666 rowData.dataFields.map(f => {
...@@ -677,12 +676,13 @@ const setRowData = (rowData, dGuid) => { ...@@ -677,12 +676,13 @@ const setRowData = (rowData, dGuid) => {
677 return accumulator + Number(currentValue.dataFieldsNum); 676 return accumulator + Number(currentValue.dataFieldsNum);
678 }, 0); 677 }, 0);
679 resourceTableAllNum.value = tableData.value.filter(item => item.dataTableGuid != '' && item.dataTableGuid != null).length; 678 resourceTableAllNum.value = tableData.value.filter(item => item.dataTableGuid != '' && item.dataTableGuid != null).length;
680 return detailDataTable.dataTableGuid || '';
681 } 679 }
682 680
683 const setTableRowData = (dGuid, rIndex, setRow = true) => { 681 const setTableRowData = (dGuid, rIndex, setRow = true) => {
684 let rowData = tableData.value[rIndex], currDataTableGuid = ""; 682 let rowData = tableData.value[rIndex];
685 setRow && (currDataTableGuid = setRowData(rowData, dGuid)); 683 const detailDataTable = (flowDetail.value.dataPricingDemandmatchingRQVOS || []).find(f => f.dataTableGuid == dGuid);
684 setRow && setRowData(rowData, dGuid, detailDataTable);
685 const currDataTableGuid = detailDataTable?.dataTableGuid || '';
686 if (dGuid) { 686 if (dGuid) {
687 tableLoading.value = true; 687 tableLoading.value = true;
688 getRegisterCatalogTableDetail(dGuid).then((res: any) => { 688 getRegisterCatalogTableDetail(dGuid).then((res: any) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!