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