Authored by bevishuang

优化图片review by 杨延青

... ... @@ -7,6 +7,7 @@
:progress="uploadList[0].showProgress"
:percentage="uploadList[0].percentage"
:remove="true"
:disabled="disabled"
@remove-image="handleRemove"
></image-purview>
... ... @@ -20,6 +21,7 @@
:default-file-list="defaultList"
:format="['jpg','jpeg','png']"
:max-size="2048"
:disabled="disabled"
:on-format-error="handleFormatError"
:on-exceeded-size="handleMaxSize"
action="/ufoPlatform/fileupload/uploadEx?debug=XYZ"
... ... @@ -41,6 +43,10 @@ export default {
defaultFile: {
type: String
},
disabled:{
type:Boolean,
default:false
},
bucket: {
type: String,
default() {
... ...
... ... @@ -2,7 +2,7 @@
<div class="image-purview">
<template v-if="status === 'finished' || url">
<img :src="url">
<div class="image-purview-cover">
<div class="image-purview-cover" v-show="!disabled">
<Icon type="ios-eye-outline" size="30" @click.native="purviewImage"></Icon>
<Icon type="ios-trash-outline" v-if="remove" size="30" @click.native="removeImage"></Icon>
</div>
... ... @@ -32,6 +32,10 @@ export default {
type: Boolean,
default: false,
},
disabled:{
type:Boolean,
default:false
},
percentage: {
type: Number,
},
... ...
... ... @@ -35,7 +35,7 @@
<i-form-item>
<i-input
type="textarea"
:disabled="productReadonly"
:disabled="productReadonly || readonly"
placeholder="填写商品编码,多个商品编码用英文逗号分隔"
v-model="formData.productLimitValue"
></i-input>
... ... @@ -49,7 +49,7 @@
</p>
</div>
<i-upload action :format="['xlsx']" :max-size="1024" :before-upload="onBeforeUpload">
<i-button type="success" size="small" :disabled="productReadonly">导入</i-button>
<i-button type="success" size="small" :disabled="productReadonly || readonly">导入</i-button>
<p>{{uploadTxt}}</p>
</i-upload>
</i-poptip>
... ...