Compare commits

...

2 Commits

11 changed files with 807 additions and 406 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

View File

@ -0,0 +1,72 @@
import request from '@/utils/request'
//
export function getDistrictFundStatement() {
return request({
url: '/processForm/tabilityapplication/getDistrictFundStatement',
method: 'get',
})
}
//
export function getComponentFundStatement() {
return request({
url: '/processForm/tabilityapplication/getComponentFundStatement',
method: 'get',
})
}
//
export function getResourceFundStatement() {
return request({
url: '/processForm/tabilityapplication/getResourceFundStatement',
method: 'get',
})
}
//
export function getInfrastructureFundStatement() {
return request({
url: '/processForm/tabilityapplication/getInfrastructureFundStatement',
method: 'get',
})
}
//
export function getProvideDeptFundStatement() {
return request({
url: '/processForm/tabilityapplication/getProvideDeptFundStatement',
method: 'get',
})
}
//
export function getApplyDeptFundStatement() {
return request({
url: '/processForm/tabilityapplication/getApplyDeptFundStatement',
method: 'get',
})
}
//
export function getProvideDistrictFundStatement() {
return request({
url: '/processForm/tabilityapplication/getProvideDistrictFundStatement',
method: 'get',
})
}
//
export function getApplyDistrictFundStatement() {
return request({
url: '/processForm/tabilityapplication/getApplyDistrictFundStatement',
method: 'get',
})
}
//
export function selectTotal() {
return request({
url: '/resource/selectTotal',
method: 'get',
})
}
//
//
export function getApplyPriceCount() {
return request({
url: '/processForm/tabilityapplication/getApplyPriceCount',
method: 'get',
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 757 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,150 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2021-08-12 10:50:17
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2021-08-12 14:20:07
* @Description: 数组公共方法
*/
/**
* @description: 根据属性名过滤数组支持一维属性及二维属性
* @param {*} arr 待过滤的数组
* @param {*} param 一维属性 'param' 二维属性 'param1[param2]'
* @return {*} 过滤之后的数组
*/
export function arrFilterByParam(arr, param) {
const res = new Map();
const paramArr = param.split('[');
if (paramArr.length > 1) {
const first = paramArr[0];
const second = paramArr[1].split(']')[0];
return arr.filter(
(list) => !res.has(list[first][second]) && res.set(list[first][second], 1));
} else {
return arr.filter(
(list) => !res.has(list[param]) && res.set(list[param], 1));
}
}
// 2021-09-24 19:53:01:765
// filters: {
// formatDate(time) {
// var date = new Date(time);
// return formatDate(date, 'yyyy-MM-dd hh:mm:ss');
// }
// },
//{{ | formatDate }}
export function formatDate (date, fmt) {
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
}
let o = {
'M+': date.getMonth() + 1,
'd+': date.getDate(),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds()
};
for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) {
let str = o[k] + '';
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
}
}
return fmt;
};
function padLeftZero (str) {
return ('00' + str).substr(str.length);
};
//
export function NumbersConvertedToArrays(inNum) {
const str = inNum.toString();
const arr = str.split("");
const arrlenght = arr.length;
if (arrlenght == 2) {
arr.unshift(0);
}
if (arrlenght == 1) {
arr.unshift(0);
arr.unshift(0);
}
return arr;
};
// var lon = 107.631131;
// var lat = 29.2331231;
// var lonDMS = transformDMS(lon, "lon");
// var latDMS = transformDMS(lat, "lat");
// console.log(lonDMS); // 107°4435E
// console.log(latDMS); // 29°1417N
//
export function transformDMS(degree, direction) {
var D = plusZeroAtHead(Math.floor(degree));
var M = plusZeroAtHead(Math.floor((degree - D) * 60));
var S = plusZeroAtHead(Math.floor(((degree - D) * 60 - M) * 60));
var result = D + "°" + M + "" + S + "″";
// 0
function plusZeroAtHead(num) {
if (num > -10 && num < 0) {
num = "-0" + Math.abs(num)
}
if (num > 0 && num < 10) {
return "0" + num
}
return num;
}
if (direction === "lon") {
D > 0 ? result += "E" : result += "W";
return result;
}
if (direction === "lat") {
D > 0 ? result += "N" : result += "S";
return result;
}
return result;
};
export function getBlob(url,cb) {
var xhr = new XMLHttpRequest();
let that=this;
xhr.open('GET', url, true);
xhr.responseType = 'blob';
xhr.onload = function() {
if (xhr.status === 200) {
cb(xhr.response);
}
};
xhr.send();
};
/**
* 保存
* @param {Blob} blob
* @param {String} filename 想要保存的文件名称
*/
export function saveAs(blob, filename) {
if (window.navigator.msSaveOrOpenBlob) {
navigator.msSaveBlob(blob, filename);
} else {
var link = document.createElement('a');
var body = document.querySelector('body');
link.href = window.URL.createObjectURL(blob);
link.download = filename;
// fix Firefox
link.style.display = 'none';
body.appendChild(link);
link.click();
body.removeChild(link);
window.URL.revokeObjectURL(link.href);
}
};
//logo

View File

@ -0,0 +1,130 @@
<template>
<div class="right-survey">
<div class="platform-overview-bottom">
<div class="top"><span class="title">资源汇聚总量</span></div>
<div class="bottom">
<div
v-for="(item, index) in servicesNum"
:key="index"
class="component-services-content-right-left-content-son"
>
<p>{{ item.type }}</p>
<p class="num">{{ item.count }}</p>
</div>
</div>
</div>
</div>
</template>
<script>
import {
selectTotal
} from '@/api/assertReport'
export default {
components: {},
mounted() {
this.selectAllTotal()
},
data() {
//
return {
servicesNum: [],
}
},
methods: {
selectAllTotal(){
selectTotal().then((res) => {
this.servicesNum=res.data.data.total
})
}
}
}
</script>
<style lang='less' scoped>
.top5-content::-webkit-scrollbar {
width: 6px;
/*height: 4px;*/
}
.top5-content::-webkit-scrollbar-thumb {
background-color: #00deff;
}
.map-search-result::-webkit-scrollbar-track,
.top5-content::-webkit-scrollbar-track {
background-color: #424748;
}
@keyframes topup50 {
from {
top: 50%;
}
to {
top: -100%;
}
}
.right-survey {
height: 100%;
color: #f0fafa;
font-size: 18px;
display: flex;
flex-direction: column;
.platform-overview-bottom {
margin-top: 20px;
width: 100%;
height: 1.7rem;
background: rgba(0, 108, 188, 0.2);
border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7);
text-decoration: none;
outline: none;
-webkit-transition: all 100ms ease-out;
-moz-transition: all 100ms ease-out;
transition: all 100ms ease-out;
.top {
font-size: 24px;
background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat;
background-size: 100% 100%;
text-align: center;
}
.bottom {
margin-top: 20px;
display: flex;
justify-content: space-between;
align-items: center;
padding:0rem 0.2rem;
.component-services-content-right-left-content-son {
background: url('~@/assets/capabilityCloud/Component_services_snum.png')
no-repeat;
background-size: 1.1rem 0.59rem;
background-position: center;
text-align: center;
& > p:first-child {
color: #ffffff;
font-size: 0.16rem;
line-height: 0.16rem;
margin-bottom: 0.12rem;
}
& > p:last-child {
color: #1ef6f5;
font-size: 0.28rem;
line-height: 0.28rem;
padding-bottom: 0.24rem;
margin: 10px 45px;
}
}
}
}
}
</style>

View File

@ -6,78 +6,24 @@
<div class="platform-overview-top">
<div class="top"><span class="title">组件资源</span></div>
<div class="bottom">
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省{{componetsData.total}}万元 </span><img src="../image/xing1.png" /></div>
<div class="left">
<div class="item">
<div class="item" v-for="item in componetsData.list">
<div class="content1">
<div class="img"> </div>
<div class="num">智能算法</div>
<div class="num">{{item.resourceType}}</div>
</div>
<div class="content">
<div class="name">节省</div>
<div claSS="num">123万元</div>
<div claSS="num">{{item.applyPrice }}万元</div>
</div>
<div class="content">
<div class="name">数量</div>
<div claSS="num">123</div>
<div claSS="num">{{item.resourceAmount}}</div>
</div>
<div class="content">
<div class="name">共申请</div>
<div claSS="num">123</div>
</div>
</div>
<div class="item">
<div class="content1">
<div class="img"> </div>
<div class="num">图层服务</div>
</div>
<div class="content">
<div class="name">节省</div>
<div claSS="num">123万元</div>
</div>
<div class="content">
<div class="name">数量</div>
<div claSS="num">123</div>
</div>
<div class="content">
<div class="name">共申请</div>
<div claSS="num">123</div>
</div>
</div>
<div class="item">
<div class="content1">
<div class="img"> </div>
<div class="num">开发组件</div>
</div>
<div class="content">
<div class="name">节省</div>
<div claSS="num">123万元</div>
</div>
<div class="content">
<div class="name">数量</div>
<div claSS="num">123</div>
</div>
<div class="content">
<div class="name">共申请</div>
<div claSS="num">123</div>
</div>
</div>
<div class="item">
<div class="content1">
<div class="img"> </div>
<div class="num">业务组件</div>
</div>
<div class="content">
<div class="name">节省</div>
<div claSS="num">123万元</div>
</div>
<div class="content">
<div class="name">数量</div>
<div claSS="num">123</div>
</div>
<div class="content">
<div class="name">共申请</div>
<div claSS="num">123</div>
<div claSS="num">{{item.applyCount}}</div>
</div>
</div>
</div>
@ -89,7 +35,7 @@
<div class="platform-overview-mid">
<div class="top"><span class="title">应用资源</span></div>
<div class="bottom">
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省{{resoureData.total}}万元 </span><img src="../image/xing1.png" /></div>
<div class="component-services-content-right-right-bottom-right">
<div>
<span>排行</span>
@ -98,15 +44,18 @@
<span >次数</span>
<span >贡献金额</span>
</div>
<div v-for="(item, index) in dataList" :key="index">
<div v-for="(item, index) in resoureData.list" :key="index">
<span>{{ index + 1 }}</span>
<a-tooltip>
<template #title>{{ item.name }}</template>
<span>{{ item.name }}</span>
<template #title>{{ item.resourceName }}</template>
<span>{{ item.resourceName }}</span>
</a-tooltip>
<span>{{ item.count || 0 }}</span>
<span>{{ item.count || 0 }}</span>
<span>{{ item.count || 0 }}</span>
<a-tooltip>
<template #title>{{ item.deptName}}</template>
<span>{{ item.deptName }}</span>
</a-tooltip>
<span>{{ item.applyCount || 0 }}</span>
<span>{{ item.applyPrice || 0 }}</span>
</div>
</div>
</div>
@ -116,15 +65,15 @@
<div class="platform-overview-bottom">
<div class="top"><span class="title">基础设施</span></div>
<div class="bottom">
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省{{infrastructureData.total}}万元 </span><img src="../image/xing1.png" /></div>
<div class="huiketing">
<div style="float:left;width:30%">
<img :src="leftImg" alt="" />
</div>
<div style="float:left;width:70%;margin-top: 30px;">
<span style="font-size:22x">会客厅</span>
<div style="float:left;width:70%;margin-top: 30px;" v-for="item in infrastructureData.list">
<span style="font-size:22x">{{item.resourceName}}</span>
<span style="font-size:22px">节省 </span>
<span style="margin-right:10px;font-size:24px; color: #1ef6f5;"> 453</span>
<span style="margin-right:10px;font-size:24px; color: #1ef6f5;">{{item.applyPrice}}</span>
<span style="font-size:20px"> 万元</span>
</div>
</div>
@ -137,12 +86,13 @@
</template>
<script>
//jsjsjson
//import from '';
import {
getComponentFundStatement,
getResourceFundStatement,
getInfrastructureFundStatement
} from '@/api/assertReport'
import ResourceOverviewAnimation from "@/views/assertReport/components/ResourceOverviewAnimation.vue";
export default {
//import使
components: {
ResourceOverviewAnimation
},
@ -151,11 +101,28 @@ export default {
},
mounted() {
//
this.getComponent()
//
this.getResource()
//
this.getInfrastructure()
},
data() {
return {
componetsData:{
total:'',
list:[]
},
resoureData:{
total:'',
list:[]
},
infrastructureData:{
total:'',
list:'',
},
leftImg:require('@/assets/capabilityCloud/resources-left.png'),
dataList:[{name:'第一个',count:43},{name:'第二个',count:43},
{name:'第三个',count:43},{name:'第四个',count:43},{name:'第五个',count:43}]
@ -164,7 +131,24 @@ export default {
},
methods: {
getComponent(){
getComponentFundStatement().then((res) => {
this.componetsData.total=res.data.data.total
this.componetsData.list=res.data.data.list
})
},
getResource(){
getResourceFundStatement().then((res) => {
this.resoureData.total=res.data.data.total
this.resoureData.list=res.data.data.list
})
},
getInfrastructure(){
getInfrastructureFundStatement().then((res) => {
this.infrastructureData.total=res.data.data.total
this.infrastructureData.list=res.data.data.list
})
}
},
@ -302,7 +286,7 @@ export default {
.platform-overview-mid {
margin-top:20px;
width: 100%;
height: 2.8rem;
height: 3.9rem;
background: rgba(0, 108, 188, 0.2);
border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7);
@ -328,6 +312,8 @@ export default {
font-size: 0.16rem;
border: 0.01rem rgba(0, 108, 188, 0.7) solid;
color: rgba(255, 255, 255, 0.8);
height: 2.9rem;
overflow-y: auto;
& > div {
height: 0.32rem;
& > span {
@ -352,11 +338,11 @@ export default {
padding-left: 0.05rem;
}
& > span:nth-child(3) {
width: 0.8rem;
width: 1.47rem;
padding-left: 0.05rem;
}
& > span:nth-child(4) {
width: 1rem;
width: 0.5rem;
padding-left: 0.05rem;
}
& > span:last-child {

View File

@ -4,7 +4,7 @@
<!--最上面 部门排行榜-->
<div class="platform-overview-top">
<div class="top"><span class="title">部门排行榜</span></div>
<div class="bottom">
<div class="bottom1">
<div class="bottom-item">
<div class="inner-title">
<p style="width: 220px">市级部门共享贡献资金排行</p>
@ -13,21 +13,22 @@
<div class="left-list1">排行</div>
<div class="left-list2">部门名称</div>
<div class="left-list1">提供资源</div>
<div class="left-list1">贡献总量</div>
<div class="left-list1" style="color: #1ffefd">贡献总量</div>
</div>
<div class="left-list" v-for="item in top5AreaList">
<div class="left-list" v-for="(item, index) in top5DistrictList">
<div class="left-list1" v-if="item.img">
<img :src="item.img" />
</div>
<div class="left-list1" v-else>{{ item.name }}</div>
<div
:class="selectArea === item.areaId ? 'active-item' : 'left-list2'"
@click="chooseSelectArea(item)"
>
{{ item.areaName }}
<div class="left-list1" v-else>{{ index + 1 }}</div>
<a-tooltip>
<template #title>{{ item.deptName }}</template>
<div class="left-list2">{{ item.deptName }}</div>
</a-tooltip>
<div class="left-list1">{{ item.resourceCount }}</div>
<div class="left-list1" style="color: #1ffefd">
{{ item.applyPrice }}
</div>
<div class="left-list1">{{ item.num }}</div>
<div class="left-list1">{{ item.num }}</div>
</div>
</div>
<div class="bottom-item">
@ -38,48 +39,55 @@
<div class="left-list1">排行</div>
<div class="left-list2">部门名称</div>
<div class="left-list1">提供资源</div>
<div class="left-list1">贡献总量</div>
<div class="left-list1" style="color: #1ffefd">贡献总量</div>
</div>
<div class="left-list" v-for="item in top5AreaList">
<div class="left-list" v-for="(item, index) in top5DeptFundList">
<div class="left-list1" v-if="item.img">
<img :src="item.img" />
</div>
<div class="left-list1" v-else>{{ item.name }}</div>
<div
:class="selectArea === item.areaId ? 'active-item' : 'left-list2'"
@click="chooseSelectArea(item)"
>
{{ item.areaName }}
</div>
<div class="left-list1">{{ item.num }}</div>
<div class="left-list1">{{ item.num }}</div>
<div class="left-list1" v-else>{{ index + 1 }}</div>
<a-tooltip>
<template #title>{{ item.deptName }}</template>
<div class="left-list2">{{ item.deptName }}</div>
</a-tooltip>
<div class="left-list1">{{ item.applyCount }}</div>
<div class="left-list1" style="color: #1ffefd">
{{ item.applyPrice }}
</div>
</div>
</div>
<div class="bottom">
</div>
<div class="bottom2">
<div class="bottom-item">
<div class="inner-title">
<p style="width: 220px">区市部门共享贡献资金排行</p>
</div>
<div class="left-list">
<div class="left-list1">排行</div>
<div class="left-list1">序号</div>
<div class="left-list2">部门名称</div>
<div class="left-list1">提供资源</div>
<div class="left-list1">贡献总量</div>
<div class="left-list1" style="color: #1ffefd">贡献总量</div>
</div>
<div class="left-list" v-for="item in top5AreaList">
<div style="height: 300px; overfolw-y: auto">
<div
class="left-list"
v-for="(item, index) in top5eDistrictFundList"
>
<div class="left-list1" v-if="item.img">
<img :src="item.img" />
</div>
<div class="left-list1" v-else>{{ item.name }}</div>
<div
:class="selectArea === item.areaId ? 'active-item' : 'left-list2'"
@click="chooseSelectArea(item)"
>
{{ item.areaName }}
<div class="left-list1" v-else>{{ index + 1 }}</div>
<a-tooltip>
<template #title>{{ item.districtName }}</template>
<div class="left-list2">{{ item.districtName }}</div>
</a-tooltip>
<div class="left-list1">{{ item.applyCount }}</div>
<div class="left-list1" style="color: #1ffefd">
{{ item.applyPrice }}
</div>
</div>
<div class="left-list1">{{ item.num }}</div>
<div class="left-list1">{{ item.num }}</div>
</div>
</div>
<div class="bottom-item">
@ -87,103 +95,169 @@
<p style="width: 220px">区市部门申请节省资金排行</p>
</div>
<div class="left-list">
<div class="left-list1">排行</div>
<div class="left-list1">序号</div>
<div class="left-list2">部门名称</div>
<div class="left-list1">提供资源</div>
<div class="left-list1">贡献总量</div>
<div class="left-list1" style="color: #1ffefd">贡献总量</div>
</div>
<div class="left-list" v-for="item in top5AreaList">
<div style="height: 200px; overfolw-y: auto">
<div
class="left-list"
v-for="(item, index) in top5ApplyDistrictList"
>
<div class="left-list1" v-if="item.img">
<img :src="item.img" />
</div>
<div class="left-list1" v-else>{{ item.name }}</div>
<div
:class="selectArea === item.areaId ? 'active-item' : 'left-list2'"
@click="chooseSelectArea(item)"
>
{{ item.areaName }}
<div class="left-list1" v-else>{{ index + 1 }}</div>
<a-tooltip>
<template #title>{{ item.districtName }}</template>
<div class="left-list2">{{ item.districtName }}</div>
</a-tooltip>
<div class="left-list1">{{ item.applyCount }}</div>
<div class="left-list1" style="color: #1ffefd">
{{ item.applyPrice }}
</div>
</div>
<div class="left-list1">{{ item.num }}</div>
<div class="left-list1">{{ item.num }}</div>
</div>
</div>
</div>
</div>
<div class="platform-overview-bottom">
<!-- <div class="platform-overview-bottom">
<div class="top"><span class="title">资源汇聚总量</span></div>
<div class="bottom">
<div
v-for="(item, index) in servicesSnum"
v-for="(item, index) in servicesNum"
:key="index"
class="component-services-content-right-left-content-son"
>
<p>{{ item.type }}</p>
<p class="num">{{ item.amount }}</p>
</div>
<p class="num">{{ item.count }}</p>
</div>
</div>
</div> -->
</div>
</template>
<script>
import {
getProvideDeptFundStatement,
getApplyDeptFundStatement,
getProvideDistrictFundStatement,
getApplyDistrictFundStatement,
selectTotal,
} from '@/api/assertReport'
export default {
//import使
components: {},
created() {},
destroyed() {},
mounted() {},
mounted() {
this.getgetProvideDeptFund()
this.getApplyDeptFund()
this.getProvideDistrict()
this.getApplyDistrictFund()
this.selectAllTotal()
},
data() {
//
return {
top5AreaList: [
{
title: 'TOP1',
img: require('../image/one.png'),
areaName: '台东商圈',
areaId: '1',
num: '12',
},
{
title: 'TOP2',
img: require('../image/two.png'),
areaName: '李村商圈',
areaId: '2',
num: '8',
},
{
title: 'TOP3',
img: require('../image/three.png'),
areaName: '五四广场',
areaId: '3',
num: '7',
},
{
title: '4',
img: require('../image/four.png'),
areaName: '第一海水浴场',
areaId: '4',
num: '5',
},
{
title: '5',
img: require('../image/five.png'),
areaName: '石老人海水浴场',
areaId: '5',
num: '4',
},
],
servicesSnum: [
{ type: '组件服务', amount: 124 },
{ type: '应用资源', amount: 34244 },
{ type: '基础设施', amount: 125555 },
{ type: '数据资源', amount: 5555 },
],
//
top5DistrictList: [],
//
top5DeptFundList: [],
//
top5eDistrictFundList: [],
//
top5ApplyDistrictList: [],
servicesNum: [],
}
},
methods: {},
methods: {
getgetProvideDeptFund() {
getProvideDeptFundStatement().then((res) => {
let result = res.data.data
if (result.length > 0) {
for (let i = 0; i < result.length; i++) {
if (i === 0) {
result[i].img = require('../image/one.png')
}
if (i === 1) {
result[i].img = require('../image/two.png')
}
if (i === 2) {
result[i].img = require('../image/three.png')
}
}
}
this.top5DistrictList = result
})
},
getApplyDeptFund() {
getApplyDeptFundStatement().then((res) => {
let result = res.data.data
if (result.length > 0) {
for (let i = 0; i < result.length; i++) {
if (i === 0) {
result[i].img = require('../image/one.png')
}
if (i === 1) {
result[i].img = require('../image/two.png')
}
if (i === 2) {
result[i].img = require('../image/three.png')
}
}
}
this.top5DeptFundList = result
})
},
getProvideDistrict() {
getProvideDistrictFundStatement().then((res) => {
let result = res.data.data
// if(result.length>0){
// for(let i=0;i<result.length;i++){
// if(i===0){
// result[i].img=require('../image/one.png')
// }
// if(i===1){
// result[i].img=require('../image/two.png')
// }
// if(i===2){
// result[i].img= require('../image/three.png')
// }
// }
// }
this.top5eDistrictFundList = result
})
},
getApplyDistrictFund() {
getApplyDistrictFundStatement().then((res) => {
let result = res.data.data
// if(result.length>0){
// for(let i=0;i<result.length;i++){
// if(i===0){
// result[i].img=require('../image/one.png')
// }
// if(i===1){
// result[i].img=require('../image/two.png')
// }
// if(i===2){
// result[i].img= require('../image/three.png')
// }
// }
// }
this.top5ApplyDistrictList = result
})
},
selectAllTotal() {
selectTotal().then((res) => {
this.servicesNum = res.data.data.total
})
},
},
}
</script>
<style lang='less' scoped>
@ -217,7 +291,7 @@ export default {
.platform-overview-top {
width: 100%;
height: 6.8rem;
height: 9.9rem;
background: rgba(0, 108, 188, 0.2);
border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7);
@ -232,20 +306,35 @@ export default {
background-size: 100% 100%;
text-align: center;
}
.bottom {
margin-top: 4px;
.bottom1 {
margin-top: 10px;
// margin-top:10px;
width: 100%;
display: table;
justify-content: space-between;
align-items: center;
:hover.bottom-item{
height: 3.5rem;
}
.bottom2 {
margin-top: 10px;
// margin-top:10px;
width: 100%;
display: table;
justify-content: space-between;
align-items: center;
height: 5.6rem;
}
:hover.bottom-item {
background: rgba(0, 108, 188, 0.5);
}
.bottom-item {
height: 100%;
overflow-y: auto;
background: rgba(0, 108, 188, 0.4);
border-radius: 3px;
margin: 4px 5px;
border-radius: 2px;
margin: 5px 5px;
width: 48%;
.inner-title {
margin-top: 10px;
margin-bottom: 10px;
@ -268,26 +357,41 @@ export default {
}
display: inline-table;
width: 48%;
height: 3rem;
.left-list {
text-align: center;
color: #fff;
width: 100%;
height: 24px;
height: 40px;
margin-right: 10px;
margin-top: 5px;
font-size: 14px;
.left-list1 {
font-size: 14x;
float: left;
width: 20%;
width: 22%;
height: 0.32rem;
line-height: 0.32rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
.left-list2 {
height: 0.32rem;
line-height: 0.32rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
cursor: pointer;
font-size: 14px;
float: left;
width: 40%;
width: 30%;
&:hover {
color: rgb(0 255 255);
}
@ -304,11 +408,10 @@ export default {
}
}
}
}
.platform-overview-bottom {
margin-top: 20px;
width: 100%;
height: 1.8rem;
height: 1.7rem;
background: rgba(0, 108, 188, 0.2);
border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7);
@ -322,14 +425,13 @@ export default {
background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat;
background-size: 100% 100%;
text-align: center;
margin-bottom: 20px;
}
.bottom {
margin-top: 20px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.2rem;
padding: 0rem 0.2rem;
.component-services-content-right-left-content-son {
background: url('~@/assets/capabilityCloud/Component_services_snum.png')
no-repeat;

View File

@ -19,8 +19,9 @@
</template>
<script>
//jsjsjson
//import from '';
import {
getDistrictFundStatement
} from '@/api/assertReport'
import axios from 'axios'
const echarts = require("echarts");
export default {
@ -33,101 +34,80 @@ export default {
districtData: [
{
name: "市南区",
value: [120.395966, 36.070892],
num:232,
value: [120.395966, 36.000892],
},
{
name: "市北区",
value: [120.355026, 36.083819],
num:232,
},
{
name: "李沧区",
value: [120.421236, 36.160023],
num:232,
value: [120.421236, 36.188023],
},
{
name: "崂山区",
value: [120.467393, 36.102569],
num:232,
value: [120.587393, 36.199569],
},
{
name: "城阳区",
value: [120.389135, 36.306833],
num:232,
value: [120.369135, 36.266833],
},
{
name: "即墨区",
value: [120.447352, 36.390847],
num:232,
value: [120.517352, 36.490847],
},
{
name: "莱西市",
value: [120.526226, 36.86509],
num:232,
value: [120.426226, 36.86009],
},
{
name: "胶州市",
value: [120.006202, 36.285878],
num:232,
value: [120.010202, 36.235878],
},
{
name: "平度市",
value: [119.959012, 36.788828],
num:232,
},
{
name: "西海岸",
value: [119.995518, 35.875138],
num:232,
value: [119.895518, 35.875138],
},
],//
reservoirTypeArr:[
{
id: 1,
type: "warning",
name: "超汛限",
},
{
id: 2,
type: "normal",
name: "正常",
}
],
// 1
tabs: [
{ name: "降雨量图" },
{ name: "人口热力图" },
{ name: "水库等级图" },
{ name: "水库告警分布" },
],
selectedTabIndex: 3,
};
},
// data
computed: {},
//data
watch: {},
// - 访this
created() {},
// - 访DOM
mounted() {
this.findAllInfo();
// this.initMap();
},
//
methods: {
findAllInfo(){
let data=this.districtData
// let result=[]
// for(let i=0;i<data.length;i++){
// let value=[]
// let d=res.data.data[i]
// value.push(d["longitude"])
// value.push(d["latitude"])
// d["value"]=value
// }
this.initMap(data)
getDistrictFundStatement().then((res) => {
let districtData=this.districtData
let resulrtData=res.data.data
for(let i=0;i<resulrtData.length;i++){
for(let j=0;j<districtData.length;j++){
if(resulrtData[i].districtName=districtData[j].name){
districtData[j].num=resulrtData[i].applyPrice
}
}
}
this.initMap(districtData)
})
},
initMap(data) {
@ -330,7 +310,7 @@ export default {
},
symbol: "image://static/assets/reservoir-type-bak.png",
symbolSize: [84, 28],
symbolOffset: [0, -20],
symbolOffset: [0, -30],
z: 999,
data: data, //
},
@ -381,11 +361,11 @@ export default {
background: url("~@/assets/common/homePage/big-bak.png") no-repeat;
background-size: 100% 100%;
.city-map-content-echarts {
width: 11rem;
height: 9rem;
top: 80px;
left: 400px;
bottom: 60px;
width: 10rem;
height: 8rem;
top: 0px;
left: 500px;
bottom: 2rem;
position: absolute;
z-index: 1000;
}

View File

@ -8,9 +8,19 @@
<span class="title" @click="goHome">城市云脑通用能力服务平台</span>
</div>
<div class="header1">
<div style=" color:#fff; font-size: 24px">累计节省财政资金</div>
<div style=" color:#fff; font-size: 24px">2451.0万元</div>
<div style=" color:#fff; font-size: 18px">资源参考价格由部门提供或参考市场价格设定</div>
<div style=" color:#bed1df; font-size: 26px">累计节省财政资金</div>
<div class="area-right">
<!-- <div class="mianJi">累计节省财政资金</div> -->
<template v-for="(item, index) in saveMonmy">
<p v-if="item == '.'" :key="index">
{{ item }}
</p>
<span v-else >{{ item }}</span>
</template>
<div class="mianJi">万元</div>
</div>
<div style=" color: #bed1df; font-size: 16px">资源参考价格由部门提供或参考市场价格设定</div>
</div>
<!--左侧-->
<div class="reservoir-left">
@ -21,36 +31,44 @@
<div class="reservoir-right">
<reservoir-right />
</div>
<!--中间地图-->
<div class="reservoir-map">
<!-- 中间地图 -->
<reservoir-thumbnail
@changeThumbnailMap="changeThumbnailMap"
@jumpIntoMap="jumpIntoMap"
/>
</div>
<!--下方-->
<div class="bottom">
<reservoir-bottom />
</div>
</div>
</template>
<script>
import ReservoirThumbnail from "./components/ReservoirThumbnail.vue";
import {
getApplyPriceCount
} from '@/api/assertReport'
import ReservoirThumbnail from "./components/ReservoirThumbnail.vue";
import ReservoirLeft from "./components/ReservoirLeft";
import ReservoirRight from "./components/ReservoirRight";
import ReservoirBottom from "./components/ReservoirBottom";
import { NumbersConvertedToArrays } from "@/utils/arrayMethod.js";
export default {
//import使
components: {
ReservoirThumbnail,
ReservoirLeft,
ReservoirRight
ReservoirRight,
ReservoirBottom
},
data() {
//
return {
saveMonmy:[],
model: "common",
dialogTitle: "周边视频",
videoAnalysisDialogVisible: false, //
@ -76,101 +94,18 @@ export default {
watch: {},
//
methods: {
changeModel(model, waterPointInfo) {
this.model = model;
if(model == 'common') {
this.basicInfo = {};
}
this.listType ="";
// if (this.model == "common") {
// this.$refs.riverCourseMap.isMapMenu = true;
// this.$refs.riverCourseMap.choseTab(1);
// }
//
if(this.model == "dangerlist") {
this.isThumbnail=false;
//
this.$nextTick(() => {
bus.$emit('reservoirMapDangerList');
})
}
//
// if(this.model == "dangerlist") {
// this.isThumbnail=false;
// //
// this.$nextTick(() => {
// bus.$emit('reservoirMapDangerList');
// })
// }
},
//
jumpIntoMap(data) {
this.isThumbnail = false;
//
this.$nextTick(() => {
bus.$emit('reservoirMapLonLat',data);
})
},
//
listOnMap(data){
this.isThumbnail = false;
console.log("所有水库列表",data);
//
this.$nextTick(() => {
bus.$emit('reservoirMapList',data);
})
getSaveMoney(){
getApplyPriceCount().then((res) => {
},
//
async getDistrict() {
const res = await selectByType("districtType");
this.districtOptions = res.data;
},
//
openVideoAnalysisAndData(item, isShow) {
console.log("为啥不显示", item);
this.positionInfo = item;
this.videoAnalysisDialogVisible = isShow;
},
//
addNewDanger(type, data){
console.log("type",type);
if (type == "add") {
this.dialogData = {};
this.dialogType = "add";
} else {
this.dialogData = data;
this.dialogType = "edit";
}
this.reservoirDialogVisible = true;
},
//3d
changeMap(isshow){
this.isThumbnail=isshow;
},
// 3d
changeThumbnailMap(isshow,index){
console.log('isshow',isshow);
console.log('index',index);
this.isThumbnail=isshow;
this.tabindex=index;
this.saveMonmy=NumbersConvertedToArrays(res.data.data)
})
}
},
// - 访this
created() {},
// - 访DOM
mounted() {
this.getSaveMoney()
},
beforeCreate() {}, // -
beforeMount() {}, // -
beforeUpdate() {}, // -
updated() {}, // -
beforeDestroy() {}, // -
destroyed() {}, // -
activated() {}, //keep-alive
};
</script>
<style lang="less">
@ -215,11 +150,57 @@ export default {
background: url('~@/assets/capabilityCloud/bg.png') no-repeat;
background-size: 100% 100%;
overflow: hidden;
.area-right {
display: flex;
align-items: center;
justify-items: flex-end;
padding-right: 20px;
color: #bed1df;
margin-left: 100px;
span {
width: 28px;
height: 40px;
line-height: 40px;
background: url("~@/assets/capabilityCloud/num_bg.png")
100% 100%;
background-size: 100%;
text-align: center;
font-size: 28px;
margin-right: 3px;
color: #fff;
font-family: DinPro-Bold;
}
.mianJi {
margin-top: 6px;;
margin-right: 3px;
font-size: 22px;
float:right;
}
p {
height: 34px;
display: flex;
align-items: flex-end;
justify-items: center;
font-size: 30px;
}
}
& > .header {
height: 1.04rem;
text-align: center;
background: url('~@/assets/capabilityCloud/header.png') no-repeat;
font-size: 0.46rem;
}
.bottom{
bottom: 12px;
position: absolute;
left: 545px;
width: 732px;
align-items: center;
z-index: 1004;
text-align: center;
height: 1.8rem;
}
.header1 {
top: 78px;
@ -234,7 +215,7 @@ export default {
.reservoir-left {
position: absolute;
left: 0.1rem;
z-index: 1300;
z-index: 1000;
top: 0.8rem;
height: calc(100% - 0.8rem);
}
@ -248,8 +229,8 @@ export default {
.reservoir-map {
position: absolute;
width: 100%;
height: 100%;
// height: 100%;
// bottom:2rem;
}
}
//