Browse Source

顺德居字段回显不正常问题

dev-map-local
dai 3 years ago
parent
commit
e82d8b5f50
  1. 25
      src/views/modules/shequ/cpts/people-more.vue
  2. 27
      src/views/modules/visual/basicinfo/cpts/people-more.vue

25
src/views/modules/shequ/cpts/people-more.vue

@ -594,16 +594,23 @@ export default {
} }
}); });
}); });
console.log("1111111111111111111111111", this.groupList);
this.groupList.forEach((subList, index) => { await Promise.all(
subList.itemList.forEach(async (item, subIndex) => { this.groupList.map((subList, index) => {
if (item.optionSourceType == "remote" && item.optionSourceValue) { return Promise.all(
this.groupList[index].itemList[subIndex].options = subList.itemList.map(async (item, subIndex) => {
await this.getOptions(item.optionSourceValue); if (
} item.optionSourceType == "remote" &&
}); item.optionSourceValue
}); ) {
this.groupList[index].itemList[subIndex].options =
await this.getOptions(item.optionSourceValue);
}
})
);
})
);
console.log("44444444", this.groupList);
let arr = [ let arr = [
{ {
groupId: "hs123", groupId: "hs123",

27
src/views/modules/visual/basicinfo/cpts/people-more.vue

@ -536,16 +536,23 @@ export default {
} }
}); });
}); });
console.log("1111111111111111111111111", this.groupList);
await Promise.all(
this.groupList.forEach((subList, index) => { this.groupList.map((subList, index) => {
subList.itemList.forEach(async (item, subIndex) => { return Promise.all(
if (item.optionSourceType == "remote" && item.optionSourceValue) { subList.itemList.map(async (item, subIndex) => {
this.groupList[index].itemList[subIndex].options = if (
await this.getOptions(item.optionSourceValue); item.optionSourceType == "remote" &&
} item.optionSourceValue
}); ) {
}); this.groupList[index].itemList[subIndex].options =
await this.getOptions(item.optionSourceValue);
}
})
);
})
);
console.log("44444444", this.groupList);
let arr = [ let arr = [
{ {

Loading…
Cancel
Save