修改禅道已知bug
This commit is contained in:
@@ -1420,5 +1420,5 @@ module.exports = {
|
|||||||
endProcess:'结束流程',
|
endProcess:'结束流程',
|
||||||
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
||||||
secondaryDirectory:'二级目录',
|
secondaryDirectory:'二级目录',
|
||||||
OnlyPersonsCanBeSelected:'超出最大上限;只能选择100个人员',
|
OnlyPersonsCanBeSelected:'超出最大上限;最多只能选择100个人员',
|
||||||
}
|
}
|
||||||
@@ -316,6 +316,10 @@
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// if (this.userIds && this.userIds.length > 0) {
|
// if (this.userIds && this.userIds.length > 0) {
|
||||||
|
if (this.userIds.length > 100 && this.selectDepartment) {
|
||||||
|
this.$message.warning(this.$t('OnlyPersonsCanBeSelected'))
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.isSingleChoice) {
|
if (this.isSingleChoice) {
|
||||||
if (this.userIds.length > 1) {
|
if (this.userIds.length > 1) {
|
||||||
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
|
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
|
||||||
@@ -324,16 +328,12 @@
|
|||||||
}
|
}
|
||||||
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
let userIds = JSON.parse(JSON.stringify(this.userIds))
|
||||||
let userName = JSON.parse(JSON.stringify(this.userName))
|
let userName = JSON.parse(JSON.stringify(this.userName))
|
||||||
userName = userName.filter(function(item, index) {
|
// userName = userName.filter(function(item, index) {
|
||||||
return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
// return userName.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
||||||
})
|
// })
|
||||||
userIds = userIds.filter(function(item, index) {
|
// userIds = userIds.filter(function(item, index) {
|
||||||
return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
// return userIds.indexOf(item) === index // 因为indexOf 只能查找到第一个
|
||||||
})
|
// })
|
||||||
if (userIds.length > 100 && this.selectDepartment) {
|
|
||||||
this.$message.warning(this.$t('OnlyPersonsCanBeSelected'))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.$emit('input', userName.join(','))
|
this.$emit('input', userName.join(','))
|
||||||
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
|
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
@@ -112,6 +112,7 @@
|
|||||||
<PersonnelSelection
|
<PersonnelSelection
|
||||||
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||||
:personneQuery="formInline"
|
:personneQuery="formInline"
|
||||||
|
:selectDepartment="true"
|
||||||
@change="PersonnelSelectionChange"
|
@change="PersonnelSelectionChange"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
v-model="formInline.certificationEngineerName"/>
|
v-model="formInline.certificationEngineerName"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user