| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 | <template>  <j-modal    :title="title"    :width="width"    :visible="visible"    switchFullscreen    @ok="handleOk"    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"    @cancel="handleCancel"    cancelText="关闭"><!--    <rm-xcjgjl-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></rm-xcjgjl-form>-->    <a-tabs default-active-key="attrs" @change="tabsChange">      <a-tab-pane key="attrs" tab="属性信息">        <rm-xcjgjl-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></rm-xcjgjl-form>      </a-tab-pane>      <a-tab-pane key="map" tab="位置信息">        <basic-map  ref="locMap" layersUrl='/resManager.catalog/rescatalog/resList' :model="{...model,layerName:''}"></basic-map>      </a-tab-pane>    </a-tabs>  </j-modal></template><script>  import RmXcjgjlForm from './RmXcjgjlForm'  import BasicMap from "../../../../../components/BasicMap/BasicMap";  export default {    name: 'RmXcjgjlModal',    components: {      BasicMap,      RmXcjgjlForm    },    data () {      return {        title:'',        width:896,        visible: false,        disableSubmit: false,        model:''      }    },    methods: {      add () {        this.visible=true        this.$nextTick(()=>{          this.$refs.realForm.add();        })      },      edit (record) {        this.lng = record.jd;        this.lat = record.wd;        this.model = record;        this.visible = true        this.$nextTick(() => {          this.$refs.realForm.edit(record);        })      },      close () {        this.$emit('close');        this.visible = false;      },      handleOk () {        this.$refs.realForm.submitForm();      },      submitCallback(){        this.$emit('ok');        this.visible = false;      },      handleCancel () {        this.close()      } ,      tabsChange(key) {        let that = this;        if (key == "map") {          this.$nextTick(() => {            this.$refs.locMap.handleCoord({...this.model});          })        }      },    }  }</script>
 |