优化一些代码

This commit is contained in:
izory
2021-09-06 15:56:53 +08:00
parent 8be3046ae2
commit f112d6a992
13 changed files with 47 additions and 136 deletions

View File

@@ -48,7 +48,12 @@
<el-table-column prop="path" label="路由地址" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="visible" label="显示" :formatter="visibleFormat" width="70"></el-table-column>
<el-table-column prop="status" label="状态" :formatter="statusFormat" width="70"></el-table-column>
<el-table-column prop="status" label="状态" width="70">
<template slot-scope="scope">
<el-tag v-if="scope.row.status === '0'" >正常</el-tag>
<el-tag type="warning" v-else >停用</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:menu:edit']">修改</el-button>