Showing
1 changed file
with
6 additions
and
2 deletions
... | ... | @@ -10,7 +10,9 @@ |
10 | 10 | <BasicForm @register="registerForm" /> |
11 | 11 | <template #footer> |
12 | 12 | <a-button @click="handleCancel">取消</a-button> |
13 | - <a-button :disabled="draftDisable" @click="handleSaveDraft">保存草稿</a-button> | |
13 | + <Authority value="api:yt:notice:save:post"> | |
14 | + <a-button :disabled="draftDisable" @click="handleSaveDraft">保存草稿</a-button> | |
15 | + </Authority> | |
14 | 16 | <a-button :disabled="sendDisable" type="primary" @click="handleSend">发布通知</a-button> |
15 | 17 | </template> |
16 | 18 | </BasicDrawer> |
... | ... | @@ -26,9 +28,11 @@ |
26 | 28 | notifyAddLeaseApi, |
27 | 29 | } from '/@/api/stationnotification/stationnotifyApi'; |
28 | 30 | import { useMessage } from '/@/hooks/web/useMessage'; |
31 | + import { Authority } from '/@/components/Authority'; | |
32 | + | |
29 | 33 | export default defineComponent({ |
30 | 34 | name: 'ConfigDrawer', |
31 | - components: { BasicDrawer, BasicForm }, | |
35 | + components: { BasicDrawer, BasicForm,Authority }, | |
32 | 36 | emits: ['success', 'register'], |
33 | 37 | setup(_, { emit }) { |
34 | 38 | const draftDisable = ref(false); | ... | ... |