修改参数项管理认证类别显示不全问题
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user