JpupMap.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <j-modal
  3. :title="title"
  4. :width="width"
  5. :visible="visible"
  6. :fullscreen="false"
  7. @ok="handleOk"
  8. okText="保存"
  9. :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  10. @cancel="handleCancel"
  11. cancelText="关闭"
  12. >
  13. <a-tabs default-active-key="map">
  14. <a-tab-pane key="map" tab="位置信息" style="width:100%;height: 500px">
  15. <Map :lat=this.lats :lng=this.lngs @recievePosition="getposition"></Map>
  16. </a-tab-pane>
  17. </a-tabs>
  18. <!--邱东宝 增加modal按钮调整到顶部 end-->
  19. </j-modal>
  20. </template>
  21. <script>
  22. import QcSsgqzysytdqkForm from '../sydwqcsb/modules/QcSsgqzysytdqkForm';
  23. import Map from "@views/map/components/Map";
  24. export default {
  25. name: 'QcSsgqzysytdqkModal',
  26. components: {
  27. QcSsgqzysytdqkForm,
  28. Map
  29. },
  30. props: {
  31. toDk:{
  32. },
  33. lngs: { //精度
  34. type: String,
  35. default: ''
  36. },
  37. lats: { //纬度
  38. type: String,
  39. default: ''
  40. }
  41. },
  42. data () {
  43. return {
  44. title:'',
  45. width:896,
  46. visible: false,
  47. disableSubmit: false,
  48. disa:false,
  49. model:{
  50. },
  51. }
  52. },
  53. watch:{
  54. },
  55. methods: {
  56. getposition(val){
  57. this.model=val;
  58. this.$emit("position",this.model)
  59. },
  60. close () {
  61. this.$emit('close');
  62. this.visible = false;
  63. },
  64. handleOk () {
  65. this.visible = false;
  66. },
  67. submitCallback(){
  68. this.$emit('ok');
  69. this.visible = false;
  70. },
  71. handleCancel () {
  72. this.close()
  73. }
  74. }
  75. }
  76. </script>