[update] 参数模板
This commit is contained in:
@@ -445,18 +445,20 @@ export default {
|
||||
})
|
||||
this.contentList = _tt
|
||||
} else {
|
||||
console.log(this.contentListedEdit,'编辑')
|
||||
console.log(this.contentListed,'联动数据')
|
||||
val.forEach((item) => {
|
||||
this.contentListed.push({
|
||||
textVal: '', // tab
|
||||
certCategory: item.value, // 所属认证类别
|
||||
paramsNumber: '', // 编号
|
||||
paramsName: '', // 参数名称
|
||||
description: ''// 参数说明
|
||||
let _val = []
|
||||
val.map((itemVal) => {
|
||||
this.contentListedEdit.forEach((item) => {
|
||||
if(item.certCategory == itemVal.value) {
|
||||
itemVal.textVal = item.textVal
|
||||
itemVal.certCategory = item.value
|
||||
itemVal.paramsNumber = item.nioNumber
|
||||
itemVal.paramsName = item.paramsName
|
||||
itemVal.description = item.description
|
||||
}
|
||||
})
|
||||
_val.push(itemVal)
|
||||
})
|
||||
this.contentList = val
|
||||
this.contentList = _val
|
||||
}
|
||||
},
|
||||
Onchange(val) {
|
||||
@@ -498,12 +500,12 @@ export default {
|
||||
this.visible = true
|
||||
this.formInline = value
|
||||
this.title = '编辑'
|
||||
this.contentListedEdit = value.certCategoryParamsInfoEOList
|
||||
value.certCategoryParamsInfoEOList.map((item, index) => {
|
||||
item.textVal = item.certCategory_dictText
|
||||
this.contentListed.push(item)
|
||||
})
|
||||
this.contentList = this.contentListed
|
||||
this.contentListedEdit = this.contentListed
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
|
||||
Reference in New Issue
Block a user