任务流转
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-22">
|
<view class="zd-col-22">
|
||||||
<view class="zd-row flow_start_item" @tap="checkcode1(e)" :class="{'flow_start_item_checked': pkId1 === e.point_code}">
|
<view class="zd-row flow_start_item" @tap="checkcode1(e)" :class="{'flow_start_item_checked': pkId1 === e.point_id}">
|
||||||
<view class="zd-col-8 pdl20 pdr20 font-size-1">{{e.point_code}}</view>
|
<view class="zd-col-8 pdl20 pdr20 font-size-1">{{e.point_code}}</view>
|
||||||
<view class="zd-col-16 pdr20 font-size-2">{{e.point_name}}</view>
|
<view class="zd-col-16 pdr20 font-size-2">{{e.point_name}}</view>
|
||||||
<view v-show="pkId1 === e.point_code" class="iconfont icon_choosed"></view>
|
<view v-show="pkId1 === e.point_code" class="iconfont icon_choosed"></view>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-22">
|
<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, e)" :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_id}">
|
||||||
<view class="zd-col-8 pdl20 pdr20 font-size-1">{{el.point_code}}</view>
|
<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 class="zd-col-16 pdr20 font-size-2">{{el.point_name}}</view>
|
||||||
<view v-show="pkId2 === el.point_code" class="iconfont icon_choosed"></view>
|
<view v-show="pkId2 === el.point_code" class="iconfont icon_choosed"></view>
|
||||||
@@ -69,7 +69,9 @@
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
pkId1: '',
|
pkId1: '',
|
||||||
pkId2: '',
|
pkId2: '',
|
||||||
pkId3: ''
|
pid1: '',
|
||||||
|
pid2: '',
|
||||||
|
pd2: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -82,18 +84,21 @@
|
|||||||
this.dataList = [...res]
|
this.dataList = [...res]
|
||||||
},
|
},
|
||||||
checkcode1 (e) {
|
checkcode1 (e) {
|
||||||
if (this.pkId3 !== '' && e.point_code !== this.pkId3) {
|
if (this.pid2 !== '' && e.point_id !== this.pid2) {
|
||||||
this.pkId2 = ''
|
this.pkId2 = ''
|
||||||
this.pkId3 = ''
|
this.pid2 = ''
|
||||||
|
this.pd2 = ''
|
||||||
}
|
}
|
||||||
this.pkId1 = this.pkId1 === e.point_code ? '' : e.point_code
|
this.pkId1 = this.pkId1 === e.point_id ? '' : e.point_id
|
||||||
|
this.pid1 = this.pkId1 === e.point_id ? e.point_code : ''
|
||||||
},
|
},
|
||||||
checkcode2 (el, e) {
|
checkcode2 (el, e) {
|
||||||
if (this.pkId1 !== '' && this.pkId1 !== e.point_code) {
|
if (this.pkId1 !== '' && this.pkId1 !== e.point_id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.pkId2 = this.pkId2 === el.point_code ? '' : el.point_code
|
this.pkId2 = this.pkId2 === el.point_id ? '' : el.point_id
|
||||||
this.pkId3 = this.pkId2 === el.point_code ? e.point_code : ''
|
this.pid2 = this.pkId2 === el.point_id ? e.point_id : ''
|
||||||
|
this.pd2 = this.pkId2 === el.point_id ? el.point_code : ''
|
||||||
},
|
},
|
||||||
/** 重新下发 */
|
/** 重新下发 */
|
||||||
async toSure () {
|
async toSure () {
|
||||||
@@ -103,10 +108,13 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await createP2pTask(this.pkId1, this.pkId2)
|
let res = await createP2pTask(this.pid1, this.pd2)
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
this.pkId1 = ''
|
this.pkId1 = ''
|
||||||
this.pkId2 = ''
|
this.pkId2 = ''
|
||||||
|
this.pid1 = ''
|
||||||
|
this.pid2 = ''
|
||||||
|
this.pd2 = ''
|
||||||
this._queryAllPoints()
|
this._queryAllPoints()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user