Merge branch 'server_ui_fufanrui' of https://gitea.qinmian.online/five-groups/five-cloud-ui into server_five_ui

server_five_ui
lijiayao 2024-04-08 21:25:00 +08:00
commit 5bfea79048
2 changed files with 23 additions and 1 deletions

View File

@ -12,3 +12,9 @@ export function postFindByVin(vin) {
method: 'post',
})
}
export function stopViewingData(vin) {
return request({
url: '/business/detection/stopViewingData/'+vin,
method: 'post',
})
}

View File

@ -60,6 +60,7 @@
<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>
@ -70,7 +71,7 @@
//jsjsjson,
//import from ',
import {getVehicleTypes} from "@/api/couplet/vehicle";
import {detectionList, postFindByVin} from "@/api/couplet/VehicleDetection";
import {detectionList, postFindByVin, stopViewingData} from "@/api/couplet/VehicleDetection";
export default {
//import使"
@ -143,6 +144,21 @@ 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'
});
}
})
}
},