This commit is contained in:
gongjiale 2022-10-13 21:50:58 +08:00
parent d06bf23062
commit 9df921cbe3
2 changed files with 29 additions and 24 deletions

View File

@ -201,31 +201,32 @@
let dataLists = ref([])
const myApplyAmount = () => {
applyAmount().then((res) => {
dataLists.value = res.data.data
dataLists.value = []
res.data.data.map((item) => {
switch (item.type) {
case '应用资源':
dataLists.value[0] = item
break
case '业务组件':
dataLists.value[3] = item
break
case '图层服务':
dataLists.value[1] = item
break
case '开发组件':
dataLists.value[2] = item
break
case '智能算法':
dataLists.value[4] = item
break
case '会客厅':
dataLists.value[5] = item
break
default:
dataLists.value.push(item)
break
}
// switch (item.type) {
// case '':
// dataLists.value[0] = item
// break
// case '':
// dataLists.value[1] = item
// break
// case '':
// dataLists.value[1] = item
// break
// case '':
// dataLists.value[2] = item
// break
// case '':
// dataLists.value[4] = item
// break
// case '':
// dataLists.value[5] = item
// break
// default:
// dataLists.value.push(item)
// break
// }
})
photo.value.map((item, index) => {
dataLists.value[index].photo = item

View File

@ -153,6 +153,10 @@ const getAppResources = (type, obj) => {
})
}
}
jcList.value.push({
name: '会客厅',
num: 3,
})
// 西-
if (whoShow1.value.itShowXiHaiAn) {
getSoldierData('无人机')