Location bug fixes

This commit is contained in:
Natsumi
2021-06-21 14:34:01 +12:00
parent f36e43b25f
commit ff1a1bc199
3 changed files with 8 additions and 6 deletions

View File

@@ -87,11 +87,10 @@ html
template(v-once #default="scope")
div(style="position:relative;font-size:14px")
template(v-if="scope.row.type === 'GPS'")
template(v-if="scope.row.location[1]")
location(:location="scope.row.location[1]")
el-tag(type="info" effect="plain" size="mini" style="margin-left:5px") {{ scope.row.time | timeToText }}
br
span
location(v-if="scope.row.location[1]" :location="scope.row.location[1]")
el-tag(type="info" effect="plain" size="mini" style="margin-left:5px") {{ scope.row.time | timeToText }}
br
span
i.el-icon-right
location(v-if="scope.row.location[0]" :location="scope.row.location[0]")
template(v-else-if="scope.row.type === 'Offline'")