Skip to content

Commit 801d078

Browse files
author
汪鸣峰
committed
Merge branch 'fixbug-dataGovernance' into 'develop'
修复数据治理的bug See merge request luban/dataspherestudio!261
2 parents 4cc31d4 + bd984b4 commit 801d078

File tree

7 files changed

+30
-18
lines changed

7 files changed

+30
-18
lines changed

web/src/apps/dataGovernance/module/dataGovernance/assetsIndex.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,18 @@ export default {
114114
115115
const removeAction = () => {
116116
if (that.currentTab.guid === modal.guid) {
117-
const { guid } = that.currentTab;
118117
const workspaceId = that.$route.query.workspaceId;
119118
if (len > 1 && idx < len - 1) {
120119
that.currentTab = topTapList[idx + 1];
120+
let guid = that.currentTab.guid;
121121
that.$router.push({
122122
name: "dataGovernance/assets/info",
123123
params: { guid },
124124
query: { workspaceId }
125125
});
126126
} else if (len > 1 && idx == len - 1) {
127127
that.currentTab = topTapList[idx - 1];
128+
let guid = that.currentTab.guid;
128129
that.$router.push({
129130
name: "dataGovernance/assets/info",
130131
params: { guid },

web/src/apps/dataGovernance/module/dataGovernance/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
{ id: 12, name: "数据资产目录", pathName: "dataGovernance/assets" }
4444
]
4545
},
46-
{
46+
/*{
4747
id: 2,
4848
name: "元数据管理",
4949
children: [{ id: 21, name: "元数据采集" }]
@@ -52,7 +52,7 @@ export default {
5252
id: 3,
5353
name: "数据权限",
5454
children: [{ id: 31, name: "数据权限管理" }]
55-
},
55+
},*/
5656
{
5757
id: 4,
5858
name: "数仓规划",
@@ -65,8 +65,8 @@ export default {
6565
{ id: 42, name: "分层配置", pathName: "dataGovernance/layered" }
6666
]
6767
},
68-
{ id: 5, name: "数据质量", children: [] },
69-
{ id: 6, name: "数据安全", children: [] }
68+
/*{ id: 5, name: "数据质量", children: [] },
69+
{ id: 6, name: "数据安全", children: [] }*/
7070
],
7171
currentTreeId: 1,
7272
title: this.$t("message.dataGovernance.dataOverview")

web/src/apps/dataGovernance/view/layered/editModal.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
label-position="top"
88
>
99
<FormItem label="名称" prop="name">
10-
<Input v-model="formState.name" placeholder="名称" :maxlength="30" :disabled="mode === 'edit'" /><span>最多30字</span>
10+
<Input v-model="formState.name" placeholder="名称" :disabled="mode === 'edit'" />
1111
</FormItem>
1212
<!--<FormItem label="英文名" prop="enName">
1313
<Input v-model="formState.enName" placeholder="英文名"></Input>
@@ -104,11 +104,16 @@ export default {
104104
data() {
105105
const validateName = (rule, value, callback) => {
106106
if (value) {
107-
const valid = /\ /.test(value);
108-
if (!valid) {
107+
const invalid = /\ /.test(value) || !(/^[a-z|A-Z]/.test(value))
108+
if (value.length > 30) {
109+
this.formState.name = value.substring(0, 30)
110+
callback(new Error('最多30字'))
111+
return
112+
}
113+
if (!invalid) {
109114
callback();
110115
} else {
111-
callback(new Error('不能包含空格'));
116+
callback(new Error('不能包含空格,且必须以字母开头'))
112117
}
113118
} else {
114119
callback(new Error('不能为空'));

web/src/apps/dataGovernance/view/subjectDomain/editModal.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
label-position="top"
88
>
99
<FormItem label="名称" prop="name">
10-
<Input v-model="formState.name" placeholder="名称" :disabled="mode === 'edit'" :maxlength="30" /><span>最多30字</span>
10+
<Input v-model="formState.name" placeholder="名称" :disabled="mode === 'edit'"/>
1111
</FormItem>
1212
<!--<FormItem label="英文名" prop="enName">
1313
<Input v-model="formState.enName" placeholder="英文名"></Input>
@@ -91,14 +91,19 @@ export default {
9191
data() {
9292
const validateName = (rule, value, callback) => {
9393
if (value) {
94-
const valid = /\ /.test(value);
95-
if (!valid) {
94+
const invalid = /\ /.test(value) || !(/^[a-z|A-Z]/.test(value))
95+
if (value.length > 30) {
96+
this.formState.name = value.substring(0, 30)
97+
callback(new Error('最多30字'))
98+
return
99+
}
100+
if (!invalid) {
96101
callback();
97102
} else {
98-
callback(new Error('不能包含空格'));
103+
callback(new Error('不能包含空格,且必须以字母开头'))
99104
}
100105
} else {
101-
callback(new Error('不能为空'));
106+
callback(new Error('不能为空'))
102107
}
103108
};
104109
return {

web/src/apps/workflows/assets/styles/process.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
.process-tabs {
4747
position: $relative;
4848
height: calc(100%);
49-
overflow: hidden;
49+
//overflow: hidden;
5050
&.no-tab{
5151
.process-tab{
5252
display: none;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="time-model">
1818
<template>
1919
<Date-picker
20-
style="width: 250px"
20+
style="width: 430px"
2121
v-model="dataTime"
2222
type="datetimerange"
2323
@on-change="_datepicker"
@@ -380,6 +380,7 @@ export default {
380380
padding: 0;
381381
position: relative;
382382
margin-bottom: 24px;
383+
min-width: 570px;
383384
.dashboard-module-content {
384385
padding: 30px;
385386
position: relative;

web/vue.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ module.exports = {
247247
devServer: {
248248
proxy: {
249249
"/api": {
250-
target: "http://***REMOVED***:8088",
250+
//target: "http://***REMOVED***:8088",
251251
//target: 'http://***REMOVED***:9202', //yichao
252252
// target: "http://***REMOVED***:9202", //jiawei
253-
// target: "http://luban.ctyun.cn:8088",
253+
target: "http://luban.ctyun.cn:8088",
254254
//target: "http://devluban.ctyun.cn:8088",
255255
changeOrigin: true,
256256
pathRewrite: {

0 commit comments

Comments
 (0)