fix: 数据源管理页面优化

This commit is contained in:
taojinlong 2022-05-31 19:03:54 +08:00
parent 8aa0bf2153
commit 5608e576cd
4 changed files with 5 additions and 4 deletions

View File

@ -1349,7 +1349,7 @@ export default {
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
datasource: 'Data Source',
please_select_left: 'Please select the data source from the left',
please_select_left: 'Please select data from the left',
show_info: 'Data Source Info',
create: 'Create Data Source',
type: 'Type',

View File

@ -1349,7 +1349,7 @@ export default {
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
datasource: '數據源',
please_select_left: '請從左側選擇數據源',
please_select_left: '請從左側選擇',
show_info: '數據源信息',
create: '新建數據源',
type: '類型',

View File

@ -1351,7 +1351,7 @@ export default {
client_principal: 'Client Principal',
keytab_Key_path: 'Keytab Key Path',
datasource: '数据源',
please_select_left: '请从左侧选择数据源',
please_select_left: '请从左侧选择',
show_info: '数据源信息',
create: '新建数据源',
type: '类型',

View File

@ -9,7 +9,6 @@
<el-row v-show="showView === 'Datasource'">
<el-button icon="el-icon-plus" type="text" size="mini" style="float: left;" @click="addFolder"> {{ $t('datasource.create') }}</el-button>
<el-button icon="el-icon-setting" type="text" size="mini" style="float: right;" @click="driverMgm"> {{ $t('driver.mgm') }}</el-button>
</el-button>
</el-row>
<el-row class="title-css" v-show="showView === 'Driver'">
@ -324,12 +323,14 @@ export default {
},
driverMgm() {
this.$emit('switch-main', {})
this.showView = 'Driver'
this.expandedArray = []
this.tData = []
this.queryTreeDatas()
},
dsMgm() {
this.$emit('switch-main', {})
this.showView = 'Datasource'
this.expandedArray = []
this.tData = []