| | |
| | | </div> |
| | | </el-form> |
| | | <div class="map"> |
| | | <!-- <MyMap></MyMap> --> |
| | | <MyMap></MyMap> |
| | | </div> |
| | | <div class="footer"> |
| | | <el-button type="primary" @click="handleDispatch">确定</el-button> |
| | |
| | | }) |
| | | .then((AMap) => { |
| | | this.map = new AMap.Map("container"); |
| | | this.map.setZoomAndCenter(15,['119.27179890', '28.59027084']); |
| | | }) |
| | | .catch((e) => { |
| | | console.log(e); |
| | |
| | | </div> |
| | | </div> |
| | | <div class="sjm-content-center"> |
| | | <div class="map"> |
| | | <MyMap></MyMap> |
| | | </div> |
| | | <!-- <iframe src="https://183.245.159.161:8282/OneMap/index.html#/OneMap?code=2&clientVersion=&skin=white&locale=zh&otherAuthor=allowable"></iframe> --> |
| | | </div> |
| | | <div class="sjm-content-right"> |
| | |
| | | import { validateCarNum } from "@/utils/validate"; |
| | | import MyDispatch from "@/components/dispatch"; |
| | | |
| | | import MyMap from "@/components/map"; |
| | | |
| | | export default { |
| | | components: { MyDispatch }, |
| | | components: { MyDispatch, MyMap }, |
| | | created() { |
| | | this.getInspectionData(); |
| | | this.initEventParams(); |
| | |
| | | }, |
| | | mounted() { |
| | | this.timer = setInterval(() => { |
| | | setTimeout(this.getInspectionData, 0) |
| | | }, 1000*10) |
| | | setTimeout(this.getInspectionData, 0); |
| | | }, 1000 * 10); |
| | | }, |
| | | data() { |
| | | const validateCarNumber = (rule, value, callback) => { |
| | |
| | | } |
| | | }; |
| | | return { |
| | | timer:null, |
| | | timer: null, |
| | | countData: { |
| | | study: 0, |
| | | review: 0, |
| | |
| | | beforeDestroy() { |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | color: #4b9bb7; |
| | | } |
| | | } |
| | | |
| | | .map { |
| | | height: 488px; |
| | | min-width: 460px; |
| | | } |
| | | </style> |