注释选择标题时隐藏认证类别

This commit is contained in:
zyx.net
2022-08-25 14:21:55 +08:00
parent a16d239925
commit e8023f07c7
@@ -134,7 +134,8 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<a-row :gutter="24" v-if='required'> <!-- v-if='required'-->
<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">
@@ -248,8 +249,9 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
<!-- v-if='required'-->
<a-row :gutter="24" > <a-row :gutter="24" >
<a-col :span="24" v-if='required'> <a-col :span="24" >
<a-tabs> <a-tabs>
<a-tab-pane v-for='(item,index) in contentList' :tab="item.cut == 'cn' ? item.text : item.textEn" :key="index + 1"> <a-tab-pane v-for='(item,index) in contentList' :tab="item.cut == 'cn' ? item.text : item.textEn" :key="index + 1">
<a-row :gutter="24"> <a-row :gutter="24">
@@ -470,11 +472,11 @@ export default {
}, },
controlTypeChange(value){ controlTypeChange(value){
this.$refs.ruleForm.clearValidate(['controlVerify','titleDefaultValue','controlValues']) this.$refs.ruleForm.clearValidate(['controlVerify','titleDefaultValue','controlValues'])
if(value == 11){ // if(value == 11){
this.required = false // this.required = false
}else { // }else {
this.required = true // this.required = true
} // }
}, },
uploadSuccess(data) { uploadSuccess(data) {
let attIdList = [] let attIdList = []
@@ -645,11 +647,11 @@ export default {
// value.technologyTerritory = value.technologyTerritory.split(',') // value.technologyTerritory = value.technologyTerritory.split(',')
// } // }
this.formInline = value this.formInline = value
if(this.formInline.controlType == 11){ // if(this.formInline.controlType == 11){
this.required = false // this.required = false
}else{ // }else{
this.required = true // this.required = true
} // }
this.title = this.$t('edit') this.title = this.$t('edit')
this.flag = 0 this.flag = 0
// 获取认证类别 // 获取认证类别