|
@@ -187,13 +187,20 @@ export default {
|
|
|
}, {
|
|
|
md: 12,
|
|
|
isShow: true,
|
|
|
- name: 'el-image',
|
|
|
- attributes: { src: this.formData.idCardImg },
|
|
|
+ name: 'slot-component',
|
|
|
+ attributes: {},
|
|
|
formItemAttributes: {
|
|
|
label: '身份证',
|
|
|
prop: 'idCardImg',
|
|
|
rules: []
|
|
|
},
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ var { value } = props
|
|
|
+ console.log(this.formData.idCardImg)
|
|
|
+ return (
|
|
|
+ this.formData.idCardImg ? <el-image src={this.formData.idCardImg} style='width: 120px;height:120px' preview-src-list={[this.formData.idCardImg]} fit="cover"></el-image> : ''
|
|
|
+ )
|
|
|
+ }
|
|
|
}, {
|
|
|
md: 12,
|
|
|
isShow: true,
|