index.vue 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div>
  3. <page-header :title="$t('monitor.action.clone', [$t('dictionary.commonalert')])" />
  4. <page-body needMarginBottom>
  5. <alert ref="alertRef" :commonalertId="$route.params.id" :loading.sync="loading" />
  6. </page-body>
  7. <page-footer>
  8. <div slot="right">
  9. <a-button class="mr-3" type="primary" :loading="loading" @click="handleConfirm">{{ $t('common.save') }}</a-button>
  10. <a-button @click="cancel">{{ $t('common.cancel') }}</a-button>
  11. </div>
  12. </page-footer>
  13. </div>
  14. </template>
  15. <script>
  16. import Alert from '../components/new-alert'
  17. export default {
  18. name: 'CommonalertClone',
  19. components: {
  20. Alert,
  21. },
  22. data () {
  23. return {
  24. loading: false,
  25. }
  26. },
  27. methods: {
  28. handleConfirm () {
  29. this.$refs.alertRef.submit()
  30. },
  31. cancel () {
  32. this.$refs.alertRef.cancel()
  33. },
  34. reset () {
  35. this.$refs.alertRef.reset()
  36. },
  37. },
  38. }
  39. </script>