|
|
@@ -3949,7 +3949,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (child) {
|
|
|
+ if (child && this.childIndex != undefined) {
|
|
|
for (
|
|
|
let childi = 0;
|
|
|
childi < this.collectionItemList[this.indeximg].collectionOptionList.length;
|
|
|
@@ -3957,44 +3957,26 @@ export default {
|
|
|
) {
|
|
|
console.log('this.childIndex=' + this.childIndex);
|
|
|
// console.log('测试111=' + JSON.stringify(this.collectionItemList));
|
|
|
- if (this.childIndex != undefined) {
|
|
|
- if (
|
|
|
- this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
- this.childIndex
|
|
|
- ].fileInfoList == null ||
|
|
|
- this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
- this.childIndex
|
|
|
- ].fileInfoList == undefined
|
|
|
- ) {
|
|
|
- this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
- this.childIndex
|
|
|
- ].fileInfoList = [];
|
|
|
- }
|
|
|
- if (photoIdentifyType == 1) {
|
|
|
- this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
- this.childIndex
|
|
|
- ].fileInfoList = [val];
|
|
|
- } else {
|
|
|
- this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
- this.childIndex
|
|
|
- ].fileInfoList.push(val);
|
|
|
- }
|
|
|
+ if (
|
|
|
+ this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
+ this.childIndex
|
|
|
+ ].fileInfoList == null ||
|
|
|
+ this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
+ this.childIndex
|
|
|
+ ].fileInfoList == undefined
|
|
|
+ ) {
|
|
|
+ this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
+ this.childIndex
|
|
|
+ ].fileInfoList = [];
|
|
|
+ }
|
|
|
+ if (photoIdentifyType == 1) {
|
|
|
+ this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
+ this.childIndex
|
|
|
+ ].fileInfoList = [val];
|
|
|
} else {
|
|
|
- if (
|
|
|
- this.collectionItemList[this.indeximg].fileInfoList == null ||
|
|
|
- this.collectionItemList[this.indeximg].fileInfoList == undefined
|
|
|
- ) {
|
|
|
- this.collectionItemList[this.indeximg].fileInfoList = [];
|
|
|
- }
|
|
|
- if (photoIdentifyType == 1) {
|
|
|
- this.collectionItemList[this.indeximg].fileInfoList = [val];
|
|
|
- console.log(
|
|
|
- 'fileInfoList222=' +
|
|
|
- JSON.stringify(this.collectionItemList[this.indeximg].fileInfoList)
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.collectionItemList[this.indeximg].fileInfoList.push(val);
|
|
|
- }
|
|
|
+ this.collectionItemList[this.indeximg].collectionOptionList[childi].collectionItems[
|
|
|
+ this.childIndex
|
|
|
+ ].fileInfoList.push(val);
|
|
|
}
|
|
|
}
|
|
|
} else {
|