修改参数项管理认证类别显示不全问题

This commit is contained in:
zyx.net
2022-06-30 19:10:14 +08:00
parent a13aa6999e
commit 36bbf0c0fa
2 changed files with 26 additions and 6 deletions
@@ -2,7 +2,7 @@
<a-checkbox-group v-if="tagType=='checkbox'" @change="onChange" :value="arrayValue" :disabled="disabled">
<a-checkbox v-for="(item, key) in dictOptions" :key="key" :value="item.value">
<span :title='item.text||item.label'>
{{ (item.text && item.text.length > 6 ? item.text.slice(0, 5) + '...' : item.text) || (item.label && item.label.length > 6 ? item.label.slice(0, 5) + '...' : item.label) }}
{{ (item.text && item.text.length > 6 ? item.text.slice(0, 14) + '...' : item.text) || (item.label && item.label.length > 6 ? item.label.slice(0, 14) + '...' : item.label) }}
</span>
</a-checkbox>
</a-checkbox-group>
@@ -539,11 +539,31 @@ export default {
}
},
Onchange(val) {
console.log(this.formInline)
if(this.formInline.certCategory == '' && this.flag == 1) {
console.log(1111)
this.contentList= []
}
let tabList = []
let arr = []
let newArray = []
this.arr = []
this.contentListStart.forEach((item,index) => {
this.arr.push(item.certCategory)
})
console.log(this.arr)
this.tabList = val.split(',')
console.log(this.tabList)
this.arr.forEach(item => {
if (!this.tabList.includes(item)) {
newArray.push(item);
this.contentList.forEach((item1,index1) => {
if(item == item1.certCategory){
item1.paramsNumber= '', // 编号
item1.paramsName= '', //参数名称
item1.description= '' // 描述
}
})
};
})
},
getSysCategoryTree() {