Skip to content

Commit 0cf7c0b

Browse files
author
张晨曦
committed
fix bugs 数据治理bugs修复
1 parent 5d8e865 commit 0cf7c0b

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
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: {

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";

0 commit comments

Comments
 (0)