Showing
1 changed file
with
4 additions
and
1 deletions
... | ... | @@ -5,7 +5,9 @@ |
5 | 5 | > |
6 | 6 | <template #toolbar> |
7 | 7 | <Space> |
8 | - <Button type="primary" @click="openModal(true)">命令下发</Button> | |
8 | + <Authority value="api:yt:device:rpc"> | |
9 | + <Button type="primary" @click="openModal(true)">命令下发</Button> | |
10 | + </Authority> | |
9 | 11 | </Space> |
10 | 12 | </template> |
11 | 13 | <template #recordContent="{ record }"> |
... | ... | @@ -43,6 +45,7 @@ |
43 | 45 | import { DeviceRecord } from '/@/api/device/model/deviceModel'; |
44 | 46 | import { BasicModal, useModal } from '/@/components/Modal'; |
45 | 47 | import CommandIssuance from '../CommandIssuance.vue'; |
48 | + import { Authority } from '/@/components/Authority'; | |
46 | 49 | |
47 | 50 | const props = defineProps({ |
48 | 51 | fromId: { | ... | ... |