diff --git a/src/views/warehouseManage/machinery/coding-nw/component/MapDIalog.vue b/src/views/warehouseManage/machinery/coding-nw/component/MapDIalog.vue index adedd93..9c2db73 100644 --- a/src/views/warehouseManage/machinery/coding-nw/component/MapDIalog.vue +++ b/src/views/warehouseManage/machinery/coding-nw/component/MapDIalog.vue @@ -29,7 +29,7 @@ 查询 @@ -273,6 +273,12 @@ export default { this.calLat = res.callat || 39.915 } }, + handleClickQuery() { + this.handleQuery().then(() => { + if (this.tripInfoListNew.length < 1) return + this.onDrawLine(this.tripInfoListNew) + }) + }, /** 查询按钮 */ async handleQuery() { if (!this.queryForm.date) { @@ -358,9 +364,6 @@ export default { this.tripInfoListNew, ) - if (this.tripInfoListNew.length < 1) return - this.onDrawLine(this.tripInfoListNew) - // console.log(tripInfoList, '处理后的行程---') // let tripInfo = JSON.parse(res.msg) // console.log(tripInfo, '反序列化之后', this.parkList)