diff --git a/video-gen-admin/src/pages/AdminOauthAppList.tsx b/video-gen-admin/src/pages/AdminOauthAppList.tsx index 070b25e9..4bba94ec 100644 --- a/video-gen-admin/src/pages/AdminOauthAppList.tsx +++ b/video-gen-admin/src/pages/AdminOauthAppList.tsx @@ -137,16 +137,16 @@ const AdminOauthAppList: React.FC = () => { useEffect(() => { load(); }, []); const columns = [ - { title: 'ID', dataIndex: 'id', + { title: 'ID', dataIndex: 'id', width: 120, render: (v: string) => {v}, }, - { title: '应用ID', dataIndex: 'appId', + { title: '应用ID', dataIndex: 'appId', width: 120, render: (v: string) => {v}, }, - { title: '应用密钥', dataIndex: 'secret', + { title: '应用密钥', dataIndex: 'secret', width: 120, render: (v: string) => {v}, }, - { title: '开户方式', dataIndex: 'openType', + { title: '开户方式', dataIndex: 'openType', width: 90, render: (v: number) => { const typeMap: Record = { 1: '千川', 2: '广告', 3: '本地推', 4: '星图', 5: '快手代理商', @@ -155,29 +155,29 @@ const AdminOauthAppList: React.FC = () => { return {typeMap[v] || v}; }, }, - { title: '归属公司', dataIndex: 'company', + { title: '归属公司', dataIndex: 'company', width: 120, render: (v: string) => {v}, }, - { title: '授权次数', dataIndex: 'count', + { title: '授权次数', dataIndex: 'maxCount', width: 90, render: (v: number) => {v}, }, - { title: '状态', dataIndex: 'status', + { title: '状态', dataIndex: 'status', width: 80, render: (v: number) => {v === 1 ? '正常' : '禁用'}, }, - { title: '授权URL', dataIndex: 'authUrl', - render: (v: string) => {v}, - }, - { title: '创建人', dataIndex: 'createBy', + { title: '授权URL', dataIndex: 'authUrl', width: 180, render: (v: string) => {v}, }, - { title: '创建时间', dataIndex: 'createdAt', + { title: '创建人', dataIndex: 'createBy', width: 120, + render: (v: string) => {v}, + }, + // { title: '创建时间', dataIndex: 'createdAt', width: 160, + // render: (v: string) => {formatDate(v)}, + // }, + { title: '更新时间', dataIndex: 'updatedAt', width: 160, render: (v: string) => {formatDate(v)}, }, - { title: '更新时间', dataIndex: 'updatedAt', - render: (v: string) => {formatDate(v)}, - }, - { title: '操作', + { title: '操作', width: 120, fixed: 'right' as const, render: (_: any, record: OAuthApp) => (