修改人员选择的限制

This commit is contained in:
qq787203167
2022-06-10 11:25:08 +08:00
parent 996b87ab94
commit 95e71593ff
2 changed files with 44 additions and 7 deletions
@@ -132,7 +132,7 @@
this.treeVisible = false
},
handleSubmit() {
if (this.userIds && this.userIds.length > 0) {
// if (this.userIds && this.userIds.length > 0) {
if (this.isSingleChoice) {
if (this.userIds.length > 1) {
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
@@ -145,9 +145,9 @@
this.$emit('change', this.query.db_field_name, userIds.join(','))
this.visible = false
this.treeVisible = false
} else {
this.$message.warning(this.$t('pleaseSelectPersonFirst'))
}
// } else {
// this.$message.warning(this.$t('pleaseSelectPersonFirst'))
// }
},
indexclick(event) {
this.$emit('input', event.target.value)