|
|
|
@ -296,7 +296,7 @@ |
|
|
|
<el-form-item v-show="!isGold" label="产品数量" required> |
|
|
|
<div style="padding-right: 50px; display: flex;"> |
|
|
|
<el-input style="padding-right: 10px;" v-model="addFormData.goodNum" placeholder="请输入产品数量" /> |
|
|
|
<span style="color: #999999;">个</span> |
|
|
|
<span style="color: #999999;">年</span> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<div v-show="isGold" style="margin-bottom: 15px; display: flex;"> |
|
|
|
@ -984,8 +984,8 @@ const beforeUpload = (rawFile) => { |
|
|
|
if (rawFile.type !== 'image/jpeg' && rawFile.type !== 'image/png') { |
|
|
|
ElMessage.error('图片必须是jpg或png类型!') |
|
|
|
return false |
|
|
|
} else if (rawFile.size / 1024 / 1024 > 1) { |
|
|
|
ElMessage.error('图片大小不能超过 1MB!') |
|
|
|
} else if (rawFile.size / 1024 / 1024 > 2) { |
|
|
|
ElMessage.error('图片大小不能超过 2MB!') |
|
|
|
return false |
|
|
|
} |
|
|
|
return true |
|
|
|
|