代码调试

This commit is contained in:
BianLzhaoMin 2024-10-31 09:48:23 +08:00
parent 7b1c73b230
commit b14c899f4b
1 changed files with 7 additions and 4 deletions

View File

@ -29,7 +29,7 @@
<el-button <el-button
type="primary" type="primary"
style="padding: 8px 16px; margin-left: 5px" style="padding: 8px 16px; margin-left: 5px"
@click="handleQuery()" @click="handleClickQuery()"
>查询</el-button >查询</el-button
> >
</el-col> </el-col>
@ -273,6 +273,12 @@ export default {
this.calLat = res.callat || 39.915 this.calLat = res.callat || 39.915
} }
}, },
handleClickQuery() {
this.handleQuery().then(() => {
if (this.tripInfoListNew.length < 1) return
this.onDrawLine(this.tripInfoListNew)
})
},
/** 查询按钮 */ /** 查询按钮 */
async handleQuery() { async handleQuery() {
if (!this.queryForm.date) { if (!this.queryForm.date) {
@ -358,9 +364,6 @@ export default {
this.tripInfoListNew, this.tripInfoListNew,
) )
if (this.tripInfoListNew.length < 1) return
this.onDrawLine(this.tripInfoListNew)
// console.log(tripInfoList, '---') // console.log(tripInfoList, '---')
// let tripInfo = JSON.parse(res.msg) // let tripInfo = JSON.parse(res.msg)
// console.log(tripInfo, '', this.parkList) // console.log(tripInfo, '', this.parkList)