table click-row

This commit is contained in:
yulixing 2019-05-31 14:27:59 +08:00
parent af8987c675
commit a33ca7553c
5 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@
<el-table-column prop="comment" label="备注" show-overflow-tooltip sortable/>
<el-table-column prop="name" label="操作" fixed="right" width="55" v-if="permissionWriteable">
<template slot-scope="scope">
<el-button type="text" size="small" @click="editPlatform(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="editPlatform(scope.row)">编辑</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -22,7 +22,7 @@
<el-table-column prop="value.type" label="值类型" show-overflow-tooltip sortable/>
<el-table-column prop="name" label="操作" fixed="right" width="55" v-if="permissionWriteable">
<template slot-scope="scope">
<el-button type="text" size="small" @click="editSetting(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="editSetting(scope.row)">编辑</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -37,7 +37,7 @@
/>
<el-table-column prop="name" label="详情" fixed="right" width="55">
<template slot-scope="scope">
<el-button type="text" size="small" @click="viewLog(scope.row)">查看</el-button>
<el-button type="text" size="small" @click.stop="viewLog(scope.row)">查看</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -28,8 +28,8 @@
<el-table-column prop="comment" label="备注" show-overflow-tooltip sortable/>
<el-table-column prop="name" label="操作" fixed="right" width="126">
<template slot-scope="scope">
<el-button type="text" size="small" @click="editRole(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="delRole(scope.row)">删除</el-button>
<el-button type="text" size="small" @click.stop="editRole(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="delRole(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -52,8 +52,8 @@
<el-table-column prop="comment" label="备注" show-overflow-tooltip sortable/>
<el-table-column label="操作" fixed="right" width="120">
<template slot-scope="scope">
<el-button type="text" size="small" @click="editUser(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="delUser(scope.row)" v-if="permWriteable">删除</el-button>
<el-button type="text" size="small" @click.stop="editUser(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click.stop="delUser(scope.row)" v-if="permWriteable">删除</el-button>
</template>
</el-table-column>
</el-table>