fix : 屏蔽话务语音配置的批量删除, 修复所有页面按钮权限
This commit is contained in:
@@ -23,7 +23,7 @@ const infoLiveCallRef = ref()
|
||||
const voiceRef = ref()
|
||||
const tableIns = ref()
|
||||
const auths = reactive({
|
||||
report: ['mosr:collect:reported'],
|
||||
record: ['order:dialogue:list'],
|
||||
})
|
||||
const tableConfig = reactive({
|
||||
columns: [
|
||||
@@ -97,21 +97,26 @@ const tableConfig = reactive({
|
||||
currentRender: ({ row, index }) => {
|
||||
// console.log(row);
|
||||
let btn = []
|
||||
btn.push({ label: '播放语音', prem: auths.detail, func: () => handleVoice(row), type: 'primary' })
|
||||
btn.push({ label: '通话记录', prem: auths.detail, func: () => handleInfo(row), type: 'primary' })
|
||||
btn.push({ label: '播放语音', func: () => handleVoice(row), type: 'primary' })
|
||||
btn.push({ label: '通话记录', prem: auths.record, func: () => handleInfo(row), type: 'primary' })
|
||||
return (
|
||||
<div style={{ width: '100%' }}>
|
||||
{
|
||||
btn.map(item => (
|
||||
<>
|
||||
item.prem?
|
||||
<el-button
|
||||
type={item.type}
|
||||
// v-perm={item.prem}
|
||||
v-perm={item.prem}
|
||||
onClick={() => item.func()}
|
||||
link>
|
||||
{item.label}
|
||||
</el-button>
|
||||
</>
|
||||
: <el-button
|
||||
type={item.type}
|
||||
onClick={() => item.func()}
|
||||
link>
|
||||
{item.label}
|
||||
</el-button>
|
||||
))
|
||||
}
|
||||
</div >
|
||||
|
||||
Reference in New Issue
Block a user