|
|
@ -31,7 +31,7 @@ import { |
|
|
|
} from '@/service/modules/process-definition' |
|
|
|
} from '@/service/modules/process-definition' |
|
|
|
import TableAction from './components/table-action' |
|
|
|
import TableAction from './components/table-action' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import { NTag, NSpace, NIcon, NButton, NEllipsis } from 'naive-ui' |
|
|
|
import { NTag, NSpace, NIcon, NButton, NEllipsis, NTooltip } from 'naive-ui' |
|
|
|
import { CopyOutlined } from '@vicons/antd' |
|
|
|
import { CopyOutlined } from '@vicons/antd' |
|
|
|
import ButtonLink from '@/components/button-link' |
|
|
|
import ButtonLink from '@/components/button-link' |
|
|
|
import { |
|
|
|
import { |
|
|
@ -129,17 +129,21 @@ export function useTable() { |
|
|
|
key: 'copy', |
|
|
|
key: 'copy', |
|
|
|
...COLUMN_WIDTH_CONFIG['copy'], |
|
|
|
...COLUMN_WIDTH_CONFIG['copy'], |
|
|
|
render: (row) => |
|
|
|
render: (row) => |
|
|
|
h( |
|
|
|
h(NTooltip, null, { |
|
|
|
NButton, |
|
|
|
trigger: () => |
|
|
|
{ |
|
|
|
h( |
|
|
|
quaternary: true, |
|
|
|
NButton, |
|
|
|
circle: true, |
|
|
|
{ |
|
|
|
type: 'info', |
|
|
|
quaternary: true, |
|
|
|
size: 'tiny', |
|
|
|
circle: true, |
|
|
|
onClick: () => void copy(row.name) |
|
|
|
type: 'info', |
|
|
|
}, |
|
|
|
size: 'tiny', |
|
|
|
{ icon: () => h(NIcon, { size: 16 }, () => h(CopyOutlined)) } |
|
|
|
onClick: () => void copy(row.name) |
|
|
|
) |
|
|
|
}, |
|
|
|
|
|
|
|
{ icon: () => h(NIcon, { size: 16 }, () => h(CopyOutlined)) } |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
default: () => t('project.workflow.copy_workflow_name') |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: t('project.workflow.status'), |
|
|
|
title: t('project.workflow.status'), |
|
|
@ -148,19 +152,19 @@ export function useTable() { |
|
|
|
render: (row) => |
|
|
|
render: (row) => |
|
|
|
row.releaseState === 'ONLINE' |
|
|
|
row.releaseState === 'ONLINE' |
|
|
|
? h( |
|
|
|
? h( |
|
|
|
NTag, |
|
|
|
NTag, |
|
|
|
{ type: 'success', size: 'small' }, |
|
|
|
{ type: 'success', size: 'small' }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
default: () => t('project.workflow.up_line') |
|
|
|
default: () => t('project.workflow.up_line') |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
: h( |
|
|
|
: h( |
|
|
|
NTag, |
|
|
|
NTag, |
|
|
|
{ type: 'warning', size: 'small' }, |
|
|
|
{ type: 'warning', size: 'small' }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
default: () => t('project.workflow.down_line') |
|
|
|
default: () => t('project.workflow.down_line') |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: t('project.workflow.schedule_publish_status'), |
|
|
|
title: t('project.workflow.schedule_publish_status'), |
|
|
@ -309,7 +313,7 @@ export function useTable() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const batchCopyWorkflow = () => { } |
|
|
|
const batchCopyWorkflow = () => {} |
|
|
|
|
|
|
|
|
|
|
|
const releaseWorkflow = (row: any) => { |
|
|
|
const releaseWorkflow = (row: any) => { |
|
|
|
const data = { |
|
|
|
const data = { |
|
|
|