Quellcode durchsuchen

修改分页方法

luguang vor 3 Monaten
Ursprung
Commit
29c1103682

+ 1 - 1
src/views/workshop/deliveryJump/index.vue

@@ -61,7 +61,7 @@
       </el-table-column>
     </el-table>
     <!-- 分页 -->
-    <pagination v-show="pageTotal>0" :total="pageTotal" :page.sync="page" :limit.sync="rows" @pagination="getList" />
+    <pagination v-show="pageTotal>0" :total="pageTotal" :page.sync="page" :limit.sync="rows" @pagination="getPageList" />
     <!-- 新增/编辑 -->
     <Edit
       v-if="editShow"

+ 1 - 1
src/views/workshop/deliveryPlan/index.vue

@@ -108,7 +108,7 @@
       :total="pageTotal"
       :page.sync="page"
       :limit.sync="rows"
-      @pagination="getList"
+      @pagination="getPageList"
     />
     <!-- 新增/编辑 -->
     <Edit

+ 2 - 2
src/views/workshop/deliveryPlanDetail/index.vue

@@ -49,7 +49,7 @@
       </el-table-column>
     </el-table>
     <!-- 分页 -->
-    <pagination v-show="pageTotal>0" :total="pageTotal" :page.sync="page" :limit.sync="rows" @pagination="getList" />
+    <pagination v-show="pageTotal>0" :total="pageTotal" :page.sync="page" :limit.sync="rows" @pagination="getPageList" />
     <!-- 新增/编辑 -->
     <Edit
       v-if="editShow"
@@ -80,7 +80,7 @@ export default {
     }
   },
   created() {
-    this.getList()
+    this.getPageList()
   },
   mounted() {
   },