jiaxiaoqiang 10 місяців тому
батько
коміт
1b955d2409

+ 1 - 0
src/components/Pagination/index.vue

@@ -60,6 +60,7 @@ const currentPage = useVModel(props, "page", emit);
 const pageSize = useVModel(props, "limit", emit);
 
 function handleSizeChange(val: number) {
+  currentPage.value = 1;
   emit("pagination", { page: currentPage, limit: val });
 }
 

+ 2 - 5
src/views/analysis/spc/index.vue

@@ -166,7 +166,7 @@ const currentOption = reactive({
   total: 0,
   page: 1,
   limit: 10,
-  pageSizes: [10],
+
 });
 const showStatus = ref(true);
 const tableData = ref([]);
@@ -212,10 +212,7 @@ const toRuler = (row) => {
   router.push({ name: "SPCrules" });
 };
 const getData = async (obj) => {
-  if (obj) {
-    currentOption.page = obj.page;
-    currentOption.limit = obj.limit;
-  }
+
   const { data, code } = await getTableData({
     ...searchRef.value.searchForm,
     pageNo: currentOption.page,