[add] 参数模板列表
This commit is contained in:
@@ -210,55 +210,55 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</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">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('controlType')">{{$t('controlType')}}</span>
|
:title="$t('controlType')">{{$t('controlType')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<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>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text" :title="$t('controlVerification')">{{$t('controlVerification')}}</span>
|
<span class="title-text-text" :title="$t('controlVerification')">{{$t('controlVerification')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<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>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="title-text-text"
|
<span class="title-text-text"
|
||||||
:title="$t('controlType')">{{$t('controlType')}}</span>
|
:title="$t('controlType')">{{$t('controlType')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<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>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -346,13 +346,26 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
Onchangelabel(val) {
|
Onchangelabel(val) {
|
||||||
|
this.tabCertificationCategory = []
|
||||||
console.log(val,'val。。。')
|
console.log(val,'val。。。')
|
||||||
if(val.length > 0) {
|
val.forEach((item) => {
|
||||||
this.tabCertificationCategory = val
|
let valItem = {
|
||||||
} else {
|
valitemOne: item.text,
|
||||||
this.tabCertificationCategory = []
|
valitemTwo: item.value,
|
||||||
console.log(this.tabCertificationCategory,'this.tabCertificationCategorythis.tabCertificationCategory')
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user