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