Showing
3 changed files
with
13 additions
and
3 deletions
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | :progress="uploadList[0].showProgress" | 7 | :progress="uploadList[0].showProgress" |
8 | :percentage="uploadList[0].percentage" | 8 | :percentage="uploadList[0].percentage" |
9 | :remove="true" | 9 | :remove="true" |
10 | + :disabled="disabled" | ||
10 | @remove-image="handleRemove" | 11 | @remove-image="handleRemove" |
11 | ></image-purview> | 12 | ></image-purview> |
12 | 13 | ||
@@ -20,6 +21,7 @@ | @@ -20,6 +21,7 @@ | ||
20 | :default-file-list="defaultList" | 21 | :default-file-list="defaultList" |
21 | :format="['jpg','jpeg','png']" | 22 | :format="['jpg','jpeg','png']" |
22 | :max-size="2048" | 23 | :max-size="2048" |
24 | + :disabled="disabled" | ||
23 | :on-format-error="handleFormatError" | 25 | :on-format-error="handleFormatError" |
24 | :on-exceeded-size="handleMaxSize" | 26 | :on-exceeded-size="handleMaxSize" |
25 | action="/ufoPlatform/fileupload/uploadEx?debug=XYZ" | 27 | action="/ufoPlatform/fileupload/uploadEx?debug=XYZ" |
@@ -41,6 +43,10 @@ export default { | @@ -41,6 +43,10 @@ export default { | ||
41 | defaultFile: { | 43 | defaultFile: { |
42 | type: String | 44 | type: String |
43 | }, | 45 | }, |
46 | + disabled:{ | ||
47 | + type:Boolean, | ||
48 | + default:false | ||
49 | + }, | ||
44 | bucket: { | 50 | bucket: { |
45 | type: String, | 51 | type: String, |
46 | default() { | 52 | default() { |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="image-purview"> | 2 | <div class="image-purview"> |
3 | <template v-if="status === 'finished' || url"> | 3 | <template v-if="status === 'finished' || url"> |
4 | <img :src="url"> | 4 | <img :src="url"> |
5 | - <div class="image-purview-cover"> | 5 | + <div class="image-purview-cover" v-show="!disabled"> |
6 | <Icon type="ios-eye-outline" size="30" @click.native="purviewImage"></Icon> | 6 | <Icon type="ios-eye-outline" size="30" @click.native="purviewImage"></Icon> |
7 | <Icon type="ios-trash-outline" v-if="remove" size="30" @click.native="removeImage"></Icon> | 7 | <Icon type="ios-trash-outline" v-if="remove" size="30" @click.native="removeImage"></Icon> |
8 | </div> | 8 | </div> |
@@ -32,6 +32,10 @@ export default { | @@ -32,6 +32,10 @@ export default { | ||
32 | type: Boolean, | 32 | type: Boolean, |
33 | default: false, | 33 | default: false, |
34 | }, | 34 | }, |
35 | + disabled:{ | ||
36 | + type:Boolean, | ||
37 | + default:false | ||
38 | + }, | ||
35 | percentage: { | 39 | percentage: { |
36 | type: Number, | 40 | type: Number, |
37 | }, | 41 | }, |
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | <i-form-item> | 35 | <i-form-item> |
36 | <i-input | 36 | <i-input |
37 | type="textarea" | 37 | type="textarea" |
38 | - :disabled="productReadonly" | 38 | + :disabled="productReadonly || readonly" |
39 | placeholder="填写商品编码,多个商品编码用英文逗号分隔" | 39 | placeholder="填写商品编码,多个商品编码用英文逗号分隔" |
40 | v-model="formData.productLimitValue" | 40 | v-model="formData.productLimitValue" |
41 | ></i-input> | 41 | ></i-input> |
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | </p> | 49 | </p> |
50 | </div> | 50 | </div> |
51 | <i-upload action :format="['xlsx']" :max-size="1024" :before-upload="onBeforeUpload"> | 51 | <i-upload action :format="['xlsx']" :max-size="1024" :before-upload="onBeforeUpload"> |
52 | - <i-button type="success" size="small" :disabled="productReadonly">导入</i-button> | 52 | + <i-button type="success" size="small" :disabled="productReadonly || readonly">导入</i-button> |
53 | <p>{{uploadTxt}}</p> | 53 | <p>{{uploadTxt}}</p> |
54 | </i-upload> | 54 | </i-upload> |
55 | </i-poptip> | 55 | </i-poptip> |
-
Please register or login to post a comment