housePriceSchemeDetailModal.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <j-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. switchFullscreen
  7. :footer="null"
  8. :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  9. @cancel="handleCancel"
  10. cancelText="关闭"
  11. >
  12. <house-price-scheme-detail-list ref="detailModal" :schemeId="schemeId"></house-price-scheme-detail-list>
  13. </j-modal>
  14. </template>
  15. <script>
  16. import HousePriceSchemeDetailList from "./housePriceSchemeDetailList";
  17. export default {
  18. name: 'housePriceSchemeDetailModal',
  19. components: {
  20. HousePriceSchemeDetailList,
  21. },
  22. data () {
  23. return {
  24. title:'',
  25. width:1350,
  26. visible: false,
  27. disableSubmit: false,
  28. schemeId:null,
  29. }
  30. },
  31. methods: {
  32. add () {
  33. this.visible=true
  34. this.$nextTick(()=>{
  35. this.$refs.detailModal.add();
  36. })
  37. },
  38. edit (record) {
  39. this.visible=true
  40. this.$nextTick(()=>{
  41. this.$refs.detailModal.edit(record);
  42. })
  43. },
  44. close () {
  45. this.$emit('close');
  46. this.visible = false;
  47. },
  48. handleOk () {
  49. this.$refs.detailModal.submitForm();
  50. },
  51. submitCallback(){
  52. this.$emit('ok');
  53. this.visible = false;
  54. },
  55. handleCancel () {
  56. this.close()
  57. }
  58. }
  59. }
  60. </script>