feat: 权限标识

master
李小林 7 months ago
parent 951d92e3be
commit ee23ded25f
  1. 15
      src/views/resources/customer/components/AddCustom.vue

@ -201,6 +201,7 @@
type="primary"
v-if="formData.custId != undefined"
@click="active++"
v-hasPerm="['custom:add:binding:device']"
>
绑定设备</el-button
>
@ -274,7 +275,12 @@
title="确认解除设备与客户的绑定?"
>
<template #reference>
<el-button type="primary" link>解除绑定</el-button>
<el-button
type="primary"
v-hasPerm="['custom:add:unbinding:device']"
link
>解除绑定</el-button
>
</template>
</el-popconfirm>
</template>
@ -331,7 +337,12 @@
<el-card shadow="never">
<template #header>
<div style="display: flex; justify-content: flex-end">
<el-button type="primary" @click="bindingDev">绑定</el-button>
<el-button
type="primary"
@click="bindingDev"
custom:add:binding:device
>绑定</el-button
>
<el-button type="primary" @click="active--">返回</el-button>
</div>
</template>

Loading…
Cancel
Save