[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
@@ -211,8 +211,8 @@
</a-row> </a-row>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="24" > <a-col :span="24" >
<a-tabs default-active-key="1"> <a-tabs>
<a-tab-pane v-for='(item,index) in tabCertificationCategory' :key='index' key="1" :tab="item.text"> <a-tab-pane v-for='(item,index) in tabCertificationCategory' :tab="item.valitemOne" :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">
@@ -223,7 +223,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="formInline.paramsTemplateName" v-model="item.valitemOne"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/> :placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -236,7 +236,7 @@
<a-form-model-item class="itemModel" prop="technologyTerritory"> <a-form-model-item class="itemModel" prop="technologyTerritory">
<a-input class="box-input" <a-input class="box-input"
:disabled="disabled" :disabled="disabled"
v-model="formInline.paramsTemplateName" v-model="item.valitemTwo"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/> :placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -252,7 +252,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="formInline.paramsTemplateName" v-model="item.valitemthree"
:placeholder="$t('PleaseEnter')+$t('NiONumber')"/> :placeholder="$t('PleaseEnter')+$t('NiONumber')"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -346,13 +346,26 @@ export default {
}, },
methods: { methods: {
Onchangelabel(val) { Onchangelabel(val) {
console.log(val,'val。。。')
if(val.length > 0) {
this.tabCertificationCategory = val
} else {
this.tabCertificationCategory = [] this.tabCertificationCategory = []
console.log(this.tabCertificationCategory,'this.tabCertificationCategorythis.tabCertificationCategory') console.log(val,'val。。。')
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() { Onchange() {
@@ -109,11 +109,11 @@ export default {
dataSource: [], dataSource: [],
confirmLoading: false, confirmLoading: false,
url: { url: {
list: 'params/template/page', list: 'params/paramsInfo/page',
add: 'params/template/add', add: 'params/paramsInfo/add',
edit: 'params/template/edit', edit: 'params/paramsInfo/edit',
deleteBatch: 'params/template/delete', deleteBatch: 'params/paramsInfo/delete',
deleteAll: 'params/template/deleteBatch' deleteAll: 'params/paramsInfo/deleteBatch'
}, },
total: 0, total: 0,
pageSize: 10, pageSize: 10,