|
@@ -85,17 +85,17 @@ export default {
|
|
|
return [
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
- attributes: { disabled: this.disabled },
|
|
|
+ attributes: { disabled: this.type == 2 },
|
|
|
formItemAttributes: { label: '保单编号', prop: 'policyNumber', rules: [...required] }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-date-picker',
|
|
|
- attributes: { disabled: this.disabled, type: 'date', style: { width: '100%' } },
|
|
|
+ attributes: { disabled: this.type == 2, type: 'date', style: { width: '100%' } },
|
|
|
formItemAttributes: { label: '生效时间', prop: 'startTime', rules: [...required] }
|
|
|
},
|
|
|
{
|
|
|
name: 'el-date-picker',
|
|
|
- attributes: { disabled: this.disabled, type: 'date', style: { width: '100%' } },
|
|
|
+ attributes: { disabled: this.type == 2, type: 'date', style: { width: '100%' } },
|
|
|
formItemAttributes: { label: '失效时间', prop: 'endTime', rules: [...required] }
|
|
|
},
|
|
|
{
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
render: (h, { props, onInput }) => {
|
|
|
return (
|
|
|
<div>
|
|
|
- <ImageUpload fileList={this.formData.fileUrl} limit={1} fileType={['image']} />
|
|
|
+ <ImageUpload fileList={this.formData.fileUrl} limit={1} fileType={['image']} isEdit={this.type == 1} />
|
|
|
<h4 style="color:#ffa700">上传图片</h4>
|
|
|
</div>
|
|
|
)
|