【bug】证书编辑

This commit is contained in:
fengachen
2022-08-02 17:41:00 +08:00
parent 83ba8fc801
commit f44345c2d3
@@ -32,6 +32,7 @@
<a-input
:maxLength="50"
placeholder="请输入证书代码"
@blur="changeCode($event)"
v-decorator="['code',validatorRules.clientCode]"
></a-input>
</a-form-item>
@@ -69,7 +70,7 @@
</a-form-item>
</a-col>
<!-- 输入证书代码显示上传 并为必填 -->
<a-col :span="12" v-if="freeCertificate.code">
<a-col :span="12" v-if="vinInfoVisible">
<a-form-item label="证书文件" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-image-upload
isLessThan5M
@@ -81,7 +82,7 @@
</a-form-item>
</a-col>
</a-row>
<a-row v-if="freeCertificate.code">
<a-row v-if="vinInfoVisible">
<a-col :span="12">
<a-form-item label="生效日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-date
@@ -424,6 +425,7 @@ export default {
visible: false,
title: '',
pageType: 6,
vinInfoVisible:false, // 证书其他信息是否显示
form: this.$form.createForm(this),
labelCol: {
xs: { span: 24 },
@@ -607,6 +609,10 @@ export default {
}
},
methods: {
changeCode(e){
const val = e.target.value
this.vinInfoVisible = !!val
},
add() {
// 数据准备
this.currentMemberInfo = {}
@@ -796,6 +802,7 @@ export default {
},
handleCancel() {
this.visible = false
this.vinInfoVisible = false
}
},
computed: {