[参数项列表] 编辑

This commit is contained in:
zhaomeijing
2022-04-28 18:00:44 +08:00
parent beb7521eb0
commit de60f0d8e7
@@ -33,10 +33,9 @@
</div> </div>
<a-form-model-item class="itemModel" prop="state"> <a-form-model-item class="itemModel" prop="state">
<a-select :placeholder="$t('PleaseSelect')+$t('Required')" v-model='formInline.isMust'> <a-select :placeholder="$t('PleaseSelect')+$t('Required')" v-model='formInline.isMust'>
<a-select-option v-for="(item, key) in isRequired" :key="key" :value="item.value"> <a-select-option :key="'1'" :value="'1'">{{$t('yes')}}
<span style="display: inline-block;width: 100%" :title=" item.label "> </a-select-option>
{{ item.label }} <a-select-option :key="'0'" :value="'0'">{{$t('not')}}
</span>
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
@@ -214,7 +213,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="24" > <a-col :span="24" >
<a-tabs> <a-tabs>
<a-tab-pane v-for='(item,index) in certCategoryParamsInfoEOList' :tab="item.textVal" :key="index + 1"> <a-tab-pane v-for='(item,index) in tt' :tab="item.textVal" :key="index + 1">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="12"> <a-col :span="12">
<div class="box-title-text"> <div class="box-title-text">
@@ -225,7 +224,7 @@
<a-form-model-item class="itemModel" prop="paramsTemplateName"> <a-form-model-item class="itemModel" prop="paramsTemplateName">
<a-input class="box-input" <a-input class="box-input"
:disabled="disabled" :disabled="disabled"
v-model="item.textVal" v-model="item.paramsNumber"
:placeholder="$t('PleaseEnter')+$t('standard')"/> :placeholder="$t('PleaseEnter')+$t('standard')"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -343,7 +342,8 @@ export default {
disabled: false, disabled: false,
projectNameList: [], projectNameList: [],
title: '', title: '',
stateOne: '' stateOne: '',
tt : []
} }
}, },
mounted() { mounted() {
@@ -377,17 +377,16 @@ export default {
// }) // })
}, },
Onchangelabel(val) { Onchangelabel(val) {
this.certCategoryParamsInfoEOList = []
console.log(val,'val。。。') // this.formInline.certCategoryParamsInfoEOList = []
val.forEach((item) => { val.forEach((item) => {
let _tt = { this.tt.push({
textVal: item.text, // tab textVal: item.text, // tab
certCategory: '', // 所属认证类别 certCategory: '', // 所属认证类别
paramsNumber: '', // 编号 paramsNumber: '', // 编号
paramsName: '', // 参数名称 paramsName: '', // 参数名称
description: ''// 参数说明 description: ''// 参数说明
} })
this.certCategoryParamsInfoEOList.push(_tt)
}) })
}, },
Onchange() { Onchange() {
@@ -442,11 +441,14 @@ export default {
Action = postAction Action = postAction
} }
let query = JSON.parse(JSON.stringify(this.formInline)) let query = JSON.parse(JSON.stringify(this.formInline))
console.log(query,'queryqueryqueryquery')
Object.keys(query).forEach(res => { Object.keys(query).forEach(res => {
if (query[res] && query[res] instanceof Array) { if (query[res] && query[res] instanceof Array) {
query[res] = query[res].join(',') query[res] = query[res].join(',')
} }
}) })
let querytt = JSON.parse(JSON.stringify(this.tt))
query.certCategoryParamsInfoEOList = querytt
this.confirmLoading = true this.confirmLoading = true
Action(url, query).then((res) => { Action(url, query).then((res) => {
if (res.success) { if (res.success) {