|
@@ -44,6 +44,7 @@
|
|
|
@change="getList"
|
|
|
rowKey="id"
|
|
|
:loading="loading"
|
|
|
+ :pagination="tablePageOptions"
|
|
|
>
|
|
|
<template #operation="{ record }">
|
|
|
<a @click="onRateConfig(record)">回传配置</a>
|
|
@@ -137,6 +138,7 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import useApp from "@/hooks/useApp";
|
|
|
+import usePagination from "@/hooks/usePagination";
|
|
|
import { defineComponent, reactive, toRefs, ref } from "vue";
|
|
|
import { onBeforeRouteUpdate } from "vue-router";
|
|
|
import { TableColumnOfYuewen } from "../_pageOptions/table_yuewen";
|
|
@@ -152,6 +154,7 @@ import UserData from "./components/user-data.vue";
|
|
|
const PutDataIndex = defineComponent({
|
|
|
components: { UserData },
|
|
|
setup() {
|
|
|
+ let { tablePageOptions } = usePagination();
|
|
|
const formRef = ref();
|
|
|
const state = reactive({
|
|
|
search: {
|
|
@@ -185,7 +188,7 @@ const PutDataIndex = defineComponent({
|
|
|
],
|
|
|
},
|
|
|
});
|
|
|
- return { ...toRefs(state), formRef };
|
|
|
+ return { ...toRefs(state), formRef,tablePageOptions };
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getList({ current: 1 });
|