fix : 屏蔽话务语音配置的批量删除, 修复所有页面按钮权限

This commit is contained in:
2024-10-20 18:04:34 +08:00
parent dd31dd627e
commit f01efcc20e
10 changed files with 104 additions and 67 deletions

View File

@@ -31,7 +31,9 @@ const mockData = ref([
}
])
const auths = reactive({
report: ['mosr:collect:reported'],
detail: ['order:order:detail'],
close: ['order:order:close'],
delete: ['order:order:del'],
})
const searchConfig = reactive([
{
@@ -208,15 +210,15 @@ const tableConfig = reactive({
let btn = []
btn.push({ label: '详情', prem: auths.detail, func: () => handleDetail(row), type: 'primary' })
btn.push({ label: '关单', prem: auths.detail, func: () => handleClose(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.detail, func: () => handleDelete(row), type: 'danger' })
btn.push({ label: '关单', prem: auths.close,func: () => handleClose(row), type: 'primary' })
btn.push({ label: '删除', prem: auths.delete, func: () => handleDelete(row), type: 'danger' })
return (
<div style={{ width: '100%' }}>
{
btn.map(item => (
<el-button
type={item.type}
// v-perm={item.prem}
v-perm={item.prem}
onClick={() => item.func()}
link
>