Explorar o código

fix: 新建建议估算标段失败

vian %!s(int64=4) %!d(string=hai) anos
pai
achega
1aa48d2181
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      web/building_saas/pm/js/pm_newMain.js

+ 2 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -1742,7 +1742,8 @@ const projTreeObj = {
 function changeValuationType(type) {
     $('input[name="valuation_type"]:checked').prop('checked', false);
     $(`input[name="valuation_type"][value="${type}"]`).prop('checked', true);
-    let targetData = type === 'bill' ? JSON.parse(billValuation) : JSON.parse(rationValuation);
+    // let targetData = type === 'bill' ? JSON.parse(billValuation) : JSON.parse(rationValuation);
+    let targetData = getValuationData(type);
     let html = '';
     for(let i = targetData.length - 1; i >=0; i--){
         let valuation = targetData[i];