能力云图bug

This commit is contained in:
851673013@qq.com 2022-07-19 19:44:48 +08:00
parent 2905416d07
commit 227eb72670
1 changed files with 7 additions and 8 deletions

View File

@ -393,15 +393,14 @@
// //
const NumberOfComponentServices = () => { const NumberOfComponentServices = () => {
assemblerBaseStatic().then((res) => { assemblerBaseStatic().then((res) => {
snum.value[0].num = res.data.data[0].amount
res.data.data.map((item, index) => { res.data.data.map((item, index) => {
if (index != 0) { servicesSnum.value.map((servicesSnumitem, servicesSnumindex) => {
servicesSnum.value.map((servicesSnumitem, servicesSnumindex) => { if (servicesSnumitem.type == item.type) {
if (servicesSnumitem.type == item.type) { servicesSnum.value[servicesSnumindex].amount = item.amount
servicesSnum.value[servicesSnumindex].amount = item.amount } else if (item.type == '上架总数') {
} snum.value[0].num = item.amount
}) }
} })
}) })
}) })
} }