|
@@ -37,9 +37,12 @@
|
|
|
</template>
|
|
|
<!--车号1-->
|
|
|
<template slot="wagonNumberOne" slot-scope="{ row }">
|
|
|
- <span style="color: #409EFF;" @click="openTrack(row,1)">{{row.wagonNumberOne}}</span>
|
|
|
-<!-- <span style="color: #409EFF;" @click="openTrack(row,1)">鲁RM9561</span>-->
|
|
|
+ <span style="color: #409EFF;" @click="openTrack(row,1, row.wagonNumberOne)">{{row.wagonNumberOne}}</span>
|
|
|
</template>
|
|
|
+ <!--车号2-->
|
|
|
+ <template slot="wagonNumberTwo" slot-scope="{ row }">
|
|
|
+ <span style="color: #409EFF;" @click="openTrack(row,1, row.wagonNumberTwo)">{{row.wagonNumberTwo}}</span>
|
|
|
+ </template>
|
|
|
|
|
|
<template slot-scope="scope" slot="orderNo">
|
|
|
<span style="color: #409EFF;cursor: pointer" @click.stop="beforeOpenPage(scope.row, scope.index)">{{scope.row.orgOrderNo}}</span>
|
|
@@ -269,14 +272,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 车号查询位置
|
|
|
- openTrack(row, index) {
|
|
|
+ openTrack(row, index, wagonNumber) {
|
|
|
// location({itemId: row.itemId, plateNo: row.wagonNumberOne, tenantId: this.hctenantId, color: '2'}).then(res => {
|
|
|
// row.wagonNumberOne = '鲁RM9561'
|
|
|
- location({itemId: row.id, plateNo: row.wagonNumberOne, tenantId: this.hctenantId, color: '2'}).then(res => {
|
|
|
+ location({itemId: row.id, plateNo: wagonNumber, tenantId: this.hctenantId, color: '2'}).then(res => {
|
|
|
this.dialogVisible = true
|
|
|
let this_ = this
|
|
|
setTimeout(function () {
|
|
|
- this_.initMap(res.data.data, row.wagonNumberOne);
|
|
|
+ this_.initMap(res.data.data, wagonNumber);
|
|
|
}, 1000)
|
|
|
})
|
|
|
},
|