Selaa lähdekoodia

项目中期支付项入参

liuyc 1 vuosi sitten
vanhempi
commit
f288c1f66f

+ 2 - 3
src/api/modules/project/debit/project/pay.js

@@ -2,7 +2,6 @@ import { HcApi } from '../../../../request/index'
 
 //  项目支付项
 export default {
-    //系统中期支付项列表(ype=0(未被引用),type=1(已引用),type=空(全部))
    async getSyslist(form, msg = true) {
     return HcApi({
         url: '/api/blade-meter/mid/pay/item/system/list',
@@ -74,5 +73,5 @@ export default {
                 params: form,
             }, msg)
     },
-        
-}
+
+}

+ 4 - 4
src/views/project/debit/project/components/pay/system-pay.vue

@@ -66,15 +66,15 @@ const tableData = ref([])
 const getTableData = async () => {
     tableLoading.value = true
     const { error, code, data } = await payApi.getSyslist({
-       type:0,
+       projectId:projectId.value,
     })
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data)
-      
+
     } else {
         tableData.value = []
-  
+
     }
 }
 
@@ -95,7 +95,7 @@ const modalSave = async () => {
         saveLoading.value = false
         if (!error && code === 200) {
             window?.$message?.success(msg)
-         
+
         }
         emit('finish')
 }