[update] 禅道bug
This commit is contained in:
@@ -414,13 +414,14 @@ export default {
|
||||
let tt = []
|
||||
res.result.forEach((item) => {
|
||||
let obj = {
|
||||
isdisable: false,
|
||||
certCategory: item.value
|
||||
certCategory: item.value,
|
||||
paramsNumber: item.paramsNumber, // 编号
|
||||
paramsName: item.paramsName, //参数名称
|
||||
description: item.description, // 描述
|
||||
}
|
||||
tt.push(Object.assign(obj,item))
|
||||
})
|
||||
this.contentListStart = tt
|
||||
// this.contentList = tt
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -448,14 +449,38 @@ export default {
|
||||
},
|
||||
Onchangelabel(val) {
|
||||
let _tt = []
|
||||
this.contentListStart.forEach((itemVal) => {
|
||||
val.forEach((item) => {
|
||||
if(itemVal.value === item.value) {
|
||||
_tt.push(itemVal)
|
||||
}
|
||||
if(this.title == '新增') {
|
||||
this.contentListStart.forEach((itemVal) => {
|
||||
val.forEach((item) => {
|
||||
if(itemVal.value === item.value) {
|
||||
_tt.push(itemVal)
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
this.contentList = _tt
|
||||
this.contentList = _tt
|
||||
} else {
|
||||
let _mm = []
|
||||
this.contentListStart.forEach((itemVal) => {
|
||||
val.forEach((item) => {
|
||||
if(itemVal.value === item.value) {
|
||||
_mm.push(itemVal)
|
||||
}
|
||||
})
|
||||
})
|
||||
_mm.forEach((item) => {
|
||||
this.contentListed.forEach((itemVal) => {
|
||||
// 原编辑的数据
|
||||
if(itemVal.certCategory === item.value) {
|
||||
item.textVal= itemVal.textVal,
|
||||
item.certCategory= itemVal.certCategory,
|
||||
item.paramsNumber= itemVal.paramsNumber, // 编号
|
||||
item.paramsName= itemVal.paramsName, //参数名称
|
||||
item.description= itemVal.description // 描述
|
||||
}
|
||||
})
|
||||
})
|
||||
this.contentList = _mm
|
||||
}
|
||||
},
|
||||
Onchange(val) {
|
||||
if(this.formInline.certCategory == '') {
|
||||
@@ -500,12 +525,13 @@ export default {
|
||||
this.visible = true
|
||||
this.formInline = value
|
||||
this.title = '编辑'
|
||||
// 获取认证类别
|
||||
this.getcontentListedEdit()
|
||||
value.certCategoryParamsInfoEOList.map((item, index) => {
|
||||
item.textVal = item.certCategory_dictText
|
||||
this.contentListed.push(item)
|
||||
})
|
||||
this.contentList = this.contentListed
|
||||
console.log(this.contentList,'lllll')
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
|
||||
Reference in New Issue
Block a user