Просмотр исходного кода

fix: 支出合同-合同劳务treeType类型变更

lanjianrong 4 лет назад
Родитель
Сommit
628ba1528d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/pages/Contract/Content/Income/components/Modal/index.tsx

+ 1 - 1
src/pages/Contract/Content/Income/components/Modal/index.tsx

@@ -81,7 +81,7 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
   }
 
   const initTreeSection = async () => {
-    const { code = -1, sectionTree: data = {} } = await apiContractSection(tenderStore.bid, consts.CONTRACT_TREE.RETURN)
+    const { code = -1, sectionTree: data = {} } = await apiContractSection(tenderStore.bid, contractType === 'income' ? consts.CONTRACT_TREE.RETURN : consts.CONTRACT_TREE.PAID)
     if (code === consts.RET_CODE.SUCCESS) {
       setContractSection(data.children)
     }