wenhongquan 2 years ago
parent
commit
252f8c612f
2 changed files with 6 additions and 5 deletions
  1. 1 1
      src/api/system/facilities.js
  2. 5 4
      src/views/system/facilities/index.vue

+ 1 - 1
src/api/system/facilities.js

@@ -49,4 +49,4 @@ export function delFacilities(id) {
         url: '/system/facilities/' + id,
         method: 'delete'
     })
-}
+}

+ 5 - 4
src/views/system/facilities/index.vue

@@ -195,12 +195,11 @@
         </template>
       </el-table-column>
     </el-table>
-
     <pagination
-      v-show="total > 0"
+
       :total="total"
-      :page.sync="queryParams.pageNum"
-      :limit.sync="queryParams.pageSize"
+       v-model:page="queryParams.params.pageNum"
+      v-model:limit="queryParams.params.pageSize"
       @pagination="getList"
     />
 
@@ -598,7 +597,9 @@ onMounted(() => {
 });
 
 const getList = () => {
+  // debugger
   loading.value = true;
+
   listFacilities1(queryParams.value).then((response) => {
     facilitiesList.value = response.rows.map((i) => {
       i.ext1 = JSON.parse(i.ext1);