Skip to content

Commit 4cc31d4

Browse files
author
汪鸣峰
committed
Merge branch 'hotfix/20211202' into 'develop'
Hotfix/20211202 See merge request luban/dataspherestudio!259
2 parents 716da95 + f62fbaf commit 4cc31d4

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

web/src/apps/dataGovernance/view/assetsInfo/components/lineage/index.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
name: 'lineage',
1414
data() {
1515
return {
16-
canvas: null
16+
canvas: null,
1717
}
1818
},
1919
props: {
@@ -22,6 +22,11 @@ export default {
2222
required: true
2323
}
2424
},
25+
watch: {
26+
lineageData() {
27+
this.createOrUpdateCanvas(this.convertData())
28+
}
29+
},
2530
methods: {
2631
convertData() {
2732
let data = {
@@ -93,7 +98,7 @@ export default {
9398
})
9499
this.canvas.draw(data);
95100
} else {
96-
this.canvas.drageReDraw(data);
101+
this.canvas.redraw(data);
97102
}
98103
}
99104
},

web/src/apps/dataGovernance/view/assetsInfo/index.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<div class="assets-info-b-l-content-item">
4242
<label for="comment">描述</label>
4343
<span v-show="!isCommentEdit">{{ basicData.comment }}</span>
44-
<Input
44+
<!-- <Input
4545
v-show="isCommentEdit"
4646
v-model="basicData.comment"
4747
size="small"
@@ -59,7 +59,7 @@
5959
v-else
6060
@click="editSingleComment"
6161
style="float:right;cursor: pointer;"
62-
></Icon>
62+
></Icon> -->
6363
</div>
6464
<div class="assets-info-b-l-content-item" style="overflow: hidden">
6565
<label for="labels">标签</label>
@@ -77,10 +77,17 @@
7777
<Input
7878
v-show="isLabelEdit"
7979
v-model="singleLabel"
80+
style="width: 135px;"
8081
size="small"
8182
placeholder=""
8283
@on-enter="editSingleLabel"
8384
/>
85+
<Icon
86+
type="md-checkmark"
87+
v-show="isLabelEdit"
88+
@click="editSingleLabel"
89+
style="margin-left: 8px; cursor: pointer;"
90+
></Icon>
8491
<span
8592
v-for="label in labelOptions"
8693
:key="label"
@@ -163,7 +170,7 @@
163170
<div class="dagreLayout-page" v-if="lineageData">
164171
<lineage
165172
class="flow-canvas"
166-
id="dag-canvas"
173+
id='dag-canvas'
167174
:lineageData="lineageData"
168175
></lineage>
169176
</div>
@@ -367,9 +374,7 @@ export default {
367374
item.store = item.store + "";
368375
let tempLen = Math.floor(item.store.length / 4);
369376
let len = tempLen > 2 ? 3 : tempLen;
370-
item.store = (
371-
item.store / Math.pow(1024, len + 1)
372-
).toFixed(2);
377+
item.store = (item.store / Math.pow(1024, len + 1)).toFixed(2);
373378
switch (len) {
374379
case 0:
375380
item.store = item.store + "KB";

web/src/apps/workflows/module/dispatch/index.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,8 @@ export default {
923923
startData: {},
924924
timingData: {
925925
item: {},
926-
type: ''
926+
type: '',
927+
id: ''
927928
},
928929
pagination: {
929930
size: 10,
@@ -1142,6 +1143,7 @@ export default {
11421143
tempData.type = 'timing'
11431144
id = this.list[index].id
11441145
}
1146+
this.timingData.id = id
11451147
this.getReceiver(id, (res) => {
11461148
this.timingData.item = {
11471149
...tempData.item,
@@ -1278,7 +1280,8 @@ export default {
12781280
closeRun() {
12791281
this.showRunTaskModal = false
12801282
},
1281-
setTiming() {
1283+
setTiming(id) {
1284+
this.schedulerId = id
12821285
this.showTimingTaskModal = false
12831286
this.activeList(3)
12841287
},

web/src/apps/workflows/module/dispatch/timing.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default {
320320
321321
this.api.fetch(api, searchParams, {useFormQuery: true}).then(res => {
322322
this.$Message.success(msg)
323-
this.$emit('onUpdateTiming')
323+
this.$emit('onUpdateTiming', this.timingData.id)
324324
})
325325
}
326326
},

web/vue.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ module.exports = {
258258
}
259259
},
260260
"/dolphinscheduler": {
261-
target: "http://***REMOVED***:12345",
262-
//target: "https://dolphin.ctyun.cn:10002",
261+
//target: "http://***REMOVED***:12345",
262+
target: "https://dolphin.ctyun.cn:10002",
263263
changeOrigin: true,
264264
pathRewrite: {
265265
"^/dolphinscheduler": "/dolphinscheduler"

0 commit comments

Comments
 (0)