mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
修复任务详情查看脚本错误
This commit is contained in:
@@ -110,7 +110,7 @@ const CronDetailModal = ({
|
||||
minimap: { enabled: false },
|
||||
lineNumbersMinChars: 3,
|
||||
glyphMargin: false,
|
||||
accessibilitySupport: 'off'
|
||||
accessibilitySupport: 'off',
|
||||
}}
|
||||
onMount={(editor, monaco) => {
|
||||
editorRef.current = editor;
|
||||
@@ -162,8 +162,9 @@ const CronDetailModal = ({
|
||||
setValue(data);
|
||||
}
|
||||
});
|
||||
} else if (result) {
|
||||
} else {
|
||||
setValidTabs([validTabs[0]]);
|
||||
setActiveTabKey('log');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -359,10 +360,15 @@ const CronDetailModal = ({
|
||||
<Modal
|
||||
title={
|
||||
<div className="crontab-title-wrapper">
|
||||
<div style={{ minWidth: 0 }}>
|
||||
<div style={{ minWidth: 0, display: 'flex', alignItems: 'center' }}>
|
||||
<Typography.Text
|
||||
style={{ width: '100%' }}
|
||||
ellipsis={{ tooltip: currentCron.name }}
|
||||
style={{ width: 200, boxSizing: 'content-box' }}
|
||||
ellipsis={{
|
||||
onEllipsis(ellipsis) {
|
||||
return ellipsis;
|
||||
},
|
||||
tooltip: currentCron.name,
|
||||
}}
|
||||
>
|
||||
{currentCron.name}
|
||||
</Typography.Text>
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
|
||||
.operations {
|
||||
display: flex;
|
||||
|
||||
@@ -75,18 +75,16 @@ const Crontab = () => {
|
||||
style={{
|
||||
wordBreak: 'break-all',
|
||||
marginBottom: 0,
|
||||
color: '#1890ff'
|
||||
color: '#1890ff',
|
||||
cursor: 'pointer'
|
||||
}}
|
||||
ellipsis={{ tooltip: text, rows: 2 }}
|
||||
onClick={() => {
|
||||
setDetailCron(record);
|
||||
setIsDetailModalVisible(true);
|
||||
}}
|
||||
>
|
||||
<Link
|
||||
onClick={() => {
|
||||
setDetailCron(record);
|
||||
setIsDetailModalVisible(true);
|
||||
}}
|
||||
>
|
||||
{record.name || '-'}
|
||||
</Link>
|
||||
<Link>{record.name || '-'}</Link>
|
||||
</Paragraph>
|
||||
),
|
||||
sorter: {
|
||||
|
||||
Reference in New Issue
Block a user