|
@@ -4,7 +4,10 @@
|
|
|
<template #toolbar>
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
- v-show="!getCheckRole(['host', 'tourist', 'company_viewer']) && getEquity([1, 2])"
|
|
|
+ v-show="
|
|
|
+ getCheckRole(['super', 'plat_admin']) ||
|
|
|
+ (!getCheckRole(['host', 'tourist', 'company_viewer']) && getEquity([1, 2]))
|
|
|
+ "
|
|
|
@click="handleAddLiveScene"
|
|
|
>
|
|
|
新增</a-button
|
|
@@ -25,30 +28,26 @@
|
|
|
|
|
|
<template #action="{ record }">
|
|
|
<TableAction
|
|
|
- :actions="
|
|
|
- permList.includes(2)
|
|
|
- ? [
|
|
|
- {
|
|
|
- label: t('routes.scenes.bindAnchor'),
|
|
|
- color: 'success',
|
|
|
- onClick: handleBindAnchor.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- color: 'warning',
|
|
|
- label: '编辑',
|
|
|
- onClick: handleEditLiveScene.bind(null, record),
|
|
|
- },
|
|
|
- {
|
|
|
- color: 'error',
|
|
|
- label: '删除',
|
|
|
- popConfirm: {
|
|
|
- title: '是否确认删除',
|
|
|
- confirm: handleDeleteLiveScene.bind(null, record),
|
|
|
- },
|
|
|
- },
|
|
|
- ]
|
|
|
- : []
|
|
|
- "
|
|
|
+ :actions="[
|
|
|
+ {
|
|
|
+ label: t('routes.scenes.bindAnchor'),
|
|
|
+ color: 'success',
|
|
|
+ onClick: handleBindAnchor.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ color: 'warning',
|
|
|
+ label: '编辑',
|
|
|
+ onClick: handleEditLiveScene.bind(null, record),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ color: 'error',
|
|
|
+ label: '删除',
|
|
|
+ popConfirm: {
|
|
|
+ title: '是否确认删除',
|
|
|
+ confirm: handleDeleteLiveScene.bind(null, record),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]"
|
|
|
/>
|
|
|
</template>
|
|
|
</BasicTable>
|
|
@@ -167,7 +166,9 @@
|
|
|
title: t('common.operation'),
|
|
|
dataIndex: '',
|
|
|
slots: { customRender: 'action' },
|
|
|
- ifShow: !getCheckRole(['host', 'tourist']) && getEquity(2),
|
|
|
+ ifShow:
|
|
|
+ (!getCheckRole(['host', 'tourist']) && getEquity(2)) ||
|
|
|
+ getCheckRole(['super', 'plat_admin']),
|
|
|
width: 220,
|
|
|
fixed: 'right',
|
|
|
},
|