Authored by TaoHuang

fix upload

... ... @@ -152,7 +152,7 @@ export default {
}
},
fileSuccess(file) {
file.name = file.response.key;
file.name = file.response.data;
this.$emit('file-change', file);
},
fileRemove(file) {
... ...
... ... @@ -195,13 +195,13 @@ export default {
this.model.certName &&
this.model.certNo &&
this.model.licenseOriginalImage.length === 1 &&
this.model.licenseOriginalImage[0] && this.model.licenseOriginalImage[0].response && this.model.licenseOriginalImage[0].response.key &&
this.model.licenseOriginalImage[0] && this.model.licenseOriginalImage[0].response && this.model.licenseOriginalImage[0].response.data &&
this.model.licenseCopyImage.length === 1 &&
this.model.licenseCopyImage[0] && this.model.licenseCopyImage[0].response && this.model.licenseCopyImage[0].response.key &&
this.model.licenseCopyImage[0] && this.model.licenseCopyImage[0].response && this.model.licenseCopyImage[0].response.data &&
this.model.certFaceImage.length === 1 &&
this.model.certFaceImage[0] && this.model.certFaceImage[0].response && this.model.certFaceImage[0].response.key &&
this.model.certFaceImage[0] && this.model.certFaceImage[0].response && this.model.certFaceImage[0].response.data &&
this.model.certReverseImage.length === 1 &&
this.model.certReverseImage[0] && this.model.certReverseImage[0].response && this.model.certReverseImage[0].response.key &&
this.model.certReverseImage[0] && this.model.certReverseImage[0].response && this.model.certReverseImage[0].response.data &&
(this.model.time.noLimit ? this.model.time.start_time : this.model.time.start_time && this.model.time.expire_time);
},
...mapState(['needLogin'])
... ...
... ... @@ -138,7 +138,7 @@ export default {
isNotEmpty() {
return this.form.forceRecomputeCounter && this.form.brand && this.form.product_name && this.form.product_code &&
this.form.imageList.length >= 1 &&
this.form.imageList[0] && this.form.imageList[0].response && this.form.imageList[0].response.key;
this.form.imageList[0] && this.form.imageList[0].response && this.form.imageList[0].response.data;
},
},
mounted() {
... ...