|
@@ -43,10 +43,10 @@ export default {
|
|
|
name: 'deleteUploadImgTaskPhoto',
|
|
name: 'deleteUploadImgTaskPhoto',
|
|
|
components: { uploadVNormalTaskPhoto },
|
|
components: { uploadVNormalTaskPhoto },
|
|
|
props: {
|
|
props: {
|
|
|
- imgs: {
|
|
|
|
|
- type: Array,
|
|
|
|
|
|
|
+ formData: {
|
|
|
|
|
+ type: Object,
|
|
|
default() {
|
|
default() {
|
|
|
- return [];
|
|
|
|
|
|
|
+ return {};
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
photoIdentifyType: {
|
|
photoIdentifyType: {
|
|
@@ -94,9 +94,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
- imgs: {
|
|
|
|
|
|
|
+ formData: {
|
|
|
handler(val) {
|
|
handler(val) {
|
|
|
- if (val) this.imgArr = val;
|
|
|
|
|
|
|
+ this.imgArr = [];
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ this.imgArr = val.collectionItemList.fileInfoList || val.mediaInfos;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
|
immediate: true,
|
|
immediate: true,
|
|
@@ -115,7 +118,7 @@ export default {
|
|
|
this.imgArr.splice(index, 1);
|
|
this.imgArr.splice(index, 1);
|
|
|
},
|
|
},
|
|
|
previewsImg(index) {
|
|
previewsImg(index) {
|
|
|
- let urls = this.imgArr.map((item) => item.serverId);
|
|
|
|
|
|
|
+ let urls = this.imgArr.map((item) => item.fileUrl);
|
|
|
ImagePreview({
|
|
ImagePreview({
|
|
|
images: urls,
|
|
images: urls,
|
|
|
startPosition: index,
|
|
startPosition: index,
|
|
@@ -124,6 +127,7 @@ export default {
|
|
|
newimgarr(data) {
|
|
newimgarr(data) {
|
|
|
const { localIds, locationRemark, source } = data;
|
|
const { localIds, locationRemark, source } = data;
|
|
|
this.locationRemark = locationRemark;
|
|
this.locationRemark = locationRemark;
|
|
|
|
|
+ console.log(source);
|
|
|
if (source == 'weixin') {
|
|
if (source == 'weixin') {
|
|
|
this.syncUpload(localIds);
|
|
this.syncUpload(localIds);
|
|
|
} else {
|
|
} else {
|