[add] 参数模板列表

This commit is contained in:
zhaomeijing
2022-04-27 17:29:11 +08:00
parent 8206541894
commit 0444a944fa
2 changed files with 69 additions and 56 deletions
@@ -210,55 +210,55 @@
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="24">
<a-tabs default-active-key="1">
<a-tab-pane v-for='(item,index) in tabCertificationCategory' :key='index' key="1" :tab="item.text">
<a-row :gutter="24">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<a-col :span="24" >
<a-tabs>
<a-tab-pane v-for='(item,index) in tabCertificationCategory' :tab="item.valitemOne" :key="index + 1">
<a-row :gutter="24">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('controlType')">{{$t('controlType')}}</span>
</div>
<a-form-model-item class="itemModel" prop="paramsTemplateName">
<a-input class="box-input"
:disabled="disabled"
v-model="formInline.paramsTemplateName"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('controlVerification')">{{$t('controlVerification')}}</span>
</div>
<a-form-model-item class="itemModel" prop="technologyTerritory">
<a-input class="box-input"
:disabled="disabled"
v-model="formInline.paramsTemplateName"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
</div>
<a-form-model-item class="itemModel" prop="paramsTemplateName">
<a-input class="box-input"
:disabled="disabled"
v-model="item.valitemOne"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('controlVerification')">{{$t('controlVerification')}}</span>
</div>
<a-form-model-item class="itemModel" prop="technologyTerritory">
<a-input class="box-input"
:disabled="disabled"
v-model="item.valitemTwo"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text"
:title="$t('controlType')">{{$t('controlType')}}</span>
</div>
<a-form-model-item class="itemModel" prop="paramsTemplateName">
<a-input class="box-input"
:disabled="disabled"
v-model="formInline.paramsTemplateName"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-tab-pane>
</div>
<a-form-model-item class="itemModel" prop="paramsTemplateName">
<a-input class="box-input"
:disabled="disabled"
v-model="item.valitemthree"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-tab-pane>
</a-tabs>
</a-col>
</a-row>
@@ -346,13 +346,26 @@ export default {
},
methods: {
Onchangelabel(val) {
this.tabCertificationCategory = []
console.log(val,'val。。。')
if(val.length > 0) {
this.tabCertificationCategory = val
} else {
this.tabCertificationCategory = []
console.log(this.tabCertificationCategory,'this.tabCertificationCategorythis.tabCertificationCategory')
}
val.forEach((item) => {
let valItem = {
valitemOne: item.text,
valitemTwo: item.value,
valitemthree: '',
}
this.tabCertificationCategory.push(valItem)
})
console.log(this.tabCertificationCategory,'this.tabCertificationCategory')
// if(val.length > 0) {
//
// }
// if(val.length > 0) {
// this.tabCertificationCategory = []
// } else {
// this.tabCertificationCategory = []
// console.log(this.tabCertificationCategory,'this.tabCertificationCategorythis.tabCertificationCategory')
// }
},
Onchange() {
@@ -109,11 +109,11 @@ export default {
dataSource: [],
confirmLoading: false,
url: {
list: 'params/template/page',
add: 'params/template/add',
edit: 'params/template/edit',
deleteBatch: 'params/template/delete',
deleteAll: 'params/template/deleteBatch'
list: 'params/paramsInfo/page',
add: 'params/paramsInfo/add',
edit: 'params/paramsInfo/edit',
deleteBatch: 'params/paramsInfo/delete',
deleteAll: 'params/paramsInfo/deleteBatch'
},
total: 0,
pageSize: 10,