修改巡检模块状态错误问题

This commit is contained in:
赵毅 2025-09-26 15:30:32 +08:00
parent aee000cd6b
commit 1c01a7dcb7

View File

@ -15,7 +15,7 @@
<!-- 有选项时显示选项列表 -->
<view v-else>
<view v-for="option in pointsList"
:key="option.point_id"
:key="option.id"
class="option-item"
@click="selectPointHandler(option)">
{{ option.point_info.point_name }}
@ -87,12 +87,11 @@ export default {
this.pointsList = res.task_point_info
},
selectPointHandler(option) {
console.log("🚀 ~ selectPointHandler ~ option:", option)
//
if (option && option.point_info && option.point_info.point_name) {
// id
this.selectedPoint = option.location_info && option.point_id
? option.point_id
this.selectedPoint = option.location_info && option.id
? option.id
: option.id || option.point_info.point_name
this.selectedPointInfo = option //
this.searchKeyword = option.point_info.point_name