Showing
1 changed file
with
11 additions
and
8 deletions
... | ... | @@ -24,14 +24,16 @@ |
24 | 24 | <Authority value="api:yt:device:import"> |
25 | 25 | <Button type="primary" @click="handleBatchImport">导入</Button> |
26 | 26 | </Authority> |
27 | - <a-button | |
28 | - v-if="authBtn(role)" | |
29 | - type="primary" | |
30 | - @click="handleBatchAssign" | |
31 | - :disabled="!isExistOption" | |
32 | - > | |
33 | - 批量分配 | |
34 | - </a-button> | |
27 | + <Authority value="api:yt:device:assign"> | |
28 | + <a-button | |
29 | + v-if="authBtn(role)" | |
30 | + type="primary" | |
31 | + @click="handleBatchAssign" | |
32 | + :disabled="!isExistOption" | |
33 | + > | |
34 | + 批量分配 | |
35 | + </a-button> | |
36 | + </Authority> | |
35 | 37 | </template> |
36 | 38 | <template #img="{ record }"> |
37 | 39 | <TableImg |
... | ... | @@ -134,6 +136,7 @@ |
134 | 136 | label: '分配客户', |
135 | 137 | icon: 'mdi:account-arrow-right', |
136 | 138 | ifShow: authBtn(role), |
139 | + auth: 'api:yt:device:assign', | |
137 | 140 | onClick: handleDispatchCustomer.bind(null, record), |
138 | 141 | }, |
139 | 142 | { | ... | ... |