Compare commits
No commits in common. "5bfea7904858a8fcacdfab26342b5ae0f55c89cf" and "91769874b85bf723d41277e5eeabec798c71428b" have entirely different histories.
5bfea79048
...
91769874b8
|
@ -12,9 +12,3 @@ export function postFindByVin(vin) {
|
|||
method: 'post',
|
||||
})
|
||||
}
|
||||
export function stopViewingData(vin) {
|
||||
return request({
|
||||
url: '/business/detection/stopViewingData/'+vin,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
<el-table-column label="操作" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="danger" @click="findByVehicle(scope.row.vin)">查看实时数据</el-button>
|
||||
<el-button size="mini" type="danger" @click="stopViewingData(scope.row.vin)">停止查看实时数据</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -71,7 +70,7 @@
|
|||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||
//例如:import 《组件名称》 from '《组件路径》,
|
||||
import {getVehicleTypes} from "@/api/couplet/vehicle";
|
||||
import {detectionList, postFindByVin, stopViewingData} from "@/api/couplet/VehicleDetection";
|
||||
import {detectionList, postFindByVin} from "@/api/couplet/VehicleDetection";
|
||||
|
||||
export default {
|
||||
//import引入的组件需要注入到对象中才能使用"
|
||||
|
@ -144,21 +143,6 @@ export default {
|
|||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
stopViewingData(vin){
|
||||
stopViewingData(vin).then(res=>{
|
||||
if(res.code==200){
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue