Procházet zdrojové kódy

对表格的分页器增加"共多少条"总数的文案显示

刘洋 před 2 roky
rodič
revize
cf48b9939d

+ 8 - 2
src/pages/exam-manage/index.vue

@@ -61,7 +61,7 @@
         :pagination="{
           total: examTableData.totalCount,
           pageSize: query.pageSize,
-          showTotal:total => `共 ${total} 条`
+          showTotal:(total:any) => `共 ${total} 条`
         }"
         @change="currentPageChange"
         :row-class-name="
@@ -184,7 +184,13 @@ const columns: TableColumnType[] = [
     width: 160,
     ellipsis: true,
   },
-  { title: "科目数量", dataIndex: "paperCount", align: "center", width: 100, ellipsis: true },
+  {
+    title: "科目数量",
+    dataIndex: "paperCount",
+    align: "center",
+    width: 100,
+    ellipsis: true,
+  },
   { title: "操作", dataIndex: "operation", align: "center", width: 100 },
 ];
 

+ 1 - 1
src/pages/school-manage/index.vue

@@ -39,7 +39,7 @@
         :pagination="{
           total: schoolTableData.totalCount,
           pageSize: query.pageSize,
-          showTotal: (total) => `共 ${total} 条`,
+          showTotal: (total:any) => `共 ${total} 条`,
         }"
         :row-class-name="
           (_:any, index:number) => (index % 2 === 1 ? 'table-striped' : null)

+ 1 - 1
src/pages/subjects-manage/index.vue

@@ -122,7 +122,7 @@
         :pagination="{
           total: subjectsTableData.totalCount,
           pageSize: query.pageSize,
-          showTotal: (total) => `共 ${total} 条`,
+          showTotal: (total:any) => `共 ${total} 条`,
         }"
         @change="currentPageChange"
         :row-class-name="

+ 1 - 1
src/pages/user-manage/index.vue

@@ -70,7 +70,7 @@
         :pagination="{
           total: userTableData.totalCount,
           pageSize: query.pageSize,
-          showTotal: (total) => `共 ${total} 条`,
+          showTotal: (total:any) => `共 ${total} 条`,
         }"
         @change="currentPageChange"
         :row-class-name="