Commit 17b6a2c6 authored by xxx's avatar xxx

修改区域设置时重新加载地图问题

parent 49bd97ec
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<input type="file" name="image" @change="excelImport($event)" /> <input type="file" name="image" @change="excelImport($event)" />
</el-form-item> </el-form-item>
<div id="centerDiv" class="mapcontainer3" v-show="form.reqType == 'add'"> <div id="centerDiv" class="mapcontainer3" v-show="form.reqType == 'add'">
<mars3dViewerMap :url="configUrl" @onload="onMapload" ref="mars3dViewerMapMethod"/> <mars3dViewerMap :url="configUrl" @onload="onMapload" ref="mars3dViewerMapMethod" :key="shuaxinTimer"/>
</div> </div>
...@@ -153,6 +153,8 @@ export default { ...@@ -153,6 +153,8 @@ export default {
{required: true, message: '请输入最大承接车辆数', trigger: 'blur' } {required: true, message: '请输入最大承接车辆数', trigger: 'blur' }
], ],
}, },
//重新加载地图
shuaxinTimer:null,
} }
}, },
...@@ -207,6 +209,7 @@ export default { ...@@ -207,6 +209,7 @@ export default {
}, },
toAdd() { toAdd() {
// 请除表单验证 // 请除表单验证
this.shuaxinTimer = new Date().getTime();
this.$refs['form1'] && this.$refs['form1'].clearValidate(); this.$refs['form1'] && this.$refs['form1'].clearValidate();
this.form.title = '新增区域信息'; this.form.title = '新增区域信息';
this.form.status.cu = 0; this.form.status.cu = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment