任务详情添加日志列表,更新依赖

This commit is contained in:
whyour
2022-03-05 01:24:52 +08:00
parent 912b4ddb76
commit 810c6ca76c
10 changed files with 235 additions and 11790 deletions
+10 -5
View File
@@ -70,7 +70,7 @@ enum OperationPath {
'unpin',
}
const Crontab = ({ headerStyle, isPhone }: any) => {
const Crontab = ({ headerStyle, isPhone, theme }: any) => {
const columns: any = [
{
title: '任务名',
@@ -90,14 +90,16 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
trigger={isPhone ? 'click' : 'hover'}
content={
<div>
{record.labels?.map((label: string, i: number) => (
{record.labels?.map((label: string) => (
<Tag
color="blue"
onClick={() => {
onSearch(`label:${label}`);
style={{ cursor: 'point' }}
onClick={(e) => {
e.stopPropagation();
setSearchText(`label:${label}`);
}}
>
{label}
<a>{label}</a>
</Tag>
))}
</div>
@@ -838,7 +840,9 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
placeholder="请输入名称或者关键词"
style={{ width: 'auto' }}
enterButton
allowClear
loading={loading}
value={searchText}
onSearch={onSearch}
/>,
<Button key="2" type="primary" onClick={() => addCron()}>
@@ -963,6 +967,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
setIsDetailModalVisible(false);
}}
cron={detailCron}
theme={theme}
/>
</PageContainer>
);