From b1e328d92d9917e8a76c5ef8214b3b34fcdee827 Mon Sep 17 00:00:00 2001 From: Lrd <13001933075@sina.cn> Date: Fri, 3 Jul 2026 11:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A0=E6=9D=90=E4=BA=91=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=9B=BE=E7=89=87=E5=8D=A0=E4=BD=8D=E7=AC=A6?= =?UTF-8?q?=EF=BC=8C=E5=AF=B9=E6=8E=A5=E6=8E=88=E6=9D=83=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/AdminOauthAppList.tsx | 34 +++++----- video-gen-app/src/index.css | 9 +++ video-gen-app/src/pages/AuthorizationPage.tsx | 22 +++--- video-gen-app/src/pages/GeneratedRecord.tsx | 68 ++++++++++++++++--- 4 files changed, 96 insertions(+), 37 deletions(-) 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) => (