diff --git a/src/modules/knowledge/views/film/index.vue b/src/modules/knowledge/views/film/index.vue index 5e0361a..012c7d8 100644 --- a/src/modules/knowledge/views/film/index.vue +++ b/src/modules/knowledge/views/film/index.vue @@ -16,7 +16,7 @@ tips="请按照模板填写电影信息,名称为必填项" /> - + { + const cols: any[] = Table?.columns ? [...Table.columns] : []; + const base = cols.filter((e: any) => !['selection', 'expand', 'index', 'op'].includes(e.type)); + + base.push( + { label: '国家', prop: 'country', width: 100 }, + { label: '语言', prop: 'language', width: 100 }, + { label: '主要人物', prop: 'mainCharacters', minWidth: 200 }, + { label: '内容简介', prop: 'synopsis', minWidth: 300 }, + { label: '背景故事', prop: 'backgroundStory', minWidth: 300 }, + { label: '荣誉', prop: 'honors', minWidth: 200 }, + { label: '亮点所在', prop: 'highlights', minWidth: 200 }, + { label: '为什么值得一看', prop: 'whyWorthWatching', minWidth: 300 }, + { label: '链接', prop: 'link', minWidth: 200 }, + { label: 'TMDB评分', prop: 'tmdbRating', width: 100 }, + { label: '更新时间', prop: 'updateTime', minWidth: 170 } + ); + + return base; +}); + // cl-upsert 配置 - 新增/编辑表单 const Upsert = useUpsert({ dialog: {