import Pagination from '@/components/pagination'
import { NDataTable } from 'naive-ui'
import { defineComponent, onMounted, reactive } from 'vue'
import { sysSuggestionPage } from '../api'
import { filterClientType, filterSuggestionType } from '@/utils/filters'
import TheTooltip from '@/components/TheTooltip'
export default defineComponent({
name: 'subsidy-list',
setup() {
const state = reactive({
loading: false,
pagination: {
page: 1,
rows: 10,
pageTotal: 0
},
searchForm: {
keyword: null,
status: null
},
dataList: [] as any
})
const columns = () => {
return [
{
title: '建议类型',
key: 'type',
width: 100,
render(row: any) {
return filterSuggestionType(row.type)
}
},
{
title: '学校名称',
key: 'schoolName',
render(row: any) {
return