Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the is no tooltip for timing management table editing and up and down buttons. (#8716)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
698c795d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/table-action.tsx
  2. 28
      dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts

6
dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/table-action.tsx

@ -56,7 +56,6 @@ export default defineComponent({
'gotoWorkflowTree'
],
setup(props, ctx) {
const handleEditWorkflow = () => {
ctx.emit('editWorkflow')
}
@ -178,7 +177,10 @@ export default defineComponent({
</NTooltip>
<NTooltip trigger={'hover'}>
{{
default: () => releaseState === 'ONLINE'? t('project.workflow.down_line'):t('project.workflow.up_line'),
default: () =>
releaseState === 'ONLINE'
? t('project.workflow.down_line')
: t('project.workflow.up_line'),
trigger: () => (
<NButton
size='small'

28
dolphinscheduler-ui-next/src/views/projects/workflow/definition/timing/use-table.ts

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

Loading…
Cancel
Save