From 1793f394bcfc11a681d9dfb63494ac605fa1591d Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Sat, 16 Mar 2024 10:11:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/air/src/components/LogsTable.js | 62 +++++++++++++++-------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/web/air/src/components/LogsTable.js b/web/air/src/components/LogsTable.js index 3410f17a..004188c3 100644 --- a/web/air/src/components/LogsTable.js +++ b/web/air/src/components/LogsTable.js @@ -71,7 +71,7 @@ const LogsTable = () => { render: (text, record, index) => { return (isAdminUser ?
showUserInfo(record.user_id)}> + onClick={() => showUserInfo(record.user_id)}> {typeof text === 'string' && text.slice(0, 1)} {text} @@ -99,16 +99,18 @@ const LogsTable = () => { }}> {text}
: <>); } - }, { - title: '用时', dataIndex: 'use_time', render: (text, record, index) => { - return (
- - {renderUseTime(text)} - {renderIsStream(record.is_stream)} - -
); - } - }, { + }, + // { + // title: '用时', dataIndex: 'use_time', render: (text, record, index) => { + // return (
+ // + // {renderUseTime(text)} + // {renderIsStream(record.is_stream)} + // + //
); + // } + // }, + { title: '提示', dataIndex: 'prompt_tokens', render: (text, record, index) => { return (record.type === 0 || record.type === 2 ?
{ {text} } @@ -129,7 +131,7 @@ const LogsTable = () => { }, { title: '详情', dataIndex: 'content', render: (text, record, index) => { return + style={{ maxWidth: 240 }}> {text} ; } @@ -341,33 +343,33 @@ const LogsTable = () => {
<> handleInputChange(value, 'token_name')} /> + placeholder={'可选值'} name="token_name" + onChange={value => handleInputChange(value, 'token_name')} /> handleInputChange(value, 'model_name')} /> + placeholder="可选值" + name="model_name" + onChange={value => handleInputChange(value, 'model_name')} /> handleInputChange(value, 'start_timestamp')} /> + initValue={start_timestamp} + value={start_timestamp} type="dateTime" + name="start_timestamp" + onChange={value => handleInputChange(value, 'start_timestamp')} /> handleInputChange(value, 'end_timestamp')} /> + initValue={end_timestamp} + value={end_timestamp} type="dateTime" + name="end_timestamp" + onChange={value => handleInputChange(value, 'end_timestamp')} /> {isAdminUser && <> handleInputChange(value, 'channel')} /> + placeholder="可选值" name="channel" + onChange={value => handleInputChange(value, 'channel')} /> handleInputChange(value, 'username')} /> + placeholder={'可选值'} name="username" + onChange={value => handleInputChange(value, 'username')} /> } + onClick={refresh} loading={loading}>查询