| | |
| | | icon="el-icon-location-outline" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleMap()" |
| | | @click.stop="handleMap(row)" |
| | | >定位</el-button |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | <el-drawer |
| | | title="我是标题" |
| | | title="电子地图" |
| | | append-to-body="true" |
| | | :visible.sync="qwe" |
| | | :direction="direction" |
| | | :visible.sync="showMap" |
| | | > |
| | | <iframe |
| | | src="http://www.baidu.com" |
| | | id="mapDiv" |
| | | ref="mapDiv" |
| | | src="/map/index.html?openid=ClientManagement" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="600px" |
| | | height="100%" |
| | | ></iframe> |
| | | </el-drawer> |
| | | </basic-container> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | showMap: false, |
| | | qwe: false, |
| | | direction: "rtl", |
| | | form: {}, |
| | |
| | | label: "设备编号", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 120, |
| | | prop: "deviceNumber" |
| | | }, |
| | | { |
| | |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({ path: "/distribution/index", query: data }); |
| | | } |
| | | }, |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].locationObj = {x: row.jd, y: row.wd}; |
| | | }; |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | that.updateJtyep(row); |
| | | that.dialogTableVisible = false; |
| | | that.$router.push({ path: "/distribution/index", query: row }); |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.dialogTableVisible = false; |