From edccaa0b516d7198cc1851ccffea230069135d22 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Fri, 10 Jun 2022 11:46:45 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=8F=82=E6=95=B0=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parameterlist/components/addModel.vue | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/jero-web/src/views/parameter/parameterlist/components/addModel.vue b/jero-web/src/views/parameter/parameterlist/components/addModel.vue index 15d63b153..929f8facb 100644 --- a/jero-web/src/views/parameter/parameterlist/components/addModel.vue +++ b/jero-web/src/views/parameter/parameterlist/components/addModel.vue @@ -34,7 +34,7 @@ {{$t('Required')}} - + {{$t('yes')}} {{$t('not')}} @@ -228,7 +228,7 @@ - +
@@ -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) }, } }