diff --git a/src/api/couplet/monitorinData.js b/src/api/couplet/monitorinData.js new file mode 100644 index 0000000..1a6dd94 --- /dev/null +++ b/src/api/couplet/monitorinData.js @@ -0,0 +1,8 @@ +import request from "@/utils/request"; + +export function monitorinDataList(vin) { + return request({ + url: '/business/detection/monitorinDataList/'+vin, + method: 'post', + }) +} diff --git a/src/views/couplet/VehicleDetection/index.vue b/src/views/couplet/VehicleDetection/index.vue index 4083d71..2dee44a 100644 --- a/src/views/couplet/VehicleDetection/index.vue +++ b/src/views/couplet/VehicleDetection/index.vue @@ -72,6 +72,7 @@ //例如:import 《组件名称》 from '《组件路径》, import {getVehicleTypes} from "@/api/couplet/vehicle"; import {detectionList, postFindByVin, stopViewingData} from "@/api/couplet/VehicleDetection"; +import {monitorinDataList} from "@/api/couplet/monitorinData"; export default { //import引入的组件需要注入到对象中才能使用" @@ -100,8 +101,6 @@ export default { //计算属性 类似于data概念", computed: {}, //监控data中的数据变化", - watch: {}, - //方法集合", methods: { //获取车辆列表 getVehicleList() { @@ -131,19 +130,11 @@ export default { ) }, findByVehicle(vin){ - postFindByVin(vin).then(res=>{ - if(res.code==200){ - this.$message({ - message: res.msg, - type: 'success' - }); - }else{ - this.$message({ - message: res.msg, - type: 'error' - }); - } - }) + postFindByVin(vin).then(() => { + monitorinDataList(vin).then(() => { + this.$router.push({ path: 'monitorinData', params: { vin } }); + }); + }); }, stopViewingData(vin){ stopViewingData(vin).then(res=>{ @@ -162,6 +153,8 @@ export default { } }, + //方法集合", + watch: {}, //生命周期 - 创建完成(可以访问当前this实例)", created() { //获取车辆列表 diff --git a/src/views/couplet/monitorinData/index.vue b/src/views/couplet/monitorinData/index.vue new file mode 100644 index 0000000..310a6aa --- /dev/null +++ b/src/views/couplet/monitorinData/index.vue @@ -0,0 +1,355 @@ + + + +