Browse Source

feat(api): order interactive part3

gemercheung 3 years ago
parent
commit
9f1b4e7e0c
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/views/dashboard/product/ref.vue
  2. 2 2
      src/views/dashboard/staff/list.vue

+ 2 - 2
src/views/dashboard/product/ref.vue

@@ -2,8 +2,8 @@
   <BasicTable @register="registerTable">
     <template #toolbar>
       <a-button type="primary" @click="handleCreate"> 新增商品分类</a-button>
-      <a-button type="warning" @click="expandAll">展开全部</a-button>
-      <a-button type="error" @click="collapseAll">折叠全部</a-button>
+      <a-button primary color="warning" @click="expandAll">展开全部</a-button>
+      <a-button primary color="error" @click="collapseAll">折叠全部</a-button>
     </template>
     <template #action="{ record }">
       <TableAction

+ 2 - 2
src/views/dashboard/staff/list.vue

@@ -134,8 +134,8 @@
         pagination: { pageSize: 20 },
         bordered: true,
         fetchSetting: {
-          pageField: 'pageSize',
-          sizeField: 'pageNum',
+          pageField: 'pageNum',
+          sizeField: 'pageSize',
           listField: 'list',
           totalField: 'totalCount',
         },