Authored by htoooth

fix

... ... @@ -41,6 +41,7 @@
const _ = require('lodash');
export default {
name: 'DragFileUpload',
props: ['id'],
data() {
return {
... ...
import UserInfo from './user-info';
import Editor from './editor';
import FileUpload from './file-upload';
import DragFileUpload from './drag-file-upload.vue';
export default {
UserInfo,
Editor,
FileUpload
FileUpload,
DragFileUpload
};
... ...
... ... @@ -41,11 +41,11 @@
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 1}"
@on-success="uploadSuccess"
@on-remove="uploadRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -58,11 +58,11 @@
<Col span="4">
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 2}"
@on-success="uploadSuccess"
@on-remove="uploadRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -75,11 +75,11 @@
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 3}"
@on-success="uploadSuccess"
@on-remove="uploadRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -92,11 +92,11 @@
<Col span="4">
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 4}"
@on-success="uploadSuccess"
@on-remove="uploadRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -212,7 +212,7 @@
<script>
import ProductUpload from './create-upload';
import ProductUpload from '../../../../components/global/common/drag-file-upload';
import api from '../api';
import service from '../service';
... ... @@ -343,9 +343,6 @@ export default {
this.product.goods[colorIndex].goodsImage[imageIndex].imageUrl = '';
}
},
components: {
'product-upload': ProductUpload
}
};
</script>
... ...
... ... @@ -205,11 +205,11 @@
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 1}"
@on-success="uploadImageSuccess"
@on-remove="uploadImageRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -222,11 +222,11 @@
<Col span="4">
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 2}"
@on-success="uploadImageSuccess"
@on-remove="uploadImageRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -239,11 +239,11 @@
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 3}"
@on-success="uploadImageSuccess"
@on-remove="uploadImageRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -256,11 +256,11 @@
<Col span="4">
<div class="upload-item">
<div class="upload-item-img">
<product-upload
<drag-file-upload
:id="{goodIndex, imageIndex: 4}"
@on-success="uploadImageSuccess"
@on-remove="uploadImageRemove">
</product-upload>
</drag-file-upload>
</div>
<div class="upload-item-title">
... ... @@ -334,7 +334,6 @@
</template>
<script>
import ProductUpload from './create-upload';
import ShopMaterial from './views/material';
import MuliSelect from './views/muli-select';
import Age from './views/age';
... ... @@ -992,7 +991,6 @@ export default {
computed: {
},
components: {
'product-upload': ProductUpload,
'shop-material': ShopMaterial,
'multi-select': MuliSelect,
'product-age': Age,
... ...