Kaynağa Gözat

分页总页数

lrf402788946 5 yıl önce
ebeveyn
işleme
31b1513215

+ 2 - 1
src/layout/detail/web-jobs.vue

@@ -23,7 +23,8 @@
       </el-row>
       <el-row v-if="!type">
         <el-col :span="24" style="text-align:center">
-          <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next" :total="totalRow">
+          <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="slot, total, prev, pager, next" :total="totalRow">
+            <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
           </el-pagination>
         </el-col>
       </el-row>

+ 2 - 1
src/views/info/list.vue

@@ -25,7 +25,8 @@
       </el-col>
     </el-row>
     <el-row style="margin-top:1rem;">
-      <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next, jumper" :total="totalRow">
+      <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="slot, total, prev, pager, next, jumper" :total="totalRow">
+        <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
       </el-pagination>
     </el-row>
   </div>

+ 9 - 5
src/views/jobfair/list.vue

@@ -62,7 +62,14 @@
       </el-col>
       <el-col :span="24" class="list" style="padding-top:50px" v-else v-loading="loading"></el-col>
       <el-col :span="24" class="page">
-        <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next, jumper" :total="totalRow">
+        <el-pagination
+          @current-change="search"
+          :current-page="currentPage"
+          :page-size="$limit"
+          layout="slot, total, prev, pager, next, jumper"
+          :total="totalRow"
+        >
+          <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
         </el-pagination>
       </el-col>
     </el-row>
@@ -85,10 +92,7 @@ export default {
     currentPage: 1,
     list: [],
     totalRow: 0,
-    filter: [
-      { label: '城市', name: 'city' },
-      { label: '地址', name: 'address' },
-    ],
+    filter: [{ label: '城市', name: 'city' }, { label: '地址', name: 'address' }],
     loading: false,
   }),
   created() {

+ 9 - 5
src/views/jobinfo/list.vue

@@ -68,7 +68,14 @@
       </el-col>
       <el-col :span="24" class="list" style="padding-top:50px" v-else v-loading="loading"></el-col>
       <el-col :span="24" class="page">
-        <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next, jumper" :total="totalRow">
+        <el-pagination
+          @current-change="search"
+          :current-page="currentPage"
+          :page-size="$limit"
+          layout="slot, total, prev, pager, next, jumper"
+          :total="totalRow"
+        >
+          <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
         </el-pagination>
       </el-col>
     </el-row>
@@ -92,10 +99,7 @@ export default {
     totalRow: 0,
     list: [],
     loading: false,
-    filter: [
-      { label: '企业名称', name: 'corpname' },
-      { label: '标题', name: 'title' },
-    ],
+    filter: [{ label: '企业名称', name: 'corpname' }, { label: '标题', name: 'title' }],
   }),
   created() {
     this.search();

+ 3 - 5
src/views/jobs/list.vue

@@ -72,7 +72,8 @@
       </el-col>
       <el-col :span="24" class="list" style="padding-top:50px" v-else v-loading="loading"></el-col>
       <el-col :span="24" class="page">
-        <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next, jumper" :total="totalRow">
+        <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="slot, total, prev, pager, next, jumper" :total="totalRow">
+          <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
         </el-pagination>
       </el-col>
     </el-row>
@@ -95,10 +96,7 @@ export default {
     currentPage: 1,
     totalRow: 0,
     list: [],
-    filter: [
-      { label: '职位名称', name: 'job_name' },
-      { label: '企业名称', name: 'corpname' },
-    ],
+    filter: [{ label: '职位名称', name: 'job_name' }, { label: '企业名称', name: 'corpname' }],
     loading: false,
   }),
   created() {

+ 9 - 5
src/views/talk/list.vue

@@ -61,7 +61,14 @@
       </el-col>
       <el-col :span="24" class="list" style="padding-top:50px" v-else v-loading="loading"></el-col>
       <el-col :span="24" class="page">
-        <el-pagination @current-change="search" :current-page="currentPage" :page-size="$limit" layout="total, prev, pager, next, jumper" :total="totalRow">
+        <el-pagination
+          @current-change="search"
+          :current-page="currentPage"
+          :page-size="$limit"
+          layout="slot, total, prev, pager, next, jumper"
+          :total="totalRow"
+        >
+          <span style="font-size:13px;margin-right: 10px;font-weight: 400;color: #606266;">共 {{ Math.ceil(totalRow / $limit) }} 页</span>
         </el-pagination>
       </el-col>
     </el-row>
@@ -84,10 +91,7 @@ export default {
     currentPage: 1,
     totalRow: 0,
     list: [],
-    filter: [
-      { label: '标题', name: 'title' },
-      { label: '企业名称', name: 'corpname' },
-    ],
+    filter: [{ label: '标题', name: 'title' }, { label: '企业名称', name: 'corpname' }],
     loading: false,
   }),
   created() {