Explorar o código

分页总条数

duy hai 1 ano
pai
achega
80bc3cadf3

+ 2 - 0
src/views/debit-pay/material/book.vue

@@ -137,8 +137,10 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
     } else {
         tableData.value = []
+        searchForm.value.total = 0
     }
 }
 //新增

+ 2 - 0
src/views/debit-pay/material/contract.vue

@@ -124,6 +124,7 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
         if (tableData.value.length > 0) {
             infoData.value = tableData.value[0]
             // getDetail(tableData.value[0].id)
@@ -132,6 +133,7 @@ const getTableData = async () => {
       
     } else {
         tableData.value = []
+        searchForm.value.total = 0
   
     }
 }

+ 2 - 0
src/views/debit-pay/material/order.vue

@@ -183,6 +183,7 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
         if (tableData.value.length > 0) {
             getDetail(tableData.value[0].id)
           
@@ -190,6 +191,7 @@ const getTableData = async () => {
         }
     } else {
         tableData.value = []
+        searchForm.value.total = 0
     }
 }
 const hanleRow = ({ row })=>{

+ 2 - 0
src/views/debit-pay/material/periods.vue

@@ -130,8 +130,10 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
     } else {
         tableData.value = []
+        searchForm.value.total = 0
     }
 }
 //计量期编辑

+ 2 - 0
src/views/debit-pay/start-work/order.vue

@@ -153,6 +153,7 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
         if (tableData.value.length > 0) {
             getDetail(tableData.value[0].id)
         } else {
@@ -160,6 +161,7 @@ const getTableData = async () => {
         }
     } else {
         tableData.value = []
+        searchForm.value.total = 0
        
     }
 }

+ 2 - 0
src/views/debit-pay/start-work/period.vue

@@ -130,8 +130,10 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
     } else {
         tableData.value = []
+        searchForm.value.total = 0
     }
 }
 //计量期编辑

+ 2 - 0
src/views/project/debit/contract/pay.vue

@@ -143,6 +143,7 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
         if (tableData.value.length > 0) {
             getDetail(tableData.value[0].id)
             rowViewId.value = tableData.value[0].id
@@ -152,6 +153,7 @@ const getTableData = async () => {
       
     } else {
         tableData.value = []
+        searchForm.value.total = 0
   
     }
 }

+ 2 - 0
src/views/project/debit/project/pay.vue

@@ -168,6 +168,7 @@ const getTableData = async () => {
     tableLoading.value = false
     if (!error && code === 200) {
         tableData.value = getArrValue(data['records'])
+        searchForm.value.total = data['total']
         if (tableData.value.length > 0) {
             getDetail(tableData.value[0].id)
             rowViewId.value = tableData.value[0].id
@@ -177,6 +178,7 @@ const getTableData = async () => {
       
     } else {
         tableData.value = []
+        searchForm.value.total = 0
   
     }
 }