[参数项列表] 编辑

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