|
@@ -35,8 +35,8 @@ const { rows, total, page, pageSize, loading, error, fetchList } = useListPage<I
|
|
|
|
|
|
|
|
/** 列定义(数据驱动;formatter 返回字符串,README §3.3-6) */
|
|
/** 列定义(数据驱动;formatter 返回字符串,README §3.3-6) */
|
|
|
const columns: ListColumn<InstitutionDTO>[] = [
|
|
const columns: ListColumn<InstitutionDTO>[] = [
|
|
|
- { prop: 'name', label: '机构名称', minWidth: 200 },
|
|
|
|
|
- { prop: 'creditCode', label: '统一社会信用代码', minWidth: 200 },
|
|
|
|
|
|
|
+ { prop: 'institutionName', label: '机构名称', minWidth: 200 },
|
|
|
|
|
+ { prop: 'institutionCode', label: '机构编码', minWidth: 200 },
|
|
|
{ prop: 'status', label: '状态', formatter: (row) => formatStatus(row.status) },
|
|
{ prop: 'status', label: '状态', formatter: (row) => formatStatus(row.status) },
|
|
|
{ prop: 'createdAt', label: '创建时间', formatter: (row) => formatDateTime(row.createdAt) },
|
|
{ prop: 'createdAt', label: '创建时间', formatter: (row) => formatDateTime(row.createdAt) },
|
|
|
];
|
|
];
|
|
@@ -68,8 +68,8 @@ onMounted(() => {
|
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
|
<el-input v-model="filters.keyword" placeholder="搜索机构名称" clearable class="toolbar-input" />
|
|
<el-input v-model="filters.keyword" placeholder="搜索机构名称" clearable class="toolbar-input" />
|
|
|
<el-select v-model="filters.status" placeholder="状态" clearable class="toolbar-select">
|
|
<el-select v-model="filters.status" placeholder="状态" clearable class="toolbar-select">
|
|
|
- <el-option :value="1" label="启用" />
|
|
|
|
|
- <el-option :value="0" label="停用" />
|
|
|
|
|
|
|
+ <el-option value="active" label="启用" />
|
|
|
|
|
+ <el-option value="disabled" label="停用" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</template>
|
|
</template>
|
|
|
</ListPage>
|
|
</ListPage>
|