@ -24,16 +24,10 @@
< m -list -box -f >
< m -list -box -f >
< template slot = "name" > < strong > * < / strong > { { $t ( 'Datasource' ) } } < / template >
< template slot = "name" > < strong > * < / strong > { { $t ( 'Datasource' ) } } < / template >
< template slot = "content" >
< template slot = "content" >
< x -radio -group v-model ="type" size="small" >
< x -select style = "width: 100%;" v-model ="type" >
< x -radio :label ="'MYSQL'" > MYSQL < / x - r a d i o >
< x -option v-for ="item in datasourceTypeList" :key="item.value" :value="item.value" :label="item.label" >
< x -radio :label ="'POSTGRESQL'" > POSTGRESQL < / x - r a d i o >
< / x - o p t i o n >
< x -radio :label ="'HIVE'" > HIVE / IMPALA < / x - r a d i o >
< / x - s e l e c t >
< x -radio :label ="'SPARK'" > SPARK < / x - r a d i o >
< x -radio :label ="'CLICKHOUSE'" > CLICKHOUSE < / x - r a d i o >
< x -radio :label ="'ORACLE'" > ORACLE < / x - r a d i o >
< x -radio :label ="'SQLSERVER'" > SQLSERVER < / x - r a d i o >
< x -radio :label ="'DB2'" class = "radio-label-last" > DB2 < / x - r a d i o >
< / x - r a d i o - g r o u p >
< / template >
< / template >
< / m - l i s t - b o x - f >
< / m - l i s t - b o x - f >
< m -list -box -f >
< m -list -box -f >
@ -200,7 +194,41 @@
showdDatabase : false ,
showdDatabase : false ,
showConnectType : false ,
showConnectType : false ,
isShowPrincipal : true ,
isShowPrincipal : true ,
prePortMapper : { }
prePortMapper : { } ,
datasourceTypeList : [
{
value : 'MYSQL' ,
label : 'MYSQL'
} ,
{
value : 'POSTGRESQL' ,
label : 'POSTGRESQL'
} ,
{
value : 'HIVE' ,
label : 'HIVE/IMPALA'
} ,
{
value : 'SPARK' ,
label : 'SPARK'
} ,
{
value : 'CLICKHOUSE' ,
label : 'CLICKHOUSE'
} ,
{
value : 'ORACLE' ,
label : 'ORACLE'
} ,
{
value : 'SQLSERVER' ,
label : 'SQLSERVER'
} ,
{
value : 'DB2' ,
label : 'DB2'
}
]
}
}
} ,
} ,
props : {
props : {