[update] binaji

This commit is contained in:
zhaomeijing
2022-05-27 13:49:14 +08:00
parent 328a3ffb28
commit 507d329b02
@@ -394,7 +394,8 @@ export default {
projectNameList: [],
title: '',
stateOne: '',
contentList : []
contentList : [],
contentListed: [] // 编辑 contentList 所带出来的数据
}
},
mounted() {
@@ -425,17 +426,36 @@ export default {
})
},
Onchangelabel(val) {
let _tt = []
val.forEach((item) => {
_tt.push({
textVal: item.text, // tab
certCategory: item.value, // 所属认证类别
paramsNumber: '', // 编号
paramsName: '', // 参数名称
description: ''// 参数说明
console.log(val,'lllll')
// 新增
if(this.title = '新增') {
console.log('xinzneg')
let _tt = []
val.forEach((item) => {
_tt.push({
textVal: item.text, // tab
certCategory: item.value, // 所属认证类别
paramsNumber: '', // 编号
paramsName: '', // 参数名称
description: ''// 参数说明
})
})
})
this.contentList = _tt
this.contentList = _tt
} else {
// 编辑
// console.log(this.contentListed,'this.contentListed')
// let _tt = []
// this.contentListed.forEach((item) => {
// _tt.push({
// textVal: item.textVal, // tab
// certCategory: item.value, // 所属认证类别
// paramsNumber: item.paramsNumber, // 编号
// paramsName: item.paramsName, // 参数名称
// description: item.description// 参数说明
// })
// })
// this.contentList = _tt
}
},
Onchange() {
@@ -466,21 +486,18 @@ export default {
this.title = '新增'
this.formInline = {}
this.formInline.isMust = '0'
this.contentListed = [] // 防止编辑数据带出
},
editModel(value) {
let _contentList = []
this.contentListed = []
this.visible = true
this.formInline = value
this.title = '编辑'
this.$nextTick(() => {
this.formInline = value
this.$nextTick(() => {
value.certCategoryParamsInfoEOList.map((item, index) => {
item.textVal = item.certCategory_dictText
_contentList.push(item)
})
this.contentList = _contentList
value.certCategoryParamsInfoEOList.map((item, index) => {
item.textVal = item.certCategory_dictText
this.contentListed.push(item)
})
})
this.contentList = this.contentListed
},
handleCancel() {
this.visible = false