|
|
@ -18,7 +18,14 @@ |
|
|
|
import { h, ref, reactive } from 'vue' |
|
|
|
import { h, ref, reactive } from 'vue' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { NSpace, NTooltip, NButton, NPopconfirm, NEllipsis } from 'naive-ui' |
|
|
|
import { |
|
|
|
|
|
|
|
NSpace, |
|
|
|
|
|
|
|
NTooltip, |
|
|
|
|
|
|
|
NButton, |
|
|
|
|
|
|
|
NPopconfirm, |
|
|
|
|
|
|
|
NEllipsis, |
|
|
|
|
|
|
|
NIcon |
|
|
|
|
|
|
|
} from 'naive-ui' |
|
|
|
import { |
|
|
|
import { |
|
|
|
deleteScheduleById, |
|
|
|
deleteScheduleById, |
|
|
|
offline, |
|
|
|
offline, |
|
|
@ -100,6 +107,11 @@ export function useTable() { |
|
|
|
render: (row) => { |
|
|
|
render: (row) => { |
|
|
|
return h(NSpace, null, { |
|
|
|
return h(NSpace, null, { |
|
|
|
default: () => [ |
|
|
|
default: () => [ |
|
|
|
|
|
|
|
h( |
|
|
|
|
|
|
|
NTooltip, |
|
|
|
|
|
|
|
{}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
trigger: () => |
|
|
|
h( |
|
|
|
h( |
|
|
|
NButton, |
|
|
|
NButton, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -115,6 +127,14 @@ export function useTable() { |
|
|
|
icon: () => h(EditOutlined) |
|
|
|
icon: () => h(EditOutlined) |
|
|
|
} |
|
|
|
} |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
default: () => t('project.workflow.edit') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
h( |
|
|
|
|
|
|
|
NTooltip, |
|
|
|
|
|
|
|
{}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
trigger: () => |
|
|
|
h( |
|
|
|
h( |
|
|
|
NButton, |
|
|
|
NButton, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -134,6 +154,12 @@ export function useTable() { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
default: () => |
|
|
|
|
|
|
|
row.releaseState === 'ONLINE' |
|
|
|
|
|
|
|
? t('project.workflow.down_line') |
|
|
|
|
|
|
|
: t('project.workflow.up_line') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
), |
|
|
|
h( |
|
|
|
h( |
|
|
|
NPopconfirm, |
|
|
|
NPopconfirm, |
|
|
|
{ |
|
|
|
{ |
|
|
|