|
|
@@ -718,6 +718,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
const { data = [] } = res.variables || {}
|
|
|
const blockList = this.getBlockResult(data || [], 'default')
|
|
|
+
|
|
|
const createBy = this.userInfo.user.id
|
|
|
if (blockList[createBy]) {
|
|
|
const lockMid = []
|
|
|
@@ -734,12 +735,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- if (switchBtn === 'on') {
|
|
|
- this.$toast(`${row.tiaobanBenRenBanCi}调班班次【 ${lockMid.join(',')} 】已被申请,请重新选择`)
|
|
|
+ if (lockMid.length > 0) {
|
|
|
+ if (switchBtn === 'on') {
|
|
|
+ this.$toast(`${row.tiaobanBenRenBanCi}调班班次【 ${lockMid.join(',')} 】已被申请,请重新选择`)
|
|
|
+ }
|
|
|
+ this.rowTF[index] = { status: false, info: `${row.tiaobanBenRenBanCi}调班班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
}
|
|
|
-
|
|
|
- // return { status: false, info: `${row.tiaobanBenRenBanCi}调班班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
- this.rowTF[index] = { status: false, info: `${row.tiaobanBenRenBanCi}调班班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
}
|
|
|
const party = row.tiaobanMuBiaoRenYuanId
|
|
|
if (blockList[party]) {
|
|
|
@@ -757,12 +758,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- if (switchBtn === 'on') {
|
|
|
- this.$toast(`${row.tiaobanMuBiaoRiQi}目标班次【 ${lockMid.join(',')} 】已被申请,请重新选择`)
|
|
|
+ if (lockMid.length > 0) {
|
|
|
+ if (switchBtn === 'on') {
|
|
|
+ this.$toast(`${row.tiaobanMuBiaoRiQi}目标班次【 ${lockMid.join(',')} 】已被申请,请重新选择`)
|
|
|
+ }
|
|
|
+ this.rowTF[index] = { status: false, info: `${row.tiaobanMuBiaoRiQi}目标班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
}
|
|
|
-
|
|
|
- this.rowTF[index] = { status: false, info: `${row.tiaobanMuBiaoRiQi}目标班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
- // return { status: false, info: `${row.tiaobanMuBiaoRiQi}目标班次【 ${lockMid.join(',')} 】已被申请,请重新选择` }
|
|
|
}
|
|
|
})
|
|
|
|