Commit 0165e640 authored by 智勇's avatar 智勇

v-if-> v-show

parent 17e4d144
......@@ -178,7 +178,7 @@
width="170">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="控制台" placement="top">
<el-button type="primary" icon="el-icon-tickets" circle @click="linkShell(scope.row)"/>
<el-button type="primary" icon="el-icon-time" circle @click="linkShell(scope.row)"/>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="日志" placement="top">
<el-button type="success" icon="el-icon-time" circle @click="linkLog(scope.row)"/>
......
......@@ -10,7 +10,7 @@
:header-cell-style="{background:'#F3F4F7',color:'#555'}"
size="medium"
align="center"
style="width: 100%">
style="width: 100%;margin-bottom: 30px;">
<el-table-column
:index="indexMethod"
type="index"/>
......
......@@ -10,7 +10,7 @@
:header-cell-style="{background:'#F3F4F7',color:'#555'}"
size="medium"
align="center"
style="width: 100%">
style="width: 100%;margin-bottom: 30px;">
<el-table-column
:index="indexMethod"
type="index"/>
......
......@@ -50,6 +50,7 @@
<span>{{ scope.row.auth }}</span>
</template>
</el-table-column>
<el-table-column label="状态" width="90px" align="center">
<template slot-scope="scope">
<el-tag :type="scope.row.is_active | statusFilter">{{ scope.row.is_active | activeFileter }}</el-tag>
......@@ -68,7 +69,7 @@
width="80px">
<template slot-scope="scope">
<el-tooltip :content="scope.row.api" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.api" type="primary" icon="el-icon-tickets" circle @click="openUrl(scope.row.api)"/>
<el-button v-if="scope.row.api" type="primary" icon="el-icon-time" circle @click="openUrl(scope.row.api)"/>
</el-tooltip>
</template>
</el-table-column>
......@@ -79,7 +80,7 @@
align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.ddl" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.ddl" type="success" icon="el-icon-time" circle @click="openUrl(scope.row.ddl)"/>
<el-button v-if="scope.row.ddl" type="success" icon="el-icon-time" circle @click="openUrl(scope.row.ddl)"/>
</el-tooltip>
</template>
</el-table-column>
......@@ -90,7 +91,7 @@
align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.wiki" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.wiki" type="warning" icon="el-icon-time" circle @click="openUrl(scope.row.wiki)"/>
<el-button v-if="scope.row.wiki" type="warning" icon="el-icon-time" circle @click="openUrl(scope.row.wiki)"/>
</el-tooltip>
</template>
</el-table-column>
......@@ -101,7 +102,7 @@
align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.git_path" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.git_path" type="info" icon="el-icon-time" circle />
<el-button v-if="scope.row.git_path" type="info" icon="el-icon-tickets" circle />
</el-tooltip>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment