|
@@ -96,7 +96,7 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
imgs: {
|
|
imgs: {
|
|
|
handler(val) {
|
|
handler(val) {
|
|
|
- this.imgArr = ['wxLocalResource://7622966209743152790'];
|
|
|
|
|
|
|
+ this.imgArr = val;
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
|
immediate: true,
|
|
immediate: true,
|
|
@@ -105,20 +105,12 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
url: process.env.VUE_APP_Target1 + process.env.VUE_APP_BASE_API,
|
|
url: process.env.VUE_APP_Target1 + process.env.VUE_APP_BASE_API,
|
|
|
- imgArr: ['wxLocalResource://7622966209743152790'],
|
|
|
|
|
|
|
+ imgArr: [],
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
deleteImg(index) {
|
|
deleteImg(index) {
|
|
|
this.imgArr.splice(index, 1);
|
|
this.imgArr.splice(index, 1);
|
|
|
- // removePhotoBatch({ fileIdList: fileIdList.split(',') }).then((res) => {
|
|
|
|
|
- // if (res.code == 200) {
|
|
|
|
|
- // this.$toast('删除成功!');
|
|
|
|
|
- // this.$emit('upDataDetail');
|
|
|
|
|
- // } else {
|
|
|
|
|
- // this.$toast('删除失败!');
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
},
|
|
},
|
|
|
previewsImg(index) {
|
|
previewsImg(index) {
|
|
|
ImagePreview({
|
|
ImagePreview({
|
|
@@ -127,7 +119,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
newimgarr(localIds) {
|
|
newimgarr(localIds) {
|
|
|
- this.imgArr = localIds;
|
|
|
|
|
|
|
+ this.imgArr = this.imgArr.concat(localIds);
|
|
|
// this.$emit('upDataDetail');
|
|
// this.$emit('upDataDetail');
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|