|
|
|
|
@ -188,6 +188,7 @@ export default {
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
render(h) {
|
|
|
|
|
const _this = this
|
|
|
|
|
let {
|
|
|
|
|
expandRowKeys,
|
|
|
|
|
size,
|
|
|
|
|
@ -351,40 +352,42 @@ export default {
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
$scopedSlots.btns ? $scopedSlots.btns() :
|
|
|
|
|
(<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width={btnWidth}
|
|
|
|
|
header-align="center"
|
|
|
|
|
scopedSlots={{
|
|
|
|
|
default(scope) {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Poptip
|
|
|
|
|
transfer={true}
|
|
|
|
|
confirm
|
|
|
|
|
title="确认要删除吗"
|
|
|
|
|
on={{['on-ok']: () => deleteClick(scope.row)}}>
|
|
|
|
|
(_this.$store.getters.myRoles.find(i => i.name === '查看员') ? '' : (
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width={btnWidth}
|
|
|
|
|
header-align="center"
|
|
|
|
|
scopedSlots={{
|
|
|
|
|
default(scope) {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<Poptip
|
|
|
|
|
transfer={true}
|
|
|
|
|
confirm
|
|
|
|
|
title="确认要删除吗"
|
|
|
|
|
on={{['on-ok']: () => deleteClick(scope.row)}}>
|
|
|
|
|
<i-button
|
|
|
|
|
type="error"
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
ghost>删除
|
|
|
|
|
</i-button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
|
|
|
|
|
<i-button
|
|
|
|
|
type="error"
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
ghost>删除
|
|
|
|
|
ghost
|
|
|
|
|
onClick={() => editorClick(scope.row)}>编辑
|
|
|
|
|
</i-button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
|
|
|
|
|
<i-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-left: 10px;"
|
|
|
|
|
ghost
|
|
|
|
|
onClick={() => editorClick(scope.row)}>编辑
|
|
|
|
|
</i-button>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
</el-table-column>)
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}}>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
</el-table>)
|
|
|
|
|
:
|
|
|
|
|
|