File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
dataService/module/dataService
workflows/module/dispatch/dashboard Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,11 @@ export default {
215215 };
216216 const validateAPIPath = (rule , value , callback ) => {
217217 const result = value && value .trim ();
218- const reg = / ^ [\w _-][ \/ \w _-] {3 ,199}$ / g ;
218+ const reg = / ^ [\w _-] {4 ,199}$ / g ;
219219 if (! reg .test (result)) {
220220 callback (
221221 new Error (
222- " 支持英文、数字、下划线(_)、连字符(-)、正斜线(/) ,且不能以正斜线(/)开头,4到200个字符"
222+ " 支持英文、数字、下划线(_)、连字符(-) ,且不能以正斜线(/)开头,4到200个字符"
223223 )
224224 );
225225 } else {
@@ -507,11 +507,13 @@ export default {
507507 let tmp = { ... item };
508508 const { data , apiData } = payload;
509509 if (tmp .isActive ) {
510+ const newData = { ... apiData, id: data .id , path: apiData .apiPath };
510511 tmp = {
511512 ... item,
512513 apiName: data .name ,
513514 id: data .id ,
514- data: { ... apiData, id: data .id , path: apiData .apiPath }
515+ data: newData,
516+ originData: {... newData}
515517 };
516518 }
517519 return tmp;
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ export default {
175175 }
176176 },
177177 getMixedBarLineData (currentDay , cb ) {
178+ if (! this .projectName ) return
178179 util .checkToken (() => {
179180 api .fetch (` dolphinscheduler/projects/${ this .workspaceName } -${ this .projectName } /instance/list-paging` , {
180181 pageSize: 1000 ,
You can’t perform that action at this time.
0 commit comments