演示版本修改

This commit is contained in:
wuhongjian 2022-11-08 17:09:46 +08:00
parent 2b972db97f
commit ce685dfb36
6 changed files with 182 additions and 140 deletions

View File

@ -2,17 +2,17 @@
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-04 14:48:01
* @LastEditTime: 2022-11-05 21:38:13
* @Description: 系统静态参数配置
*/
var _global = {}
var CONFIGITEM = {
// version: 'qingdao', //
// version: 'xihaian', // 西
version: 'dev', //
// version: 'dev', //
// version: 'zhanTingDev', // dev (2022-09-13:)
// version: 'qingdao', //
//version: 'frp', // 穿
version: 'frp', // 穿
vNum: 'v0.8.15.2',
configData: {
//

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-10-13 20:53:24
* @LastEditTime: 2022-11-05 22:24:53
* @Description: 数据资源参数配置
*/
// eslint-disable-next-line no-undef
@ -47,23 +47,23 @@ if (newLocation !== 'baotou' && newLocation !== 'xihaian') {
]
footerDataList.footerList = {
company: {
left: '青岛市大数据发展管理局',
right: '政府标识码3702000106',
left: '山东省大数据局',
right: '政府标识码3700000097',
},
address: [
{
name: '邮编: 266071',
value: 'Email: QDDSJJ@qingdao.shandong.cn',
},
{
name: '版权所有:青岛市大数据发展管理局',
value: '地址山东省青岛市香港中路17号市级机关三号办公楼',
},
{
name: '电话0532-85912587',
value: '传真0532-85912181',
},
],
// address: [
// {
// name: ': 266071',
// value: 'Email: QDDSJJ@qingdao.shandong.cn',
// },
// {
// name: '',
// value: '17',
// },
// {
// name: '0532-85912587',
// value: '0532-85912181',
// },
// ],
}
mapTestNum.lsNum = [
{

View File

@ -98,11 +98,85 @@
// })
// })
// }
selectTotal().then((res) => {
console.log('selectTotal===============>', res)
if (res.data.code !== 0) {
return message.error(res.data.msg)
}
// selectTotal().then((res) => {
// console.log('selectTotal===============>', res)
// if (res.data.code !== 0) {
// return message.error(res.data.msg)
// }
// let imgObj = {
// GIS: require('../../../assets/abilityStatistics/banner-zj.png'),
// : require('../../../assets/abilityStatistics/banner-yy.png'),
// : require('../../../assets/abilityStatistics/banner-jc.png'),
// : require('../../../assets/abilityStatistics/banner-sj.png'),
// : require('../../../assets/abilityStatistics/banner-zs.png'),
// }
// res.data.data.total.forEach((val) => {
// let _obj = {
// organization: '',
// type: val.type,
// photo: val.type && imgObj[val.type],
// amount: val.count,
// }
// if (val.type == '') {
// if (uavAndIndividualSoldier.num) {
// _obj.amount = val.count - 0 + uavAndIndividualSoldier.num
// }
// }
// if (val.type == '') {
// _obj.organization = ''
// }
// dataList.value.dataList.push(_obj)
// // switch (val.type) {
// // case 'GIS':
// // dataList.value.dataList.push({
// // organization: '',
// // type: 'GIS',
// // photo: require('../../../assets/abilityStatistics/banner-zj.png'),
// // amount: val.count,
// // })
// // break
// // case '':
// // dataList.value.dataList.push({
// // organization: '',
// // type: '',
// // photo: require('../../../assets/abilityStatistics/banner-yy.png'),
// // amount: val.count,
// // })
// // break
// // case '':
// // if (uavAndIndividualSoldier.num) {
// // val.count = val.count - 0 + uavAndIndividualSoldier.num
// // }
// // dataList.value.dataList.push({
// // organization: '',
// // type: '',
// // photo: require('../../../assets/abilityStatistics/banner-jc.png'),
// // amount: val.count,
// // })
// // break
// // case '':
// // dataList.value.dataList.push({
// // organization: '',
// // type: '',
// // photo: require('../../../assets/abilityStatistics/banner-sj.png'),
// // amount: val.count,
// // })
// // break
// // case '':
// // dataList.value.dataList.push({
// // organization: '',
// // type: '',
// // photo: require('../../../assets/abilityStatistics/banner-zs.png'),
// // amount: val.count,
// // })
// // break
// // }
// })
// let arr = ['GIS', '', '', '', '']
// dataList.value.dataList.sort((a, b) => {
// return arr.indexOf(a.type) - arr.indexOf(b.type)
// })
// })
let imgObj = {
GIS图层: require('../../../assets/abilityStatistics/banner-zj.png'),
应用系统: require('../../../assets/abilityStatistics/banner-yy.png'),
@ -110,73 +184,38 @@
数据资源: require('../../../assets/abilityStatistics/banner-sj.png'),
云网资源: require('../../../assets/abilityStatistics/banner-zs.png'),
}
res.data.data.total.forEach((val) => {
let _obj = {
dataList.value.dataList = [
{
organization: '项',
type: val.type,
photo: val.type && imgObj[val.type],
amount: val.count,
}
if (val.type == '视频资源') {
if (uavAndIndividualSoldier.num) {
_obj.amount = val.count - 0 + uavAndIndividualSoldier.num
}
}
if (val.type == '云网资源') {
_obj.organization = '条'
}
dataList.value.dataList.push(_obj)
// switch (val.type) {
// case 'GIS':
// dataList.value.dataList.push({
// organization: '',
// type: 'GIS',
// photo: require('../../../assets/abilityStatistics/banner-zj.png'),
// amount: val.count,
// })
// break
// case '':
// dataList.value.dataList.push({
// organization: '',
// type: '',
// photo: require('../../../assets/abilityStatistics/banner-yy.png'),
// amount: val.count,
// })
// break
// case '':
// if (uavAndIndividualSoldier.num) {
// val.count = val.count - 0 + uavAndIndividualSoldier.num
// }
// dataList.value.dataList.push({
// organization: '',
// type: '',
// photo: require('../../../assets/abilityStatistics/banner-jc.png'),
// amount: val.count,
// })
// break
// case '':
// dataList.value.dataList.push({
// organization: '',
// type: '',
// photo: require('../../../assets/abilityStatistics/banner-sj.png'),
// amount: val.count,
// })
// break
// case '':
// dataList.value.dataList.push({
// organization: '',
// type: '',
// photo: require('../../../assets/abilityStatistics/banner-zs.png'),
// amount: val.count,
// })
// break
// }
})
let arr = ['GIS图层', '应用系统', '视频资源', '数据资源', '云网资源']
dataList.value.dataList.sort((a, b) => {
return arr.indexOf(a.type) - arr.indexOf(b.type)
})
})
type: 'GIS图层',
photo: imgObj['GIS图层'],
amount: 434,
},
{
organization: '项',
type: '应用系统',
photo: imgObj['应用系统'],
amount: 201,
},
{
organization: '项',
type: '视频资源',
photo: imgObj['视频资源'],
amount: 7865,
},
{
organization: '项',
type: '数据资源',
photo: imgObj['数据资源'],
amount: 10,
},
{
organization: '项',
type: '云网资源',
photo: imgObj['云网资源'],
amount: 20,
},
]
let datas = ref([])
let laiyuanDataList = ref([])
// let dataSourceNum = ref(0)

View File

@ -1,8 +1,8 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-06-08 11:32:22
* @LastEditors: Light
* @LastEditTime: 2022-11-03 16:52:08
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-05 22:16:30
* @Description: 应用详情页
-->
<template>
@ -11,21 +11,21 @@
<application-top-details
:dataList="dataList.data"
></application-top-details>
<div style="position: absolute; top: 240px; left: 320px">
<div style="position: absolute; top: 2.4rem; left: 3.2rem">
<div style="display: flex; align-items: center; color: #99ffff">
<i class="jc"></i>
<div style="margin-left: 10px">能力基本信息</div>
<div style="margin-left: 0.1rem">能力基本信息</div>
</div>
<div
style="
display: flex;
align-items: center;
color: #67b1fc;
margin-top: 450px;
margin-top: 4.5rem;
"
>
<i class="kz"></i>
<div style="margin-left: 10px">能力扩展信息</div>
<div style="margin-left: 0.1rem">能力扩展信息</div>
</div>
</div>
<!-- 导航 -->
@ -234,15 +234,15 @@
margin-top: 0.84rem;
}
.jc {
width: 15px;
height: 15px;
width: 0.15rem;
height: 0.15rem;
background: url('~@/assets/home/jc.png') no-repeat;
background-size: 100%;
background-position: center;
}
.kz {
width: 15px;
height: 15px;
width: 0.15rem;
height: 0.15rem;
background: url('~@/assets/home/kz.png') no-repeat;
background-size: 100%;
background-position: center;

View File

@ -442,6 +442,7 @@
width: 1.4rem;
margin-left: 0.1rem;
background: url('~@/assets/newHome/yiwang.png') no-repeat;
background-size: contain;
}
}
@ -464,7 +465,8 @@
width: 0.8rem;
border-radius: 0.1rem;
background: url('~@/assets/newHome/yiwang.png') no-repeat;
background-size: 100%;
// background-size: 100%;
background-size: contain;
}
span {
@ -625,6 +627,7 @@
height: 0.35rem;
background: url('~@/assets/newHome/iconTo.png') no-repeat;
cursor: pointer;
background-size: contain;
}
</style>
<style>

View File

@ -65,11 +65,11 @@
const router = useRouter()
const store = useStore()
// import mybus from '@/myplugins/mybus'
const yyNum = ref('')
const zjNum = ref('')
const jcNum = ref('')
const sjNum = ref('')
const zsNum = ref('')
const yyNum = ref('201')
const zjNum = ref('434')
const jcNum = ref('7865')
const sjNum = ref('10')
const zsNum = ref('20')
// mybus.on('chagneNum', (obj) => {
// console.log('============>', obj)
// yyNum.value = obj.yyNum
@ -78,31 +78,31 @@
// sjNum.value = obj.sjNum
// zsNum.value = obj.zsNum
// })
selectTotal().then((res) => {
console.log('selectTotal===============>', res.data.data)
res.data.data.total.forEach((val) => {
switch (val.type) {
case 'GIS图层':
zjNum.value = val.count
break
case '应用系统':
yyNum.value = val.count
break
case '视频资源':
jcNum.value = val.count
if (uavAndIndividualSoldier.num) {
jcNum.value = jcNum.value - 0 + uavAndIndividualSoldier.num
}
break
case '数据资源':
sjNum.value = val.count
break
case '云网资源':
zsNum.value = val.count
break
}
})
})
// selectTotal().then((res) => {
// console.log('selectTotal===============>', res.data.data)
// res.data.data.total.forEach((val) => {
// switch (val.type) {
// case 'GIS':
// zjNum.value = val.count
// break
// case '':
// yyNum.value = val.count
// break
// case '':
// jcNum.value = val.count
// if (uavAndIndividualSoldier.num) {
// jcNum.value = jcNum.value - 0 + uavAndIndividualSoldier.num
// }
// break
// case '':
// sjNum.value = val.count
// break
// case '':
// zsNum.value = val.count
// break
// }
// })
// })
function jumpPage(type) {
// store
store.commit('home/selectCardsData', {