|
|
@@ -67,16 +67,16 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(inform
|
|
|
})
|
|
|
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { field: 'columnname', label: '资讯类型' },
|
|
|
- { field: 'title', label: '标题' },
|
|
|
- { field: 'srcname', label: '来源' },
|
|
|
- { field: 'author', label: '作者' },
|
|
|
- { field: 'istop', label: '是否置顶', formatValue: (val) => flagEnum.getEnumTypeName(val) },
|
|
|
- { field: 'isshow', label: '是否展示', formatValue: (val) => flagEnum.getEnumTypeName(val) },
|
|
|
- { field: 'publishdate', label: '发布日期', formatValue: (val) => formatDate(val, 'YYYY-MM-DD') },
|
|
|
- { field: 'status', label: '状态', formatValue: (val) => columnDetailStatusEnum.getEnumTypeName(val) },
|
|
|
- { field: 'creatoruser', label: '创建人' },
|
|
|
- { field: 'creaedate', label: '创建时间', formatValue: (val) => formatDate(val) },
|
|
|
+ { field: 'columnname', label: 'notice.news.columnname' },
|
|
|
+ { field: 'title', label: 'notice.news.title' },
|
|
|
+ { field: 'srcname', label: 'notice.news.srcname' },
|
|
|
+ { field: 'author', label: 'notice.news.author' },
|
|
|
+ { field: 'istop', label: 'notice.news.istop', formatValue: (val) => flagEnum.getEnumTypeName(val) },
|
|
|
+ { field: 'isshow', label: 'notice.news.isshow', formatValue: (val) => flagEnum.getEnumTypeName(val) },
|
|
|
+ { field: 'publishdate', label: 'notice.news.publishdate', formatValue: (val) => formatDate(val, 'YYYY-MM-DD') },
|
|
|
+ { field: 'status', label: 'notice.news.status', formatValue: (val) => columnDetailStatusEnum.getEnumTypeName(val) },
|
|
|
+ { field: 'creatoruser', label: 'notice.news.creatoruser' },
|
|
|
+ { field: 'creaedate', label: 'notice.news.creaedate', formatValue: (val) => formatDate(val) },
|
|
|
{ field: 'operate', label: 'common.operate', fixed: 'right', width: 180 }
|
|
|
])
|
|
|
|
|
|
@@ -84,7 +84,7 @@ const { filterOption, getQueryParams, resetFilters } = useDataFilter<Notice.Info
|
|
|
filters: [
|
|
|
{
|
|
|
field: 'columnid',
|
|
|
- label: '类型',
|
|
|
+ label: t('notice.news.columnid'),
|
|
|
options: () => data.value?.siteColumnconfig.map((e) => ({
|
|
|
label: e.columnname,
|
|
|
value: e.id
|
|
|
@@ -92,16 +92,16 @@ const { filterOption, getQueryParams, resetFilters } = useDataFilter<Notice.Info
|
|
|
},
|
|
|
{
|
|
|
field: 'status',
|
|
|
- label: '状态',
|
|
|
+ label: t('notice.news.status'),
|
|
|
options: () => columnDetailStatusEnum.getEnumOptions()
|
|
|
},
|
|
|
{
|
|
|
field: 'title',
|
|
|
- label: '标题'
|
|
|
+ label: t('notice.news.title')
|
|
|
},
|
|
|
{
|
|
|
field: 'isshow',
|
|
|
- label: '是否展示',
|
|
|
+ label: t('notice.news.isshow'),
|
|
|
options: () => flagEnum.getEnumOptions()
|
|
|
},
|
|
|
],
|