Commit 8bf64b54 authored by shirlyn.guo's avatar shirlyn.guo 🤡

refactor: 更改函数名

parent 9a444d9b
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { ref } from 'vue'
import useTableScrollY from '@/composables/useTableScrollY'
import { PaginationInfo } from '@/components/custom-pagination/custom-pagination.vue'
import { UsedRecord, UsedRecordsTableColumns } from '@/views/used-records/columns'
......@@ -20,11 +20,11 @@ const pagingInfo = ref<PaginationInfo>({
totalRows: 0,
})
onMounted(() => {
handleGetUsedRecordsList()
})
;(function () {
getUsedRecordsList()
})()
function handleGetUsedRecordsList() {
function getUsedRecordsList() {
usedRecordsTableLoading.value = true
fetchUsedRecordsList<UsedRecord[]>({
......@@ -41,13 +41,13 @@ function handleGetUsedRecordsList() {
function handleGetUsedRecordsListUpdatePageNo(pageNo: number) {
pagingInfo.value.pageNo = pageNo
handleGetUsedRecordsList()
getUsedRecordsList()
}
function handleGetUsedRecordsListUpdatePageSize(pageSize: number) {
pagingInfo.value.pageNo = 1
pagingInfo.value.pageSize = pageSize
handleGetUsedRecordsList()
getUsedRecordsList()
}
function handleToWorkbench() {
router.replace({ name: 'Workbench' })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment