diff --git a/src/components/CustomFormComponents/InputForAllStandards2.vue b/src/components/CustomFormComponents/InputForAllStandards2.vue index d21d8e051..1ae78d471 100644 --- a/src/components/CustomFormComponents/InputForAllStandards2.vue +++ b/src/components/CustomFormComponents/InputForAllStandards2.vue @@ -310,12 +310,13 @@ type: 'warning' }) } - if (this.selectedListRep.length + textArr.length > 20) { - return this.$message({ - message: '代替标准号最多选择20项', - type: 'warning' - }) - } + //去除最多勾选20条限制 + // if (this.selectedListRep.length + textArr.length > 20) { + // return this.$message({ + // message: '代替标准号最多选择20项', + // type: 'warning' + // }) + // } this.selectedListRep.map((item) => { let texts = '' if (item.standYear != null && item.standYear !== '') { diff --git a/src/components/CustomFormComponents/InputForStandards.vue b/src/components/CustomFormComponents/InputForStandards.vue index e8aee574a..551ab711e 100644 --- a/src/components/CustomFormComponents/InputForStandards.vue +++ b/src/components/CustomFormComponents/InputForStandards.vue @@ -351,12 +351,12 @@ export default { type: 'warning' }) } - if (this.selectedListRep.length + textArr.length > 20) { - return this.$message({ - message: `${this.config.attrName}最多选择20项`, - type: 'warning' - }) - } + // if (this.selectedListRep.length + textArr.length > 20) { + // return this.$message({ + // message: `${this.config.attrName}最多选择20项`, + // type: 'warning' + // }) + // } this.selectedListRep.map((item) => { let texts = '' if (item.standYear != null && item.standYear !== '') { diff --git a/src/components/roleTree/index.vue b/src/components/roleTree/index.vue index 6bfcb1889..52e99ada9 100644 --- a/src/components/roleTree/index.vue +++ b/src/components/roleTree/index.vue @@ -82,7 +82,7 @@ @@ -248,6 +248,9 @@ this.visible = false }, saveUserInfo () { + if(this.roleList.length === 0){ + this.roleList.push({id:"",name:""}); + } if (this.checkBox) { this.$emit('checkedRole', this.roleList) this.nodeList2 = [] diff --git a/src/components/treeSelect/treeSelectStand.vue b/src/components/treeSelect/treeSelectStand.vue index 79c384bdf..7e8d9068e 100644 --- a/src/components/treeSelect/treeSelectStand.vue +++ b/src/components/treeSelect/treeSelectStand.vue @@ -13,19 +13,21 @@ placeholder="输入关键字进行过滤" v-model="filterText"> - - +
+ + +