Browse Source

Merge pull request #3269 from break60/dev

[bugFix][ui]Fix the problem that the label of DAG creation task is not displayed,…
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
aefb60a743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
  2. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
  3. 14
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formLineModel.vue
  4. 1
      dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js

6
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss

@ -560,9 +560,9 @@ svg path:hover {
} }
} }
.ans-drawer.ans-drawer-right { .ans-modal-box.ans-drawer.ans-drawer-right.dagMask.mask {
width: 628px; width: 628px;
left: auto; left: auto;
} }

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

@ -538,6 +538,7 @@
eventModel.remove() eventModel.remove()
} }
eventModel = this.$drawer({ eventModel = this.$drawer({
className: 'dagMask',
render (h) { render (h) {
return h(mFormLineModel,{ return h(mFormLineModel,{
on: { on: {
@ -610,6 +611,7 @@
closable: false, closable: false,
direction: 'right', direction: 'right',
escClose: true, escClose: true,
className: 'dagMask',
render: h => h(mFormModel, { render: h => h(mFormModel, {
on: { on: {
addTaskInfo ({ item, fromThis }) { addTaskInfo ({ item, fromThis }) {

14
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formLineModel.vue

@ -77,6 +77,9 @@
}) })
}, },
ok() { ok() {
if($(`#${this.id}`).prev().attr('class')==='jtk-overlay') {
$(`#${this.id}`).prev().empty()
}
$(`#${this.id}`).text(this.labelName) $(`#${this.id}`).text(this.labelName)
this.$emit('addLineInfo', { this.$emit('addLineInfo', {
item: { item: {
@ -92,12 +95,11 @@
}, },
created () { created () {
let connects = this.store.state.dag.connects if($(`#${this.id}`).prev().attr('class').indexOf('jtk-overlay')!==-1) {
connects.filter( item => { this.labelName = $(`#${this.id}`).prev().text()
if(item.endPointSourceId===this.sourceId && item.endPointTargetId===this.targetId) { } else {
this.labelName = item.label this.labelName = $(`#${this.id}`).text()
} }
});
}, },
mounted () { mounted () {

1
dolphinscheduler-ui/src/js/conf/home/store/dag/actions.js

@ -255,6 +255,7 @@ export default {
syncDefine: state.syncDefine syncDefine: state.syncDefine
}, res => { }, res => {
resolve(res) resolve(res)
state.isEditDag = false
}).catch(e => { }).catch(e => {
reject(e) reject(e)
}) })

Loading…
Cancel
Save