Browse Source

授信决议,采购合同,结算分页

changjiaming 4 months ago
parent
commit
1a73cd4e2f

+ 5 - 4
src/views/creditManage/resolutionManage/index.vue

@@ -28,7 +28,7 @@
           :columns="getTableColumn"
           :data="tableData"
           :count="total"
-          parent-component="ProjectCredit"
+          parent-component="ResolutionManage"
           :table-options="getTableOptions"
         />
       </el-tabs>
@@ -43,7 +43,7 @@
 import indexTable from './indexTable'
 import request from '@/utils/request'
 export default {
-  name: 'ProjectCredit',
+  name: 'ResolutionManage',
   mixins: [indexTable],
   data() {
     return {
@@ -90,15 +90,16 @@ export default {
           ...this.search
         },
         method: 'post'
-      }).then(({ rows, total }) => {
+      }).then(({ rows, records }) => {
         this.tableData = rows || []
-        this.total = total
+        this.total = records
       })
     },
     handleTabClick(tab) {
       this.search.fastSearch = ''
       this.search.status = ''
       this.activeName = tab.name
+      this.page = 1
       this.fetchData()
     },
     handlerOperate(type, row) {

+ 4 - 3
src/views/purchaseContractManagement/index.vue

@@ -42,6 +42,7 @@
             ref="commTable"
             v-loading="loading"
             :columns="columns"
+            parent-component="PurchaseContractList"
             :table-options="getTableOptions"
             :data="tableData"
             :count="total"
@@ -62,7 +63,7 @@ import request from '@/utils/request'
 import { exportFile } from '@/utils/index'
 
 export default {
-  name: 'Demo',
+  name: 'PurchaseContractList',
   mixins: [indexTable],
   data() {
     return {
@@ -102,9 +103,9 @@ export default {
           ...this.search
         },
         method: 'get'
-      }).then(({ data: { rows, total }}) => {
+      }).then(({ data: { rows, records }}) => {
         this.tableData = rows || []
-        this.total = total
+        this.total = records
       })
     },
     getStatusList() {

+ 2 - 0
src/views/settlementManagement/index.vue

@@ -43,6 +43,7 @@
             v-loading="loading"
             :columns="columns"
             :table-options="getTableOptions"
+            parent-component="SettlementManage"
             :data="tableData"
             :count="total"
           />
@@ -181,6 +182,7 @@ export default {
     },
     handleTabClick(tab) {
       this.activeName = tab.name
+      this.page = 1
       this.fetchData()
     },
     timeAxisClick(row) {