From 857f2cca296325387841e42a5cbae716cdeae9d9 Mon Sep 17 00:00:00 2001 From: ffr <492210217@qq.com> Date: Mon, 8 Apr 2024 11:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E5=87=A1=E8=8A=AEcommit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/couplet/VehicleDetection.js | 6 ++++++ src/views/couplet/VehicleDetection/index.vue | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/api/couplet/VehicleDetection.js b/src/api/couplet/VehicleDetection.js index 12d3cf4..1a986fe 100644 --- a/src/api/couplet/VehicleDetection.js +++ b/src/api/couplet/VehicleDetection.js @@ -12,3 +12,9 @@ export function postFindByVin(vin) { method: 'post', }) } +export function stopViewingData(vin) { + return request({ + url: '/business/detection/stopViewingData/'+vin, + method: 'post', + }) +} diff --git a/src/views/couplet/VehicleDetection/index.vue b/src/views/couplet/VehicleDetection/index.vue index 93ce93b..4083d71 100644 --- a/src/views/couplet/VehicleDetection/index.vue +++ b/src/views/couplet/VehicleDetection/index.vue @@ -60,6 +60,7 @@ @@ -70,7 +71,7 @@ //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等), //例如: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' + }); + } + }) } },