对接文档详情的法规清单
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user