This commit is contained in:
2024-02-19 09:48:42 +08:00
parent 8e6e19a0e6
commit 454b7273cf
3 changed files with 35 additions and 15 deletions

View File

@@ -37,7 +37,7 @@
</view>
</view>
<view class="zd-col-22">
<view class="zd-row mgb10 flow_start_item" v-for="el in e.end_points" :key="el.point_code" @tap="checkcode2(el)" :class="{'flow_start_item_checked': pkId2 === el.point_code}">
<view class="zd-row mgb10 flow_start_item" v-for="el in e.end_points" :key="el.point_code" @tap="checkcode2(el, e)" :class="{'flow_start_item_checked': pkId2 === el.point_code}">
<view class="zd-col-8 pdl20 pdr20 font-size-1">{{el.point_code}}</view>
<view class="zd-col-16 pdr20 font-size-2">{{el.point_name}}</view>
<view v-show="pkId2 === el.point_code" class="iconfont icon_choosed">&#xe66b;</view>
@@ -68,7 +68,8 @@
dataList: [],
disabled: false,
pkId1: '',
pkId2: ''
pkId2: '',
pkId3: ''
};
},
created () {
@@ -81,10 +82,18 @@
this.dataList = [...res]
},
checkcode1 (e) {
if (this.pkId3 !== '' && e.point_code !== this.pkId3) {
this.pkId2 = ''
this.pkId3 = ''
}
this.pkId1 = this.pkId1 === e.point_code ? '' : e.point_code
},
checkcode2 (e) {
this.pkId2 = this.pkId2 === e.point_code ? '' : e.point_code
checkcode2 (el, e) {
if (this.pkId1 !== '' && this.pkId1 !== e.point_code) {
return
}
this.pkId2 = this.pkId2 === el.point_code ? '' : el.point_code
this.pkId3 = this.pkId2 === el.point_code ? e.point_code : ''
},
/** 重新下发 */
async toSure () {