File tree Expand file tree Collapse file tree 5 files changed +23
-22
lines changed
workspace/module/management Expand file tree Collapse file tree 5 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 68
68
}
69
69
},
70
70
"components" : {
71
- "WeEditorLsp" : " editorLsp/index.js" ,
72
71
"WeEditor" : " editor/index.js"
73
72
},
74
73
"conf" : {
82
81
"template" : " ${username} ${time}" ,
83
82
"timeupdate" : 60000
84
83
},
85
- "lsp_service" : {
86
- "sql" : " ${protocol}//${host}/server" ,
87
- "py" : " ${protocol}//${host}/python"
88
- }
84
+ "env" : " opensource"
89
85
},
90
86
"version" : " 1.1.12"
91
87
}
Original file line number Diff line number Diff line change @@ -458,19 +458,21 @@ export default {
458
458
vm .editor .updateOptions ({wordWrap: ' on' });
459
459
},
460
460
});
461
-
462
- this .editor .addAction ({
463
- id: ' newdbsuggest' ,
464
- label: this .$t (' message.common.monacoMenu.newdbcomplition' ),
465
- keybindings: [],
466
- keybindingContext: null ,
467
- contextMenuGroupId: ' control' ,
468
- contextMenuOrder: 2.5 ,
469
- run () {
470
- localStorage .setItem (' scriptis-edditor-type' , ' lsp' );
471
- location .reload ();
472
- },
473
- });
461
+
462
+ if (this .$APP_CONF && this .$APP_CONF .lsp_service ) {
463
+ this .editor .addAction ({
464
+ id: ' newdbsuggest' ,
465
+ label: this .$t (' message.common.monacoMenu.newdbcomplition' ),
466
+ keybindings: [],
467
+ keybindingContext: null ,
468
+ contextMenuGroupId: ' control' ,
469
+ contextMenuOrder: 2.5 ,
470
+ run () {
471
+ localStorage .setItem (' scriptis-edditor-type' , ' lsp' );
472
+ location .reload ();
473
+ },
474
+ });
475
+ }
474
476
475
477
if (this .language === ' hql' ) {
476
478
// 控制语法检查
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ export default {
264
264
toggleShow (e ) {
265
265
const item = e .target .innerText
266
266
const overDb = e .target .className .indexOf (' fi-hivedb' ) > - 1
267
- if ( overDb && ! this .dbnameDesc [item] ) {
267
+ if ( overDb && ! this .dbnameDesc [item] && this . $APP_CONF && this . $APP_CONF . env === ' webank ' ) {
268
268
// mouseover 在数据库项上且未获取描述信息
269
269
clearTimeout (this .fetchDbInfo )
270
270
this .fetchDbInfo = setTimeout (() => {
Original file line number Diff line number Diff line change 294
294
</Form >
295
295
<div slot =" footer" >
296
296
<Button
297
+ v-if =" $APP_CONF && $APP_CONF.env === 'webank'"
297
298
@click =" showDiff" >{{$t('message.workflow.showVersionDiff')}}</Button >
298
299
<Button
299
300
type =" primary"
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ export default {
62
62
// path: 'dataSourceAdministration',
63
63
// children: [],
64
64
// },
65
- {
65
+ ];
66
+ if (this .$APP_CONF && this .$APP_CONF .env === ' webank' ) {
67
+ manageMenus .push ({
66
68
icon: ' engineinfo' ,
67
69
name: i18n .t (' message.workspaceManagement.engineInfo' ),
68
70
path: ' engineinfo' ,
@@ -86,8 +88,8 @@ export default {
86
88
children: [],
87
89
}
88
90
],
89
- }
90
- ];
91
+ })
92
+ }
91
93
return {
92
94
mode: ' ' ,
93
95
activeName: ' ' ,
You can’t perform that action at this time.
0 commit comments