Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the DATA_QUALITY icon is null. (#8822)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
a9c9eb00d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      dolphinscheduler-ui-next/src/assets/images/task-icons/data_quality.png
  2. BIN
      dolphinscheduler-ui-next/src/assets/images/task-icons/data_quality_hover.png
  3. 12
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-sidebar.tsx
  4. 6
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag.module.scss

BIN
dolphinscheduler-ui-next/src/assets/images/task-icons/data_quality.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
dolphinscheduler-ui-next/src/assets/images/task-icons/data_quality_hover.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

12
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-sidebar.tsx

@ -20,7 +20,7 @@ import {
TaskType, TaskType,
TASK_TYPES_MAP TASK_TYPES_MAP
} from '@/views/projects/task/constants/task-type' } from '@/views/projects/task/constants/task-type'
import Styles from './dag.module.scss' import styles from './dag.module.scss'
export default defineComponent({ export default defineComponent({
name: 'workflow-dag-sidebar', name: 'workflow-dag-sidebar',
@ -32,10 +32,10 @@ export default defineComponent({
})) }))
return () => ( return () => (
<div class={Styles.sidebar}> <div class={styles.sidebar}>
{allTaskTypes.map((task) => ( {allTaskTypes.map((task) => (
<div <div
class={Styles.draggable} class={styles.draggable}
draggable='true' draggable='true'
onDragstart={(e) => { onDragstart={(e) => {
context.emit('dragStart', e, task.type as TaskType) context.emit('dragStart', e, task.type as TaskType)
@ -43,10 +43,10 @@ export default defineComponent({
> >
<em <em
class={[ class={[
Styles['sidebar-icon'], styles['sidebar-icon'],
Styles['icon-' + task.type.toLocaleLowerCase()] styles['icon-' + task.type.toLocaleLowerCase()]
]} ]}
></em> />
<span>{task.alias}</span> <span>{task.alias}</span>
</div> </div>
))} ))}

6
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag.module.scss

@ -107,6 +107,9 @@ $bgLight: #ffffff;
&.icon-sub_process { &.icon-sub_process {
background-image: url('@/assets/images/task-icons/sub_process.png'); background-image: url('@/assets/images/task-icons/sub_process.png');
} }
&.icon-data_quality {
background-image: url('@/assets/images/task-icons/data_quality.png');
}
&.icon-procedure { &.icon-procedure {
background-image: url('@/assets/images/task-icons/procedure.png'); background-image: url('@/assets/images/task-icons/procedure.png');
} }
@ -162,6 +165,9 @@ $bgLight: #ffffff;
&.icon-sub_process { &.icon-sub_process {
background-image: url('@/assets/images/task-icons/sub_process_hover.png'); background-image: url('@/assets/images/task-icons/sub_process_hover.png');
} }
&.icon-data_quality {
background-image: url('@/assets/images/task-icons/data_quality_hover.png');
}
&.icon-procedure { &.icon-procedure {
background-image: url('@/assets/images/task-icons/procedure_hover.png'); background-image: url('@/assets/images/task-icons/procedure_hover.png');
} }

Loading…
Cancel
Save