单选人员控件选择后覆盖
This commit is contained in:
@@ -303,6 +303,11 @@
|
|||||||
|
|
||||||
onCheck(checkedKeys, info) {
|
onCheck(checkedKeys, info) {
|
||||||
this.userIds = checkedKeys.checked
|
this.userIds = checkedKeys.checked
|
||||||
|
if (this.isSingleChoice) {
|
||||||
|
if (this.userIds.length > 1) {
|
||||||
|
this.userIds.shift()
|
||||||
|
}
|
||||||
|
}
|
||||||
this.userName = []
|
this.userName = []
|
||||||
if (this.userIds.length > 0) {
|
if (this.userIds.length > 0) {
|
||||||
for (let i = 0; i < this.userIds.length; i++) {
|
for (let i = 0; i < this.userIds.length; i++) {
|
||||||
|
|||||||
@@ -168,6 +168,12 @@
|
|||||||
this.userName.push(res.data.props.dataRef.title)
|
this.userName.push(res.data.props.dataRef.title)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (this.isSingleChoice) {
|
||||||
|
if (this.userIds.length > 1) {
|
||||||
|
this.userIds.shift()
|
||||||
|
this.userName.shift()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user