index.vue 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <!-- 计划 重新提交-->
  3. <a-modal class="commonModal plan-recommit"
  4. title="重新提交"
  5. v-model:visible="visible"
  6. centered
  7. @cancel="cancel"
  8. width="890px">
  9. <template #footer>
  10. <a-button key="submit"
  11. type="primary"
  12. :loading="loading"
  13. @click="submit">完成</a-button>
  14. </template>
  15. </a-modal>
  16. </template>
  17. <script lang="ts">
  18. import { defineComponent, ref } from 'vue';
  19. import { closeModal } from '@/common/setup/modal/index';
  20. export default defineComponent({
  21. name: 'plan-recommit',
  22. components: {},
  23. setup() {
  24. const { visible, cancel } = closeModal('plan_uncommitted_recommit');
  25. const loading = ref<boolean>(false);
  26. function submit() {
  27. cancel();
  28. }
  29. return {
  30. visible,
  31. cancel,
  32. submit,
  33. loading,
  34. };
  35. },
  36. });
  37. </script>
  38. <style lang="less">
  39. .plan-recommit {
  40. }
  41. </style
  42. >;