Forráskód Böngészése

fix: 修复应急管理演练计划分页Bug

bxy 5 hónapja
szülő
commit
4f95346f71

+ 7 - 11
src/views/emergency/emergency-drill/PageDrillPlanList.vue

@@ -14,7 +14,7 @@
           <BasicSearch
             :searchConfig="DRILL_PLAN_LIST_SEARCH_CONFIG"
             :searchData="searchData"
-            @update:searchData="handleSearch"
+            @update:search-data="handleSearch"
           >
             <template #drillScope>
               <el-select v-model="searchData.drillScope" placeholder="全部" filterable>
@@ -32,8 +32,8 @@
         <BasicTable
           :tableConfig="tableConfig"
           :tableData="tableData"
-          @update:pageSize="handleSizeChange"
-          @update:pageNumber="handleCurrentChange"
+          @update:page-size="handleSizeChange"
+          @update:page-number="handleCurrentChange"
         >
           <template #drillScope="scope">
             <div>{{ decodeScope(scope.row.drillScope) }}</div>
@@ -43,17 +43,13 @@
           </template>
           <template #action="scope">
             <div class="action-container--div">
-              <ActionButton text="查看" @click="handleViewDrillPlan(scope.row.id)"></ActionButton>
+              <ActionButton text="查看" @click="handleViewDrillPlan(scope.row.id)" />
               <ActionButton
                 v-if="scope.row.status > 0 && scope.row.status <= 3"
                 text="演练执行"
                 @click="handleToExecute(scope.row.id)"
-              ></ActionButton>
-              <ActionButton
-                v-else-if="scope.row.status < 7"
-                text="演练记录"
-                @click="handleToRecord(scope.row)"
-              ></ActionButton>
+              />
+              <ActionButton v-else-if="scope.row.status < 7" text="演练记录" @click="handleToRecord(scope.row)" />
               <ActionButton
                 text="删除"
                 :popconfirm="{
@@ -127,7 +123,7 @@
   };
   const handleCurrentChange = (value: number) => {
     pagination.pageNumber = value;
-    tableQuery.pageSize = value;
+    tableQuery.pageNumber = value;
     getTableData();
   };