83c7f4be5dde2bdb6f8db70f17f8f46f3a3d71ca.svn-base 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <j-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. switchFullscreen
  7. @ok="handleOk"
  8. :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  9. @cancel="handleCancel"
  10. cancelText="关闭">
  11. <div class="attrPane">
  12. <rm-axlh-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></rm-axlh-form>
  13. </div>
  14. <div class="geomPane">
  15. <basic-map layersUrl='/resManager.catalog/rescatalog/resList'
  16. :model="{...model,layerName:'岸线绿化'}"></basic-map>
  17. </div>
  18. </j-modal>
  19. </template>
  20. <script>
  21. import RmAxlhForm from './RmAxlhForm'
  22. import BasicMap from "@comp/BasicMap/BasicMap";
  23. export default {
  24. name: 'RmAxlhModal',
  25. components: {
  26. RmAxlhForm,
  27. BasicMap
  28. },
  29. data() {
  30. return {
  31. title: '',
  32. width: 800,
  33. visible: false,
  34. disableSubmit: false
  35. }
  36. },
  37. methods: {
  38. add() {
  39. this.visible = true
  40. this.$nextTick(() => {
  41. this.$refs.realForm.add();
  42. })
  43. },
  44. edit(record) {
  45. this.visible = true;
  46. this.model = record;
  47. this.$nextTick(() => {
  48. this.$refs.realForm.edit(record);
  49. })
  50. },
  51. close() {
  52. this.$emit('close');
  53. this.visible = false;
  54. },
  55. handleOk() {
  56. this.$refs.realForm.submitForm();
  57. },
  58. submitCallback() {
  59. this.$emit('ok');
  60. this.visible = false;
  61. },
  62. handleCancel() {
  63. this.close()
  64. }
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. .attrPane {
  70. width: 33%;
  71. display: inline-block;
  72. overflow-y: auto;
  73. height: 750px;
  74. }
  75. .geomPane {
  76. width: 66%;
  77. display: inline-block;
  78. }
  79. </style>