mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 20:58:11 +08:00
Merge pull request #3269 from break60/dev
[bugFix][ui]Fix the problem that the label of DAG creation task is not displayed,…
This commit is contained in:
commit
aefb60a743
@ -560,9 +560,9 @@ svg path:hover {
|
||||
}
|
||||
}
|
||||
|
||||
.ans-drawer.ans-drawer-right {
|
||||
width: 628px;
|
||||
left: auto;
|
||||
.ans-modal-box.ans-drawer.ans-drawer-right.dagMask.mask {
|
||||
width: 628px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
|
||||
|
@ -538,6 +538,7 @@
|
||||
eventModel.remove()
|
||||
}
|
||||
eventModel = this.$drawer({
|
||||
className: 'dagMask',
|
||||
render (h) {
|
||||
return h(mFormLineModel,{
|
||||
on: {
|
||||
@ -610,6 +611,7 @@
|
||||
closable: false,
|
||||
direction: 'right',
|
||||
escClose: true,
|
||||
className: 'dagMask',
|
||||
render: h => h(mFormModel, {
|
||||
on: {
|
||||
addTaskInfo ({ item, fromThis }) {
|
||||
|
@ -77,6 +77,9 @@
|
||||
})
|
||||
},
|
||||
ok() {
|
||||
if($(`#${this.id}`).prev().attr('class')==='jtk-overlay') {
|
||||
$(`#${this.id}`).prev().empty()
|
||||
}
|
||||
$(`#${this.id}`).text(this.labelName)
|
||||
this.$emit('addLineInfo', {
|
||||
item: {
|
||||
@ -92,12 +95,11 @@
|
||||
|
||||
},
|
||||
created () {
|
||||
let connects = this.store.state.dag.connects
|
||||
connects.filter( item => {
|
||||
if(item.endPointSourceId===this.sourceId && item.endPointTargetId===this.targetId) {
|
||||
this.labelName = item.label
|
||||
}
|
||||
});
|
||||
if($(`#${this.id}`).prev().attr('class').indexOf('jtk-overlay')!==-1) {
|
||||
this.labelName = $(`#${this.id}`).prev().text()
|
||||
} else {
|
||||
this.labelName = $(`#${this.id}`).text()
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
|
||||
|
@ -255,6 +255,7 @@ export default {
|
||||
syncDefine: state.syncDefine
|
||||
}, res => {
|
||||
resolve(res)
|
||||
state.isEditDag = false
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user