index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <!-- 套保品种详情 -->
  3. <a-modal class="commonModal modify-custom"
  4. title="详情"
  5. v-if="visible"
  6. v-model:visible="visible"
  7. centered
  8. :maskClosable="maskClosableFlag"
  9. @cancel="cancel"
  10. width="890px">
  11. <template #footer>
  12. <a-button key="submit"
  13. type="primary"
  14. :loading="loading"
  15. @click="submit">完成</a-button>
  16. </template>
  17. </a-modal>
  18. </template>
  19. <script lang="ts">
  20. import { defineComponent, ref } from 'vue';
  21. import { closeModal } from '@/common/setup/modal/index';
  22. import { initData } from '@/common/methods/index';
  23. export default defineComponent({
  24. name: 'modify-custom',
  25. components: {},
  26. props: {
  27. // selectedRow: {
  28. // type:
  29. // }
  30. },
  31. setup() {
  32. const { visible, cancel } = closeModal('detail');
  33. const loading = ref<boolean>(false);
  34. const maskClosableFlag = ref<boolean>(false);
  35. function submit() {
  36. cancel();
  37. }
  38. initData(() => {});
  39. return {
  40. visible,
  41. cancel,
  42. submit,
  43. loading,
  44. maskClosableFlag: false,
  45. };
  46. },
  47. });
  48. </script>
  49. <style lang="less">
  50. .modify-custom {
  51. .upload {
  52. display: inline-flex;
  53. .ant-btn.uploadBtn {
  54. width: 60px;
  55. height: 30px;
  56. background: @m-blue0;
  57. border: 0;
  58. padding: 0;
  59. text-align: center;
  60. font-size: 14px;
  61. color: @m-white0;
  62. .rounded-corners(3px);
  63. &:hover {
  64. background: rgba(@m-blue0, 0);
  65. color: rgba(@m-white0, 0.8);
  66. }
  67. }
  68. .look {
  69. color: @m-blue0;
  70. font-size: 14px;
  71. margin-left: 10px;
  72. cursor: pointer;
  73. }
  74. }
  75. }
  76. </style
  77. >;