[update] binaji
This commit is contained in:
@@ -394,7 +394,8 @@ export default {
|
|||||||
projectNameList: [],
|
projectNameList: [],
|
||||||
title: '',
|
title: '',
|
||||||
stateOne: '',
|
stateOne: '',
|
||||||
contentList : []
|
contentList : [],
|
||||||
|
contentListed: [] // 编辑 contentList 所带出来的数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -425,17 +426,36 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
Onchangelabel(val) {
|
Onchangelabel(val) {
|
||||||
let _tt = []
|
console.log(val,'lllll')
|
||||||
val.forEach((item) => {
|
// 新增
|
||||||
_tt.push({
|
if(this.title = '新增') {
|
||||||
textVal: item.text, // tab
|
console.log('xinzneg')
|
||||||
certCategory: item.value, // 所属认证类别
|
let _tt = []
|
||||||
paramsNumber: '', // 编号
|
val.forEach((item) => {
|
||||||
paramsName: '', // 参数名称
|
_tt.push({
|
||||||
description: ''// 参数说明
|
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() {
|
Onchange() {
|
||||||
|
|
||||||
@@ -466,21 +486,18 @@ export default {
|
|||||||
this.title = '新增'
|
this.title = '新增'
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.formInline.isMust = '0'
|
this.formInline.isMust = '0'
|
||||||
|
this.contentListed = [] // 防止编辑数据带出
|
||||||
},
|
},
|
||||||
editModel(value) {
|
editModel(value) {
|
||||||
let _contentList = []
|
this.contentListed = []
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.formInline = value
|
||||||
this.title = '编辑'
|
this.title = '编辑'
|
||||||
this.$nextTick(() => {
|
value.certCategoryParamsInfoEOList.map((item, index) => {
|
||||||
this.formInline = value
|
item.textVal = item.certCategory_dictText
|
||||||
this.$nextTick(() => {
|
this.contentListed.push(item)
|
||||||
value.certCategoryParamsInfoEOList.map((item, index) => {
|
|
||||||
item.textVal = item.certCategory_dictText
|
|
||||||
_contentList.push(item)
|
|
||||||
})
|
|
||||||
this.contentList = _contentList
|
|
||||||
})
|
})
|
||||||
})
|
this.contentList = this.contentListed
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
Reference in New Issue
Block a user