File tree Expand file tree Collapse file tree 7 files changed +30
-18
lines changed
module/dispatch/dashboard Expand file tree Collapse file tree 7 files changed +30
-18
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,18 @@ export default {
114
114
115
115
const removeAction = () => {
116
116
if (that .currentTab .guid === modal .guid ) {
117
- const { guid } = that .currentTab ;
118
117
const workspaceId = that .$route .query .workspaceId ;
119
118
if (len > 1 && idx < len - 1 ) {
120
119
that .currentTab = topTapList[idx + 1 ];
120
+ let guid = that .currentTab .guid ;
121
121
that .$router .push ({
122
122
name: " dataGovernance/assets/info" ,
123
123
params: { guid },
124
124
query: { workspaceId }
125
125
});
126
126
} else if (len > 1 && idx == len - 1 ) {
127
127
that .currentTab = topTapList[idx - 1 ];
128
+ let guid = that .currentTab .guid ;
128
129
that .$router .push ({
129
130
name: " dataGovernance/assets/info" ,
130
131
params: { guid },
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default {
43
43
{ id: 12 , name: " 数据资产目录" , pathName: " dataGovernance/assets" }
44
44
]
45
45
},
46
- {
46
+ /* {
47
47
id: 2,
48
48
name: "元数据管理",
49
49
children: [{ id: 21, name: "元数据采集" }]
@@ -52,7 +52,7 @@ export default {
52
52
id: 3,
53
53
name: "数据权限",
54
54
children: [{ id: 31, name: "数据权限管理" }]
55
- },
55
+ },*/
56
56
{
57
57
id: 4 ,
58
58
name: " 数仓规划" ,
@@ -65,8 +65,8 @@ export default {
65
65
{ id: 42 , name: " 分层配置" , pathName: " dataGovernance/layered" }
66
66
]
67
67
},
68
- { id: 5 , name: " 数据质量" , children: [] },
69
- { id: 6 , name: " 数据安全" , children: [] }
68
+ /* { id: 5, name: "数据质量", children: [] },
69
+ { id: 6, name: "数据安全", children: [] }*/
70
70
],
71
71
currentTreeId: 1 ,
72
72
title: this .$t (" message.dataGovernance.dataOverview" )
Original file line number Diff line number Diff line change 7
7
label-position =" top"
8
8
>
9
9
<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'" />
11
11
</FormItem >
12
12
<!-- <FormItem label="英文名" prop="enName">
13
13
<Input v-model="formState.enName" placeholder="英文名"></Input>
@@ -104,11 +104,16 @@ export default {
104
104
data () {
105
105
const validateName = (rule , value , callback ) => {
106
106
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) {
109
114
callback ();
110
115
} else {
111
- callback (new Error (' 不能包含空格' ));
116
+ callback (new Error (' 不能包含空格,且必须以字母开头 ' ))
112
117
}
113
118
} else {
114
119
callback (new Error (' 不能为空' ));
Original file line number Diff line number Diff line change 7
7
label-position =" top"
8
8
>
9
9
<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'" / >
11
11
</FormItem >
12
12
<!-- <FormItem label="英文名" prop="enName">
13
13
<Input v-model="formState.enName" placeholder="英文名"></Input>
@@ -91,14 +91,19 @@ export default {
91
91
data () {
92
92
const validateName = (rule , value , callback ) => {
93
93
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) {
96
101
callback ();
97
102
} else {
98
- callback (new Error (' 不能包含空格' ));
103
+ callback (new Error (' 不能包含空格,且必须以字母开头 ' ))
99
104
}
100
105
} else {
101
- callback (new Error (' 不能为空' ));
106
+ callback (new Error (' 不能为空' ))
102
107
}
103
108
};
104
109
return {
Original file line number Diff line number Diff line change 46
46
.process-tabs {
47
47
position : $relative ;
48
48
height : calc (100% );
49
- overflow : hidden ;
49
+ // overflow: hidden;
50
50
& .no-tab {
51
51
.process-tab {
52
52
display : none ;
Original file line number Diff line number Diff line change 17
17
<div class =" time-model" >
18
18
<template >
19
19
<Date-picker
20
- style =" width : 250 px "
20
+ style =" width : 430 px "
21
21
v-model =" dataTime"
22
22
type =" datetimerange"
23
23
@on-change =" _datepicker"
@@ -380,6 +380,7 @@ export default {
380
380
padding : 0 ;
381
381
position : relative ;
382
382
margin-bottom : 24px ;
383
+ min-width : 570px ;
383
384
.dashboard-module-content {
384
385
padding : 30px ;
385
386
position : relative ;
Original file line number Diff line number Diff line change @@ -247,10 +247,10 @@ module.exports = {
247
247
devServer : {
248
248
proxy : {
249
249
"/api" : {
250
- target : "http://***REMOVED***:8088" ,
250
+ // target: "http://***REMOVED***:8088",
251
251
//target: 'http://***REMOVED***:9202', //yichao
252
252
// target: "http://***REMOVED***:9202", //jiawei
253
- // target: "http://luban.ctyun.cn:8088",
253
+ target : "http://luban.ctyun.cn:8088" ,
254
254
//target: "http://devluban.ctyun.cn:8088",
255
255
changeOrigin : true ,
256
256
pathRewrite : {
You can’t perform that action at this time.
0 commit comments