对接文档详情的法规清单

This commit is contained in:
qq787203167
2022-04-18 15:17:59 +08:00
parent 2facbce5c7
commit 57c617d8e3
6 changed files with 35 additions and 2 deletions
@@ -47,7 +47,7 @@
export default {
name: 'index',
props: ['query', 'value', 'personneQuery'],
props: ['query', 'value', 'personneQuery','isSingleChoice'],
data() {
return {
loading: true,
@@ -96,6 +96,11 @@
},
handleSubmit() {
if (this.userIds && this.userIds.length > 0) {
if (this.isSingleChoice){
if (this.userIds.length > 1){
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
}
}
let userIds = JSON.parse(JSON.stringify(this.userIds))
let userName = JSON.parse(JSON.stringify(this.userName))
this.$emit('input', userName.join(','))
@@ -103,7 +108,7 @@
this.visible = false
this.treeVisible = false
} else {
this.$message.warning('请先选择人员')
this.$message.warning(this.$t('pleaseSelectPersonFirst'))
}
},
indexclick(event) {