mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge branch 'fix/fix-table' into 'main'
Fix/fix table See merge request apipark/APIPark!105
This commit is contained in:
@@ -178,7 +178,7 @@ export type GlobalAction =
|
||||
"name": "全局策略",
|
||||
"key": "globalpolicy",
|
||||
"path": "/globalpolicy",
|
||||
"icon": "uil:comment-shield",
|
||||
"icon": "icon-park-solid:exchange-three",
|
||||
"access": "system.settings.data_source.view"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ const DataMasking = (props: any) => {
|
||||
}
|
||||
return {
|
||||
...x,
|
||||
title: typeof x.title === 'string' ? $t(x.title as string) : x.title
|
||||
title: (<span title={$t(x.title as string)}>{$t(x.title as string)}</span>)
|
||||
}
|
||||
})
|
||||
return res
|
||||
|
||||
@@ -15,7 +15,7 @@ export const DATA_MASSKING_TABLE_COLUMNS: PageProColumns<any>[] = [
|
||||
{
|
||||
title: ('优先级'),
|
||||
dataIndex: 'priority',
|
||||
width: 140,
|
||||
width: 90,
|
||||
ellipsis: true,
|
||||
sorter: (a: any, b: any) => {
|
||||
return (a.priority as number) - (b.priority as number)
|
||||
@@ -26,6 +26,7 @@ export const DATA_MASSKING_TABLE_COLUMNS: PageProColumns<any>[] = [
|
||||
dataIndex: 'publishStatus',
|
||||
filters: true,
|
||||
onFilter: false ,
|
||||
ellipsis: true,
|
||||
width: 140,
|
||||
valueEnum: new Map(
|
||||
Object.keys(StrategyStatusEnum).map(key=>
|
||||
@@ -38,6 +39,7 @@ export const DATA_MASSKING_TABLE_COLUMNS: PageProColumns<any>[] = [
|
||||
dataIndex: 'isStop',
|
||||
filters: true,
|
||||
onFilter: false ,
|
||||
ellipsis: true,
|
||||
valueEnum: {
|
||||
false: { text: <span className="text-status_success">{$t('启用')}</span> },
|
||||
true: { text: <span className="text-status_fail">{$t('禁用')}</span> }
|
||||
|
||||
@@ -137,7 +137,7 @@ const ServiceHubDetail = () => {
|
||||
key: 'api-integrate',
|
||||
label: $t('集成'),
|
||||
children: <div className={`p-btnbase ${serviceBasicInfo?.serviceKind?.toLocaleLowerCase() === 'ai' ? 'ai-service-api-preview' : ''}`}><Integrate service={service!} /></div>,
|
||||
icon: <BgColorsOutlined />
|
||||
icon: <Icon icon="icon-park-solid:whole-site-accelerator" width="15" height="15" />,
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ const Integrate = ({ service }: { service: ServiceDetailType }) => {
|
||||
<p className={stepClass}>{$t('步骤二:导入 API 文档数据')}</p>
|
||||
<div className='my-[10px]'>{$t('可通过以下 URL 或 下载 Json 文件,导入 API 文档数据到 Agent 平台中。')}</div>
|
||||
<div className="flex w-full items-center gap-[30px]">
|
||||
<Space.Compact className=" flex-1 ">
|
||||
<Input disabled value={url} />
|
||||
<Space.Compact className="w-[700px]">
|
||||
<Input className="truncate" disabled title={url} value={url} />
|
||||
<Button type="primary" onClick={copyURL}>{$t('复制 URL')}</Button>
|
||||
</Space.Compact>
|
||||
<span className="text-[14px] font-bold">OR</span>
|
||||
|
||||
Reference in New Issue
Block a user