|
@@ -1,5 +1,9 @@
|
|
|
<template>
|
|
|
<el-row>
|
|
|
+ <el-col class="cy-conn cy-logo" @click.native="goHome">
|
|
|
+ <el-image :src="require('@/assets/images/logo.png')" fit="contain" class="c-logo"></el-image>
|
|
|
+ <el-image :src="require('@/assets/images/cytxt.png')" fit="contain" class="c-logo-txt"></el-image>
|
|
|
+ </el-col>
|
|
|
<el-col class="cy-conn" @click.native="createDatasourceEvent">
|
|
|
<el-image :src="require('@/assets/images/datasource.png')" fit="contain"></el-image>
|
|
|
<span>数据源配置</span>
|
|
@@ -249,6 +253,9 @@ export default {
|
|
|
callback()
|
|
|
}
|
|
|
},
|
|
|
+ goHome() {
|
|
|
+ this.changeNavType(0)
|
|
|
+ },
|
|
|
/** 添加数据源配置 */
|
|
|
createDatasourceEvent() {
|
|
|
this.changeNavType(0)
|
|
@@ -663,4 +670,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.cy-logo {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .el-image {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .c-logo-txt img {
|
|
|
+ width: 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .c-logo img {
|
|
|
+ width: 40px;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|