Showing
1 changed file
with
4 additions
and
1 deletions
@@ -5,7 +5,9 @@ | @@ -5,7 +5,9 @@ | ||
5 | > | 5 | > |
6 | <template #toolbar> | 6 | <template #toolbar> |
7 | <Space> | 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 | </Space> | 11 | </Space> |
10 | </template> | 12 | </template> |
11 | <template #recordContent="{ record }"> | 13 | <template #recordContent="{ record }"> |
@@ -43,6 +45,7 @@ | @@ -43,6 +45,7 @@ | ||
43 | import { DeviceRecord } from '/@/api/device/model/deviceModel'; | 45 | import { DeviceRecord } from '/@/api/device/model/deviceModel'; |
44 | import { BasicModal, useModal } from '/@/components/Modal'; | 46 | import { BasicModal, useModal } from '/@/components/Modal'; |
45 | import CommandIssuance from '../CommandIssuance.vue'; | 47 | import CommandIssuance from '../CommandIssuance.vue'; |
48 | + import { Authority } from '/@/components/Authority'; | ||
46 | 49 | ||
47 | const props = defineProps({ | 50 | const props = defineProps({ |
48 | fromId: { | 51 | fromId: { |