Browse Source

dag add close button

pull/3/MERGE
BoYiZhang 4 years ago
parent
commit
038beff923
  1. 24
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

24
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

@ -101,6 +101,17 @@
@click="_rtNodesDag" > @click="_rtNodesDag" >
{{$t('Return_1')}} {{$t('Return_1')}}
</x-button> </x-button>
<x-button
type="primary"
v-tooltip.light="$t('Close')"
icon="ans-icon-off"
size="xsmall"
data-container="body"
v-if="(type === 'instance' || 'definition') "
style="vertical-align: middle;"
@click="_closeDAG">
{{$t('Close')}}
</x-button>
<x-button <x-button
style="vertical-align: middle;" style="vertical-align: middle;"
type="primary" type="primary"
@ -180,7 +191,7 @@
], ],
Connector: 'Bezier', Connector: 'Bezier',
PaintStyle: { lineWidth: 2, stroke: '#456' }, // Connection style PaintStyle: { lineWidth: 2, stroke: '#456' }, // Connection style
HoverPaintStyle: {stroke: '#ccc', strokeWidth: 3}, HoverPaintStyle: {stroke: '#ccc', strokeWidth: 3},
ConnectionOverlays: [ ConnectionOverlays: [
[ [
'Arrow', 'Arrow',
@ -377,6 +388,15 @@
}) })
}) })
}, },
_closeDAG(){
let $name = this.$route.name
if($name && $name.indexOf("definition") != -1){
this.$router.push({ name: 'projects-definition-list'})
}else{
this.$router.push({ name: 'projects-instance-list'})
}
},
_verifConditions (value) { _verifConditions (value) {
let tasks = value let tasks = value
let bool = true let bool = true
@ -620,7 +640,7 @@
], ],
Connector: 'Bezier', Connector: 'Bezier',
PaintStyle: { lineWidth: 2, stroke: '#456' }, // Connection style PaintStyle: { lineWidth: 2, stroke: '#456' }, // Connection style
HoverPaintStyle: {stroke: '#ccc', strokeWidth: 3}, HoverPaintStyle: {stroke: '#ccc', strokeWidth: 3},
ConnectionOverlays: [ ConnectionOverlays: [
[ [
'Arrow', 'Arrow',

Loading…
Cancel
Save