Merge branch 'hi-ucs-dev' of http://124.222.94.39:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
wuhongjian 2022-11-28 01:40:51 +08:00
commit a9d9aa7695
5 changed files with 313 additions and 346 deletions

View File

@ -6,7 +6,81 @@
<div class="platform-overview-top"> <div class="platform-overview-top">
<div class="top"><span class="title">组件资源</span></div> <div class="top"><span class="title">组件资源</span></div>
<div class="bottom"> <div class="bottom">
ffffffff <div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="left">
<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>
</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>
</div> </div>
</div> </div>
@ -15,7 +89,26 @@
<div class="platform-overview-mid"> <div class="platform-overview-mid">
<div class="top"><span class="title">应用资源</span></div> <div class="top"><span class="title">应用资源</span></div>
<div class="bottom"> <div class="bottom">
111 <div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="component-services-content-right-right-bottom-right">
<div>
<span>排行</span>
<span>资源名称</span>
<span >提供部门</span>
<span >次数</span>
<span >贡献金额</span>
</div>
<div v-for="(item, index) in dataList" :key="index">
<span>{{ index + 1 }}</span>
<a-tooltip>
<template #title>{{ item.name }}</template>
<span>{{ item.name }}</span>
</a-tooltip>
<span>{{ item.count || 0 }}</span>
<span>{{ item.count || 0 }}</span>
<span>{{ item.count || 0 }}</span>
</div>
</div>
</div> </div>
</div> </div>
@ -23,9 +116,22 @@
<div class="platform-overview-bottom"> <div class="platform-overview-bottom">
<div class="top"><span class="title">基础设施</span></div> <div class="top"><span class="title">基础设施</span></div>
<div class="bottom"> <div class="bottom">
22 <div class="jiesheng"> <img src="../image/xing1.png" /><span style="padding-left:2px;">共节省XX万元 </span><img src="../image/xing1.png" /></div>
<div class="huiketing">
<div style="float:left;width:30%">
<img :src="leftImg" alt="" />
</div> </div>
</div> <div style="float:left;width:70%;margin-top: 30px;">
<span style="font-size:22x">会客厅</span>
<span style="font-size:22px">节省 </span>
<span style="margin-right:10px;font-size:24px; color: #1ef6f5;"> 453</span>
<span style="font-size:20px"> 万元</span>
</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
@ -33,342 +139,36 @@
<script> <script>
//jsjsjson //jsjsjson
//import from ''; //import from '';
const echarts = require("echarts/lib/echarts");
import ResourceOverviewAnimation from "@/views/assertReport/components/ResourceOverviewAnimation.vue"; import ResourceOverviewAnimation from "@/views/assertReport/components/ResourceOverviewAnimation.vue";
export default { export default {
//import使 //import使
components: { components: {
ResourceOverviewAnimation ResourceOverviewAnimation
}, },
created() { created() {
this.updateTime();
if (this.dateTimer) {
clearInterval(this.dateTimer);
} else {
this.dateTimer = setInterval(() => {
this.updateTime();
}, 1000);
}
},
destroyed() {
clearInterval(this.dateTimer);
}, },
mounted() { mounted() {
//
this.queryReservoirNum();
//
this.reservoirDangerEcharts();
}, },
data() { data() {
//
return { return {
selectedPeriod:0, leftImg:require('@/assets/capabilityCloud/resources-left.png'),
chartTitle: "", // dataList:[{name:'第一个',count:43},{name:'第二个',count:43},
timeDimensioninput: 1, {name:'第三个',count:43},{name:'第四个',count:43},{name:'第五个',count:43}]
time:'',
dateTimer:'',
numTotal:{
companyNum:[],
noExamNum:0,
examNum:0.
},
echartsText: "水库险情",
xWarningData:[],//
warningDataList:[],//
allDataList:[],//
xDangerData:[],//
dangerDataList:[],//
}; };
}, },
methods: { methods: {
//
refreshNum(){
},
zeroPadding(num, digit) {
let zero = "";
for (let i = 0; i < digit; i++) {
zero += "0";
}
return (zero + num).slice(-digit);
},
updateTime() {
const currentDate = new Date();
this.time =
this.zeroPadding(currentDate.getHours(), 2) +
":" +
this.zeroPadding(currentDate.getMinutes(), 2) +
":" +
this.zeroPadding(currentDate.getSeconds(), 2);
this.date =
this.zeroPadding(currentDate.getFullYear(), 4) +
"-" +
this.zeroPadding(currentDate.getMonth() + 1, 2) +
"-" +
this.zeroPadding(currentDate.getDate(), 2);
},
//
async queryReservoirNum() {
this.numTotal.companyNum=NumbersConvertedToArrays(432);
this.numTotal.noExamNum=32;
this.numTotal.examNum=400;
// const res = await queryReservoirNum();
// if (res && res.data) {
// this.reservoirNum = NumbersConvertedToArrays(res.data.reservoirNum);
// this.stationNum = res.data.stabNum; //
// this.diseasedDamNum = res.data.riskNum; //
// this.overheadLibraryNum = res.data.topNum; //
// }
},
async reservoirDangerEcharts(){
//echarts
let res=[
{
"districtId": "370202",
"districtName": "市南区",
"reservoirNum": 0,
"districtWarnNum": 2
},
{
"districtId": "370203",
"districtName": "市北区",
"reservoirNum": 0,
"districtWarnNum": 12
},
{
"districtId": "370211",
"districtName": "西海岸新区",
"reservoirNum": 200,
"districtWarnNum": 2
},
{
"districtId": "370212",
"districtName": "崂山区",
"reservoirNum": 19,
"districtWarnNum": 0
},
{
"districtId": "370213",
"districtName": "李沧区",
"reservoirNum": 0,
"districtWarnNum": 0
},
{
"districtId": "370214",
"districtName": "城阳区",
"reservoirNum": 14,
"districtWarnNum": 0
},
{
"districtId": "370215",
"districtName": "即墨区",
"reservoirNum": 0,
"districtWarnNum": 0
},
{
"districtId": "370281",
"districtName": "胶州市",
"reservoirNum": 48,
"districtWarnNum": 0
},
{
"districtId": "370283",
"districtName": "平度市",
"reservoirNum": 141,
"districtWarnNum": 0
},
{
"districtId": "370285",
"districtName": "莱西市",
"reservoirNum": 56,
"districtWarnNum": 1
}
]
res.forEach(item => {
this.xDangerData.push(item.districtName);
this.dangerDataList.push(item.reservoirNum);
});
this.reservoirEcharts(this.xDangerData, this.dangerDataList);
},
reservoirEcharts (xData,dangerList) {
const dataList = {
xAxisData:xData,
dataList2: dangerList, //
};
const alarmEcharts = echarts.init(
document.querySelector(".real-time-danger-chart")
);
const reservoirDangerBar = (chartData) => {
const option = {
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
formatter: function (params) {
var arr1 = [...params].reverse();
let templateList = [];
arr1.map((item) => {
let str = `
<div>
${item.marker}
<span>${item.seriesName}</span>
<span>${item.value}</span>
</div>
`;
templateList.push(str);
});
return templateList.join("");
},
},
dataZoom: [
{
type: "slider",
show: dataList.xAxisData.length > 4,
// xAxisIndex: [0],
handleSize: 0, // 2
startValue: 0, //
endValue: 4, //
height: 5, //
left: "5%", //
right: "4%", //
bottom: 5, //
borderColor: "transparent",
fillerColor: "#269cdb",
borderRadius: 5,
// backgroundColor: '#33384b',//
showDataShadow: false, // auto
showDetail: false, // true
realtime: true, //
filterMode: "filter",
},
//
{
type: "inside",
show: dataList.xAxisData.length > 4,
// xAxisIndex: [0],
start: 0, //1
end: 4, //100
},
],
legend: {
show:false,
itemGap: 30,
itemWidth: 14,
itemHeight: 14,
textStyle: {
fontSize: 16,
color: "#fff",
rich: {
a: {
fontSize: 20,
},
},
},
icon: "rect",
right: 10,
top: 25,
formatter: function (name) {
//return name + " " + `{a|${chartData.districtNumMap[name]}}`;
return name;
},
},
grid: {
left: "3%",
right: "4%",
bottom: "3%",
containLabel: true,
},
xAxis: [
{
type: "category",
data: chartData.xAxisData,
axisLabel: {
color: "#daeef9",
fontSize: 18,
interval: 0,
},
axisLine: {
lineStyle: {
color: "#0f5a92",
},
},
axisTick: {
show: false,
},
},
],
yAxis: [
{
type: "value",
axisLabel: {
color: "#daeef9",
fontSize: 18,
},
minInterval: 1,
axisLine: {
show: false,
},
splitLine: {
lineStyle: {
color: "#0f5a92",
},
},
},
],
series: [
{
name: "企业个数",
type: "bar",
stack: "1",
barWidth: 24,
label: {
show: false,
},
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
{ offset: 0, color: "#125c94" },
{ offset: 1, color: "#00fbff" },
]),
},
data: chartData.dataList2,
},
],
};
return option;
};
alarmEcharts.setOption(reservoirDangerBar(dataList));
},
sortBy(field) {
//
return (x, y) => {
return x[field] - y[field];
};
},
}, },
beforeCreate() {}, // -
beforeMount() {}, // -
beforeUpdate() {}, // -
updated() {}, // -
beforeDestroy() {}, // -
activated() {}, //keep-alive
}; };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
@ -381,6 +181,12 @@ export default {
top: -100%; top: -100%;
} }
} }
.jiesheng{
text-align: center;
margin-bottom: 5px;
color: #f4fcfe; border-color: #107bb0;
box-shadow: 1px 1px 5px 1px RGB(16, 123, 176, 0.8) inset
}
.reservoir-survey { .reservoir-survey {
@ -394,7 +200,7 @@ export default {
.platform-overview-top { .platform-overview-top {
width: 100%; width: 100%;
height: 4.00rem; height: 3.8rem;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7); border: 1px solid rgba(0, 108, 188, 0.7);
@ -410,17 +216,93 @@ export default {
text-align: center; text-align: center;
} }
.bottom { .bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.2rem;
padding: 0.1rem;
.left {
display: flex;
flex-direction: column;
align-items: center;
.item {
width: 100%;
height: 0.6rem;
background: linear-gradient(
to bottom,
rgba(33, 54, 88, 0.5),
rgba(33, 54, 88, 0)
);
margin-top: 0.14rem;
display: flex;
justify-content: space-between;
align-items: center;
.content1 {
width: 1.8rem;
.img {
width: 0.36rem;
height: 0.36rem;
margin-left: 0.2rem;
margin-right: 0.2rem;
text-decoration: none;
outline: none;
-webkit-transition: all 800ms ease-out;
-moz-transition: all 800ms ease-out;
transition: all 800ms ease-out;
}
.img:hover {
width: 0.4rem;
height: 0.4rem;
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
transform: rotateY(180deg);
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
transition-delay: 0.2s;
}
.num {
font-size: 18px;
color: #1ef6f5;
margin-left: 10px;
}
}
.content {
width: 1.5rem;
.name {
font-size: 14px;
color: #fff;
}
.num {
font-size: 18px;
color: #1ef6f5;
}
}
}
.item:nth-of-type(1) {
margin-top: 10px;
.img {
background: url('~@/assets/capabilityCloud/zyys.png') no-repeat;
background-size: 100% 100%;
}
}
.item:nth-of-type(2) .img {
background: url('~@/assets/capabilityCloud/jszyys.png') no-repeat;
background-size: 100% 100%;
}
.item:nth-of-type(3) .img {
background: url('~@/assets/capabilityCloud/tyyys.png') no-repeat;
background-size: 100% 100%;
}
.item:nth-of-type(4) .img {
background: url('~@/assets/capabilityCloud/jszyys.png') no-repeat;
background-size: 100% 100%;
}
}
} }
} }
.platform-overview-mid { .platform-overview-mid {
margin-top:20px; margin-top:20px;
width: 100%; width: 100%;
height: 3.00rem; height: 2.8rem;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7); border: 1px solid rgba(0, 108, 188, 0.7);
@ -434,20 +316,68 @@ export default {
background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat; background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
text-align: center; text-align: center;
margin-bottom: 8px;
} }
.bottom { .bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.2rem;
align-items: center;
padding: 0rem 0.1rem;
.component-services-content-right-right-bottom-right {
width: 100%;
font-size: 0.16rem;
border: 0.01rem rgba(0, 108, 188, 0.7) solid;
color: rgba(255, 255, 255, 0.8);
& > div {
height: 0.32rem;
& > span {
display: inline-block;
height: 0.32rem;
line-height: 0.32rem;
border-right: 0.01rem rgba(0, 108, 188, 0.7) solid;
border-bottom: 0.01rem rgba(0, 108, 188, 0.7) solid;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
}
& > span:first-child {
width: 0.47rem;
text-align: center;
}
& > span:nth-child(2) {
width: 1.47rem;
padding-left: 0.05rem;
}
& > span:nth-child(3) {
width: 0.8rem;
padding-left: 0.05rem;
}
& > span:nth-child(4) {
width: 1rem;
padding-left: 0.05rem;
}
& > span:last-child {
width: 0.8rem;
color: #1ffefd;
text-align: center;
border-right: 0;
}
}
& > div:first-child {
color: #1ffefd;
background: #27528c;
}
}
} }
} }
.platform-overview-bottom { .platform-overview-bottom {
margin-top:20px; margin-top:20px;
width: 100%; width: 100%;
height: 2.80rem; height: 1.8rem;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7); border: 1px solid rgba(0, 108, 188, 0.7);
@ -463,10 +393,31 @@ export default {
text-align: center; text-align: center;
} }
.bottom { .bottom {
display: flex;
justify-content: space-between;
align-items: center; align-items: center;
padding: 0.2rem; padding: 0.1rem;
.huiketing{
display: flex;
img {
width: 90px;
width: 90px;
position: absolute;
// left: 50%;
// bottom: -1.38rem;
// margin-left: -45%;
animation: move 5s linear 0s infinite;
@keyframes move {
from {
transform: rotateY(360deg);
}
to {
transform: rotateY(0deg);
}
}
}
}
} }
} }

View File

@ -217,7 +217,7 @@ export default {
.platform-overview-top { .platform-overview-top {
width: 100%; width: 100%;
height: 7rem; height: 6.8rem;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7); border: 1px solid rgba(0, 108, 188, 0.7);
@ -233,19 +233,23 @@ export default {
text-align: center; text-align: center;
} }
.bottom { .bottom {
margin-top: 20px; margin-top: 4px;
// margin-top:10px; // margin-top:10px;
width: 100%; width: 100%;
display: table; display: table;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
:hover.bottom-item{
background: rgba(0, 108, 188, 0.5);
}
.bottom-item { .bottom-item {
border:1px solid; background: rgba(0, 108, 188, 0.4);
border-radius: 3px;
margin: 4px 5px;
.inner-title { .inner-title {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
margin-left: 4px; margin-right: 5px;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;
@ -254,24 +258,24 @@ export default {
line-height: 27px; line-height: 27px;
background: linear-gradient( background: linear-gradient(
90deg, 90deg,
#0873c1 0, #041d2f 0,
rgba(8, 115, 193, 0) 100% rgba(8, 115, 193, 0) 90%
); );
color: #1ffefd; color: #1ffefd;
width: auto; width: auto;
padding-left: 5px; padding-left: 5px;
} }
} }
text-align: center;
display: table-cell; display: inline-table;
width: 50%; width: 48%;
height: 3rem; height: 3rem;
.left-list { .left-list {
text-align: center; text-align: center;
color: #fff; color: #fff;
width: 100%; width: 100%;
height: 24px; height: 24px;
margin-left: 4px; margin-right: 10px;
margin-top: 5px; margin-top: 5px;
font-size: 14px; font-size: 14px;
.left-list1 { .left-list1 {
@ -304,7 +308,7 @@ export default {
.platform-overview-bottom { .platform-overview-bottom {
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
height: 2rem; height: 1.8rem;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
border: 1px solid rgba(0, 108, 188, 0.7); border: 1px solid rgba(0, 108, 188, 0.7);
@ -318,6 +322,7 @@ export default {
background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat; background: url(~@/assets/capabilityCloud/top_bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
text-align: center; text-align: center;
margin-bottom: 20px;
} }
.bottom { .bottom {
margin-top: 20px; margin-top: 20px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

View File

@ -7,7 +7,11 @@
<div class="header"> <div class="header">
<span class="title" @click="goHome">城市云脑通用能力服务平台</span> <span class="title" @click="goHome">城市云脑通用能力服务平台</span>
</div> </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>
<!--左侧--> <!--左侧-->
<div class="reservoir-left"> <div class="reservoir-left">
<!-- 左侧内容 --> <!-- 左侧内容 -->
@ -217,7 +221,14 @@ export default {
background: url('~@/assets/capabilityCloud/header.png') no-repeat; background: url('~@/assets/capabilityCloud/header.png') no-repeat;
font-size: 0.46rem; font-size: 0.46rem;
} }
.header1 {
top: 78px;
position: absolute;
left: 795px;
align-items: center;
z-index: 1004;
text-align: center;
}
//position: relative; //position: relative;
.reservoir-left { .reservoir-left {