QuKatie 3 vuotta sitten
vanhempi
commit
1fe92b8033
1 muutettua tiedostoa jossa 9 lisäystä ja 9 poistoa
  1. 9 9
      src/views/finance/otherFinancial/index.vue

+ 9 - 9
src/views/finance/otherFinancial/index.vue

@@ -268,15 +268,15 @@
         </el-table-column>
       </el-table>
       <div style="padding-top: 10px; float: right; padding-bottom: 20px">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
+        <pagination
+          v-show="query.total > 0"
           :page-sizes="[10, 20, 30, 40, 50, 100, 150, 200]"
-          background
-          layout="sizes, prev, pager, next"
-          :total="total"
+          :total="query.total"
+          :page.sync="query.pageNum"
+          :limit.sync="query.pageSize"
+          @pagination="getList"
         >
-        </el-pagination>
+        </pagination>
       </div>
     </div>
     <div v-show="jiGang == true">
@@ -999,10 +999,10 @@ export default {
       loading: true,
       blnoOptions: [],
       single: true,
-      total: 0,
       query: {
         pageNum: 1,
         pageSize: 10,
+        total: 0,
         fVslid: null,
         fVoyid: null,
       },
@@ -1197,9 +1197,9 @@ export default {
     },
     getList() {
       listCorps_s(this.query).then((res) => {
-        this.total = res.total;
         this.loading = false;
         this.agreementList = res.rows;
+        this.query.total = res.total;
       });
     },
     corpsRemoteMethod(name) {