@@ -400,6 +400,7 @@ export default {
SelectChangelabel: false, // 控件校验
inputChangelabel: false, // 控件备选值校验
buttonChangelabel: false, // 模板校验
+ contentListedEdit: [], // 认证类别编辑
}
},
mounted() {
@@ -444,23 +445,21 @@ export default {
})
this.contentList = _tt
} else {
- // 编辑 todo
- console.log(val,'pppp')
- // console.log(this.contentListed,'this.contentListed')
- // val.forEach((item) => {
- // this.contentListed.push({
- // textVal: item.text, // tab
- // certCategory: item.value, // 所属认证类别
- // paramsNumber: '', // 编号
- // paramsName: '', // 参数名称
- // description: ''// 参数说明
- // })
- // })
- // this.contentList = this.contentListed
- // this.contentList = val
+ console.log(this.contentListedEdit,'编辑')
+ console.log(this.contentListed,'联动数据')
+ val.forEach((item) => {
+ this.contentListed.push({
+ textVal: '', // tab
+ certCategory: item.value, // 所属认证类别
+ paramsNumber: '', // 编号
+ paramsName: '', // 参数名称
+ description: ''// 参数说明
+ })
+ })
+ this.contentList = val
}
},
- Onchange() {
+ Onchange(val) {
if(this.formInline.certCategory == '') {
this.contentList = []
}
@@ -495,16 +494,14 @@ export default {
this.contentList = []
},
editModel(value) {
- console.log(value,'oooo')
this.contentListed = []
this.visible = true
this.formInline = value
- console.log(this.formInline.controlType,'this.formInline.controlType')
this.title = '编辑'
+ this.contentListedEdit = value.certCategoryParamsInfoEOList
value.certCategoryParamsInfoEOList.map((item, index) => {
item.textVal = item.certCategory_dictText
this.contentListed.push(item)
- console.log(this.contentListed,'this.contentListedthis.contentListed')
})
this.contentList = this.contentListed
},
@@ -598,7 +595,6 @@ export default {
this.formInline = { ...this.formInline }
},
projectNameChange(value){
- console.log(value)
},
}
}