能力分类

This commit is contained in:
a0049873 2022-11-02 18:11:20 +08:00
parent 96b3f3197e
commit c463250fae
1 changed files with 132 additions and 116 deletions

View File

@ -15,7 +15,7 @@
:class="index == 4 ? 'name-last' : ''" :class="index == 4 ? 'name-last' : ''"
@click="selectOne11(item.name)" @click="selectOne11(item.name)"
> >
{{ item.name + '-' + item.num + '项' }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('应用系统')">查看更多</div> <div class="btn" @click="jumpPage('应用系统')">查看更多</div>
</div> </div>
@ -28,7 +28,7 @@
:class="index == 4 ? 'name-last' : ''" :class="index == 4 ? 'name-last' : ''"
@click="selectOne1(item.name)" @click="selectOne1(item.name)"
> >
{{ item.name + '-' + item.num + '项' }} {{ index + 1 }}-{{ item.name }}
</div> </div>
<div class="btn" @click="jumpPage('GIS图层')">查看更多</div> <div class="btn" @click="jumpPage('GIS图层')">查看更多</div>
</div> </div>
@ -41,16 +41,7 @@
:class="index == 2 ? 'name-last' : ''" :class="index == 2 ? 'name-last' : ''"
@click="selectOne2(item.name)" @click="selectOne2(item.name)"
> >
{{ {{ index + 1 }}-{{ item.name }}
item.name +
'-' +
item.num +
(item.name == '会客厅'
? '间'
: item.name == '视频会议'
? '个'
: '项')
}}
</div> </div>
<div class="btn" @click="jumpPage('视频资源')">查看更多</div> <div class="btn" @click="jumpPage('视频资源')">查看更多</div>
</div> </div>
@ -131,116 +122,141 @@
const getAppResources = (type, obj) => { const getAppResources = (type, obj) => {
paramsGetResources.type = type paramsGetResources.type = type
if (type === '数据资源' && !whoShow1.value.itShowBaoTou) { if (type === '数据资源' && !whoShow1.value.itShowBaoTou) {
getDataResource({ sjList.value = [
serviceName: paramsGetResources.name || '', // { name: '阿斯蒂芬' },
orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', // { name: '阿斯蒂芬' },
orderType: paramsGetResources.orderType.toLowerCase(), //descasc { name: '阿斯蒂芬' },
pageNum: paramsGetResources.pageNum, // { name: '阿斯蒂芬' },
pageSize: paramsGetResources.pageSize, // { name: '阿斯蒂芬' },
}).then((res) => { ]
console.log('数据资源==================>', res.data.data) // getDataResource({
if (whoShow1.value.itShowQingDao) { // serviceName: paramsGetResources.name || '', //
res.data.data.data.forEach((val) => { // orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', //
val.id = val.guid // id // orderType: paramsGetResources.orderType.toLowerCase(), //descasc
val.name = val.zyname // // pageNum: paramsGetResources.pageNum, //
val.sjlCount = val.sjcczl // // pageSize: paramsGetResources.pageSize, //
val.applyCount = val.syqk // // }).then((res) => {
val.deptName = val.TGBM // // console.log('==================>', res.data.data)
val.createDate = val.fbrq // // if (whoShow1.value.itShowQingDao) {
val.description = val.xgxt // // res.data.data.data.forEach((val) => {
}) // val.id = val.guid // id
obj.value = res.data.data.data || [] // val.name = val.zyname //
object.sjNum = res.data.data.rows // val.sjlCount = val.sjcczl //
} else if (whoShow1.value.itShowXiHaiAn) { // val.applyCount = val.syqk //
res.data.data.list.forEach((val) => { // val.deptName = val.TGBM //
val.id = val.serviceId // id // val.createDate = val.fbrq //
val.name = val.serviceName // // val.description = val.xgxt //
val.sjlCount = val.requestQuantity // // })
val.applyCount = val.requestCount // // obj.value = res.data.data.data || []
val.deptName = val.departmentName // // object.sjNum = res.data.data.rows
val.createTime = val.createTime.split('.')[0] // } else if (whoShow1.value.itShowXiHaiAn) {
val.createDate = val.createTime // // res.data.data.list.forEach((val) => {
}) // val.id = val.serviceId // id
obj.value = res.data.data.list || [] // val.name = val.serviceName //
object.sjNum = res.data.data.total // val.sjlCount = val.requestQuantity //
} // val.applyCount = val.requestCount //
}) // val.deptName = val.departmentName //
// val.createTime = val.createTime.split('.')[0]
// val.createDate = val.createTime //
// })
// obj.value = res.data.data.list || []
// object.sjNum = res.data.data.total
// }
// })
} else { } else {
let type = paramsGetResources.type let type = paramsGetResources.type
if (type == '视频资源') { if (type == '视频资源') {
jcList.value = [] jcList.value = [
selectInfrastructureList().then((res) => { { name: '阿斯蒂芬' },
console.log('视频资源------res------>', res) { name: '阿斯蒂芬' },
for (const key in res.data.data) { { name: '阿斯蒂芬' },
if (whoShow1.value.itShowXiHaiAn) { { name: '阿斯蒂芬' },
if (key === '视频资源') { { name: '阿斯蒂芬' },
jcList.value.push({ ]
name: key, // selectInfrastructureList().then((res) => {
num: res.data.data[key], // console.log('------res------>', res)
}) // for (const key in res.data.data) {
} // if (whoShow1.value.itShowXiHaiAn) {
} else { // if (key === '') {
jcList.value.push({ // jcList.value.push({
name: key, // name: key,
num: res.data.data[key], // num: res.data.data[key],
}) // })
} // }
} // } else {
// jcList.value.push({ // jcList.value.push({
// name: '', // name: key,
// num: 4, // num: res.data.data[key],
// }) // })
// 西- // }
if (whoShow1.value.itShowXiHaiAn) { // }
getSoldierData('无人机') // jcList.value.push({
.then((res) => { // name: '',
let { total = 0 } = res.data.data // num: 4,
jcList.value.push({ // })
name: '无人机', // 西-
num: total, // if (whoShow1.value.itShowXiHaiAn) {
}) // getSoldierData('')
}) // .then((res) => {
.catch((err) => { // let { total = 0 } = res.data.data
console.log('err--无人机---------->', err) // jcList.value.push({
}) // name: '',
getSoldierData('单兵设备') // num: total,
.then((res) => { // })
let { total = 0 } = res.data.data // })
jcList.value.push({ // .catch((err) => {
name: '单兵设备', // console.log('err------------>', err)
num: total, // })
}) // getSoldierData('')
}) // .then((res) => {
.catch((err) => { // let { total = 0 } = res.data.data
console.log('err--单兵设备---------->', err) // jcList.value.push({
}) // name: '',
} // num: total,
}) // })
// })
// .catch((err) => {
// console.log('err------------>', err)
// })
// }
// })
} else if (type == 'GIS图层') { } else if (type == 'GIS图层') {
zjList.value = [] zjList.value = [
selectCollectComponentList().then((res) => { { name: '阿斯蒂芬' },
console.log('GIS图层----res-------->', res) { name: '阿斯蒂芬' },
for (const key in res.data.data) { { name: '阿斯蒂芬' },
console.log('key------------>', key) { name: '阿斯蒂芬' },
zjList.value.push({ { name: '阿斯蒂芬' },
name: key, ]
num: res.data.data[key], // selectCollectComponentList().then((res) => {
}) // console.log('GIS----res-------->', res)
} // for (const key in res.data.data) {
console.log('zjList------------>', zjList) // console.log('key------------>', key)
}) // zjList.value.push({
// name: key,
// num: res.data.data[key],
// })
// }
// console.log('zjList------------>', zjList)
// })
} else if (type == '应用系统') { } else if (type == '应用系统') {
yyList.value = [] yyList.value = [
selectCollectResourceList().then((res) => { { name: '阿斯蒂芬' },
console.log('应用系统---res--------->', res) { name: '阿斯蒂芬' },
for (const key in res.data.data) { { name: '阿斯蒂芬' },
yyList.value.push({ { name: '阿斯蒂芬' },
name: key, { name: '阿斯蒂芬' },
num: res.data.data[key], ]
}) // selectCollectResourceList().then((res) => {
} // console.log('---res--------->', res)
}) // for (const key in res.data.data) {
// yyList.value.push({
// name: key,
// num: res.data.data[key],
// })
// }
// })
} else { } else {
pageWithAttrs(paramsGetResources).then((res) => { pageWithAttrs(paramsGetResources).then((res) => {
console.log('object个数======>', type) console.log('object个数======>', type)