<template>
	<el-card shadow="never" class="page">
		<el-table :data="tableData" style="width: 100%" row-key="id" v-loading="loading">
			<el-table-column prop="id" label="ID" width="100" show-overflow-tooltip v-col="'id'"></el-table-column>
			<el-table-column label="操作" align="center"></el-table-column>
		</el-table>
		<pagination v-if="params.total" :total="params.total" v-model:page="params.pageNum" v-model:limit="params.pageSize" @pagination="getList()" />
	</el-card>
</template>

<script lang="ts" setup>
import api from '/@/api/modules/policy'
import { useSearch } from '/@/hooks/useCommon'

const { params, tableData, getList, loading } = useSearch<any[]>(api.log.getList, 'Data', { status: undefined })
getList()
</script>
