feat(board): 优化母线槽inspect查询功能

- 在 API 请求中添加 params 参数
- 修复站点点击事件,传递正确参数
- 更新 InspectionData 数据获取方式
IOT
zch 2 weeks ago
parent 04978908b6
commit 9ada26f5b5

@ -6,6 +6,8 @@ export function baseBusbarInfolist(query) {
url: '/base/baseBusbarInfo/baseBusbarInfolist', url: '/base/baseBusbarInfo/baseBusbarInfolist',
method: 'post', method: 'post',
timeout:1000*60, timeout:1000*60,
data: query data: query,
params: query,
}) })
} }

@ -112,7 +112,7 @@
<div class="prodLine"></div> <div class="prodLine"></div>
<div class="station" v-for="(i,k) in stationList" <div class="station" v-for="(i,k) in stationList"
@click="openInspectionModel" @click="openInspectionModel(k)"
:style="`top: ${i.top}%;left: ${i.left}%;background-color: ${k === 4 ?'#2979e8':'#234271'}`"></div> :style="`top: ${i.top}%;left: ${i.left}%;background-color: ${k === 4 ?'#2979e8':'#234271'}`"></div>
<div class="video1"> <div class="video1">
@ -668,6 +668,7 @@ export default {
console.log(this.InspectionVisible); console.log(this.InspectionVisible);
baseBusbarInfolist({cabinetCode:e}).then(e=>{ baseBusbarInfolist({cabinetCode:e}).then(e=>{
console.log(e) console.log(e)
this.InspectionData = e.data
}) })
}, },
inspection(e){ inspection(e){

Loading…
Cancel
Save