Compare commits

...

2 Commits

2 changed files with 29 additions and 24 deletions

View File

@ -201,31 +201,32 @@
let dataLists = ref([]) let dataLists = ref([])
const myApplyAmount = () => { const myApplyAmount = () => {
applyAmount().then((res) => { applyAmount().then((res) => {
dataLists.value = res.data.data dataLists.value = []
res.data.data.map((item) => { 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) 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) => { photo.value.map((item, index) => {
dataLists.value[index].photo = item 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) { if (whoShow1.value.itShowXiHaiAn) {
getSoldierData('无人机') getSoldierData('无人机')