index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <!-- 客户资料详情-->
  3. <a-modal class="add-custom custom-detail"
  4. title="客户资料详情"
  5. v-model:visible="visible"
  6. centered
  7. :maskClosable="maskClosableFlag"
  8. @cancel="cancel"
  9. width="890px">
  10. <template #footer>
  11. <a-button key="submit"
  12. type="primary"
  13. :loading="loading.loading"
  14. @click="cancel">关闭</a-button>
  15. </template>
  16. <Detail :selectedRow="selectedRow" />
  17. </a-modal>
  18. </template>
  19. <script lang="ts">
  20. import { defineComponent, PropType, ref } from 'vue';
  21. import { closeModal } from '@/common/setup/modal/index';
  22. import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
  23. import Detail from '../common-detail/index.vue';
  24. export default defineComponent({
  25. name: 'custom-detail',
  26. components: { Detail },
  27. props: {
  28. selectedRow: {
  29. type: Object as PropType<QueryCustomInfoType>,
  30. default: {},
  31. },
  32. },
  33. setup(props) {
  34. console.log('open');
  35. const { visible, cancel } = closeModal('detail');
  36. const loading = ref<boolean>(false);
  37. const maskClosableFlag = ref<boolean>(false);
  38. return {
  39. visible,
  40. cancel,
  41. loading,
  42. maskClosableFlag,
  43. };
  44. },
  45. });
  46. </script>
  47. <style lang="less">
  48. .custom-detail {
  49. .ant-form.inlineForm {
  50. margin-top: 20px;
  51. }
  52. .upload {
  53. .look {
  54. margin-left: 0;
  55. }
  56. }
  57. }
  58. </style>;