[update] 参数模板
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<span class="title-text-text" :title="$t('Required')">{{$t('Required')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="isMust">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('Required')" v-model='formInline.isMust'>
|
||||
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('Required')" v-model='formInline.isMust'>
|
||||
<a-select-option :key="'1'" :value="'1'">{{$t('yes')}}
|
||||
</a-select-option>
|
||||
<a-select-option :key="'0'" :value="'0'">{{$t('not')}}
|
||||
@@ -228,7 +228,7 @@
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24" >
|
||||
<a-tabs>
|
||||
<a-tab-pane v-for='(item,index) in contentList' :tab="item.textVal" :key="index + 1">
|
||||
<a-tab-pane v-for='(item,index) in contentList' :tab="item.textVal === undefined ? item.text : item.textVal" :key="index + 1">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<div class="box-title-text">
|
||||
@@ -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)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user