bug修复

This commit is contained in:
wuhongjian 2022-11-29 11:57:33 +08:00
parent b8e51270fd
commit 953fe9e18f
9 changed files with 1114 additions and 1194 deletions

View File

@ -2,13 +2,13 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23 * @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-27 23:42:04 * @LastEditTime: 2022-11-29 11:21:41
* @Description: 系统静态参数配置 * @Description: 系统静态参数配置
*/ */
var _global = {} var _global = {}
var CONFIGITEM = { var CONFIGITEM = {
// version: 'qingdao', // version: 'qingdao', //
version: 'xihaian', // 西 // version: 'xihaian', // 西
// version: 'dev', // // version: 'dev', //
// version: 'zhanTingDev', // dev (2022-09-13:) // version: 'zhanTingDev', // dev (2022-09-13:)
// version: 'qingdao', // // version: 'qingdao', //

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,10 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2022-11-28 16:43:10
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-29 11:35:36
* @Description: 告诉大家这是什么
*/
import request from '@/utils/request' import request from '@/utils/request'
// //
export function getDistrictFundStatement() { export function getDistrictFundStatement() {
@ -8,65 +15,65 @@ export function getDistrictFundStatement() {
} }
// //
export function getComponentFundStatement() { export function getComponentFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getComponentFundStatement', url: '/processForm/tabilityapplication/getComponentFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getResourceFundStatement() { export function getResourceFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getResourceFundStatement', url: '/processForm/tabilityapplication/getResourceFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getInfrastructureFundStatement() { export function getInfrastructureFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getInfrastructureFundStatement', url: '/processForm/tabilityapplication/getInfrastructureFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getProvideDeptFundStatement() { export function getProvideDeptFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getProvideDeptFundStatement', url: '/processForm/tabilityapplication/getProvideDeptFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getApplyDeptFundStatement() { export function getApplyDeptFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getApplyDeptFundStatement', url: '/processForm/tabilityapplication/getApplyDeptFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getProvideDistrictFundStatement() { export function getProvideDistrictFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getProvideDistrictFundStatement', url: '/processForm/tabilityapplication/getProvideDistrictFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function getApplyDistrictFundStatement() { export function getApplyDistrictFundStatement() {
return request({ return request({
url: '/processForm/tabilityapplication/getApplyDistrictFundStatement', url: '/processForm/tabilityapplication/getApplyDistrictFundStatement',
method: 'get', method: 'get',
}) })
} }
// //
export function selectTotal() { export function selectTotal() {
return request({ return request({
url: '/resource/selectTotal', url: '/resource/selectTotal',
method: 'get', method: 'get',
}) })
} }
// //
// //
export function getApplyPriceCount() { export function getApplyPriceCount() {
return request({ return request({
url: '/processForm/tabilityapplication/getApplyPriceCount', url: '/processForm/tabilityapplication/getApplyPriceCount',
method: 'get', method: 'get',
}) })
} }

View File

@ -1,54 +1,49 @@
<template> <template>
<div class="right-survey"> <div class="right-survey">
<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"> <div
<div v-for="(item, index) in servicesNum"
v-for="(item, index) in servicesNum" :key="index"
:key="index" class="component-services-content-right-left-content-son"
class="component-services-content-right-left-content-son" >
> <p>{{ item.type }}</p>
<p>{{ item.type }}</p> <p class="num">{{ item.count }}</p>
<p class="num">{{ item.count }}</p>
</div>
</div> </div>
</div> </div>
</div> </div>
</template> </div>
</template>
<script>
import { <script>
selectTotal import { selectTotal } from '@/api/assertReport'
} from '@/api/assertReport'
export default { export default {
components: {}, components: {},
mounted() { mounted() {
this.selectAllTotal() this.selectAllTotal()
}, },
data() { data() {
// //
return { return {
servicesNum: [], servicesNum: [],
} }
}, },
methods: {
selectAllTotal(){ methods: {
selectAllTotal() {
selectTotal().then((res) => { selectTotal().then((res) => {
this.servicesNum=res.data.data.total this.servicesNum = res.data.data.total.filter(
(item) => item.type !== '知识库'
)
}) })
} },
},
} }
} </script>
</script> <style lang="less" scoped>
<style lang='less' scoped> @keyframes turn {
@keyframes turn {
0% { 0% {
border-image: linear-gradient(to right, #003194, #00ffea) 1; border-image: linear-gradient(to right, #003194, #00ffea) 1;
} }
@ -69,7 +64,7 @@
width: 6px; width: 6px;
/*height: 4px;*/ /*height: 4px;*/
} }
.top5-content::-webkit-scrollbar-thumb { .top5-content::-webkit-scrollbar-thumb {
background-color: #00deff; background-color: #00deff;
} }
@ -86,14 +81,12 @@
} }
} }
.right-survey { .right-survey {
height: 100%; height: 100%;
color: #f0fafa; color: #f0fafa;
font-size: 18px; font-size: 18px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.platform-overview-bottom { .platform-overview-bottom {
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
@ -108,24 +101,24 @@
transition: all 100ms ease-out; transition: all 100ms ease-out;
.top { .top {
font-size: 24px; font-size: 24px;
background: url('~@/assets/capabilityCloud/infrastructure_title.png') no-repeat; background: url('~@/assets/capabilityCloud/infrastructure_title.png')
no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
text-align: center; text-align: center;
} }
.bottom { .bottom {
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding:0rem 0.2rem; padding: 0rem 0.2rem;
.component-services-content-right-left-content-son { .component-services-content-right-left-content-son {
background: url('~@/assets/capabilityCloud/Component_services_snum.png') background: url('~@/assets/capabilityCloud/Component_services_snum.png')
no-repeat; no-repeat;
background-size: 1.1rem 0.59rem; background-size: 1.1rem 0.59rem;
background-position: center; background-position: center;
text-align: center; text-align: center;
& > p:first-child { & > p:first-child {
color: #ffffff; color: #ffffff;
font-size: 0.16rem; font-size: 0.16rem;
@ -143,9 +136,8 @@
} }
} }
.platform-overview-bottom:hover { .platform-overview-bottom:hover {
border: 2px solid; border: 2px solid;
animation: turn 5s linear infinite; animation: turn 5s linear infinite;
}
} }
} </style>
</style>

View File

@ -1,4 +1,3 @@
<template> <template>
<div class="right-survey"> <div class="right-survey">
<!--最上面 部门排行榜--> <!--最上面 部门排行榜-->
@ -7,7 +6,7 @@
<div class="bottom1"> <div class="bottom1">
<div class="bottom-item"> <div class="bottom-item">
<div class="inner-title"> <div class="inner-title">
<p style="width: 220px">市级部门共享贡献资金排行</p> <p style="width: 220px">市级部门共享节省资金排行</p>
</div> </div>
<div class="left-list"> <div class="left-list">
<div class="left-list1">排行</div> <div class="left-list1">排行</div>
@ -87,7 +86,7 @@
</div> --> </div> -->
<div class="bottom-item"> <div class="bottom-item">
<div class="inner-title"> <div class="inner-title">
<p style="width: 220px">市级部门审评节省资金排行</p> <p style="width: 220px">市级部门申请节省资金排行</p>
</div> </div>
<div class="left-list"> <div class="left-list">
<div class="left-list1">排行</div> <div class="left-list1">排行</div>
@ -115,7 +114,7 @@
<div class="bottom2"> <div class="bottom2">
<div class="bottom-item"> <div class="bottom-item">
<div class="inner-title"> <div class="inner-title">
<p style="width: 220px">区市部门共享贡献资金排行</p> <p style="width: 220px">区市部门共享节省资金</p>
</div> </div>
<div class="left-list"> <div class="left-list">
<div class="left-list1">序号</div> <div class="left-list1">序号</div>
@ -146,7 +145,7 @@
</div> </div>
<div class="bottom-item"> <div class="bottom-item">
<div class="inner-title"> <div class="inner-title">
<p style="width: 220px">区市部门申请节省资金排行</p> <p style="width: 220px">区市部门申请节省资金</p>
</div> </div>
<div class="left-list"> <div class="left-list">
<div class="left-list1">序号</div> <div class="left-list1">序号</div>
@ -195,126 +194,126 @@
</template> </template>
<script> <script>
import { import {
getProvideDeptFundStatement, getProvideDeptFundStatement,
getApplyDeptFundStatement, getApplyDeptFundStatement,
getProvideDistrictFundStatement, getProvideDistrictFundStatement,
getApplyDistrictFundStatement, getApplyDistrictFundStatement,
selectTotal, selectTotal,
} from '@/api/assertReport' } from '@/api/assertReport'
export default { export default {
components: {}, components: {},
created() {}, created() {},
destroyed() {}, unmounted() {},
mounted() { mounted() {
this.getgetProvideDeptFund() this.getgetProvideDeptFund()
this.getApplyDeptFund() this.getApplyDeptFund()
this.getProvideDistrict() this.getProvideDistrict()
this.getApplyDistrictFund() this.getApplyDistrictFund()
this.selectAllTotal() this.selectAllTotal()
}, },
data() { data() {
// //
return { return {
// //
top5DistrictList: [], top5DistrictList: [],
// //
top5DeptFundList: [], top5DeptFundList: [],
// //
top5eDistrictFundList: [], top5eDistrictFundList: [],
// //
top5ApplyDistrictList: [], top5ApplyDistrictList: [],
servicesNum: [], servicesNum: [],
} }
}, },
methods: { methods: {
getgetProvideDeptFund() { getgetProvideDeptFund() {
getProvideDeptFundStatement().then((res) => { getProvideDeptFundStatement().then((res) => {
let result = res.data.data let result = res.data.data
if (result.length > 0) { if (result.length > 0) {
for (let i = 0; i < result.length; i++) { for (let i = 0; i < result.length; i++) {
if (i === 0) { if (i === 0) {
result[i].img = require('../image/one.png') result[i].img = require('../image/one.png')
} }
if (i === 1) { if (i === 1) {
result[i].img = require('../image/two.png') result[i].img = require('../image/two.png')
} }
if (i === 2) { if (i === 2) {
result[i].img = require('../image/three.png') result[i].img = require('../image/three.png')
}
} }
} }
} this.top5DistrictList = result
this.top5DistrictList = result })
}) },
}, getApplyDeptFund() {
getApplyDeptFund() { getApplyDeptFundStatement().then((res) => {
getApplyDeptFundStatement().then((res) => { let result = res.data.data
let result = res.data.data if (result.length > 0) {
if (result.length > 0) { for (let i = 0; i < result.length; i++) {
for (let i = 0; i < result.length; i++) { if (i === 0) {
if (i === 0) { result[i].img = require('../image/one.png')
result[i].img = require('../image/one.png') }
} if (i === 1) {
if (i === 1) { result[i].img = require('../image/two.png')
result[i].img = require('../image/two.png') }
} if (i === 2) {
if (i === 2) { result[i].img = require('../image/three.png')
result[i].img = require('../image/three.png') }
} }
} }
} this.top5DeptFundList = result
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
})
},
}, },
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> </script>
<style lang='less' scoped> <style lang="less" scoped>
@keyframes turn { @keyframes turn {
0% { 0% {
border-image: linear-gradient(to right, #003194, #00ffea) 1; border-image: linear-gradient(to right, #003194, #00ffea) 1;
@ -332,212 +331,215 @@ export default {
border-image: linear-gradient(to right, #003194, #00ffea) 1; border-image: linear-gradient(to right, #003194, #00ffea) 1;
} }
} }
.top5-content::-webkit-scrollbar { .top5-content::-webkit-scrollbar {
width: 6px; width: 6px;
/*height: 4px;*/ /*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%; .top5-content::-webkit-scrollbar-thumb {
background-color: #00deff;
} }
} .map-search-result::-webkit-scrollbar-track,
.right-survey { .top5-content::-webkit-scrollbar-track {
width: 620px; background-color: #424748;
height: 100%; }
color: #f0fafa; @keyframes topup50 {
font-size: 18px; from {
display: flex; top: 50%;
flex-direction: column; }
to {
top: -100%;
}
}
.right-survey {
width: 620px;
height: 100%;
color: #f0fafa;
font-size: 18px;
display: flex;
flex-direction: column;
.platform-overview-top { .platform-overview-top {
width: 100%;
height: 9.9rem;
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/infrastructure_title.png') no-repeat;
background-size: 100% 100%;
text-align: center;
}
.bottom1 {
margin-top: 10px;
width: 100%; width: 100%;
display: table; height: 9.9rem;
justify-content: space-between;
align-items: center;
height: 1.8rem;
.bottom-item {
width: 98%;
}
}
.bottom2 {
margin-top: 10px;
// margin-top:10px;
width: 100%;
display: table;
justify-content: space-between;
align-items: center;
height: 4.0rem;
.bottom-item {
width: 48%;
}
}
:hover.bottom-item {
background: rgba(0, 108, 188, 0.5);
}
.bottom-item {
height: 100%;
overflow-y: auto;
background: rgba(0, 108, 188, 0.2); background: rgba(0, 108, 188, 0.2);
border-radius: 2px; border-radius: 2px;
margin: 2px 5px; border: 1px solid rgba(0, 108, 188, 0.7);
border: 1px solid #10496f; text-decoration: none;
outline: none;
.inner-title { -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/infrastructure_title.png')
no-repeat;
background-size: 100% 100%;
text-align: center;
}
.bottom1 {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; width: 100%;
margin-right: 5px; // display: flex;
justify-content: space-between;
font-weight: bold; align-items: center;
color: #ffffff; height: 2.5rem;
p { overflow-y: auto;
font-size: 16px; .bottom-item {
line-height: 27px; width: 98%;
background: linear-gradient( }
90deg, }
#041d2f 0, .bottom2 {
rgba(8, 115, 193, 0) 90% margin-top: 10px;
); // margin-top:10px;
color: #1ffefd; width: 100%;
width: auto; display: table;
padding-left: 5px; justify-content: space-between;
align-items: center;
height: 4rem;
.bottom-item {
width: 48%;
} }
} }
display: inline-table; :hover.bottom-item {
background: rgba(0, 108, 188, 0.5);
}
.bottom-item {
height: 100%;
overflow-y: auto;
background: rgba(0, 108, 188, 0.2);
border-radius: 2px;
margin: 2px 5px;
border: 1px solid #10496f;
.left-list { .inner-title {
text-align: center; margin-top: 10px;
color: #fff; margin-bottom: 10px;
width: 100%; margin-right: 5px;
height: 26px;
margin-right: 10px; font-weight: bold;
margin-top: 5px; color: #ffffff;
font-size: 16px; p {
.left-list1 { font-size: 16px;
font-size: 16x; line-height: 27px;
float: left; background: linear-gradient(
width: 22%; 90deg,
height: 0.32rem; #041d2f 0,
line-height: 0.32rem; rgba(8, 115, 193, 0) 90%
overflow: hidden; );
text-overflow: ellipsis; color: #1ffefd;
white-space: nowrap; width: auto;
-webkit-line-clamp: 1; padding-left: 5px;
-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: 16px;
float: left;
width: 30%;
&:hover {
color: rgb(0 255 255);
} }
} }
.active-item {
cursor: pointer; display: inline-table;
font-size: 14px;
float: left; .left-list {
width: 40%; text-align: center;
color: rgb(0 255 255); color: #fff;
font-weight: bold; width: 100%;
text-decoration: underline; height: 26px;
margin-right: 10px;
margin-top: 5px;
font-size: 16px;
.left-list1 {
font-size: 16x;
float: left;
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: 16px;
float: left;
width: 30%;
&:hover {
color: rgb(0 255 255);
}
}
.active-item {
cursor: pointer;
font-size: 14px;
float: left;
width: 40%;
color: rgb(0 255 255);
font-weight: bold;
text-decoration: underline;
}
} }
} }
} }
} .platform-overview-top:hover {
.platform-overview-top:hover { border: 2px solid;
border: 2px solid; animation: turn 5s linear infinite;
animation: turn 5s linear infinite;
}
.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/infrastructure_title.png') no-repeat;
background-size: 100% 100%;
text-align: center;
} }
.bottom { .platform-overview-bottom {
margin-top: 20px; margin-top: 20px;
display: flex; width: 100%;
justify-content: space-between; height: 1.7rem;
align-items: center; background: rgba(0, 108, 188, 0.2);
padding: 0rem 0.2rem; border-radius: 2px;
.component-services-content-right-left-content-son { border: 1px solid rgba(0, 108, 188, 0.7);
background: url('~@/assets/capabilityCloud/Component_services_snum.png') 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/infrastructure_title.png')
no-repeat; no-repeat;
background-size: 1.1rem 0.59rem; background-size: 100% 100%;
background-position: center;
text-align: center; text-align: center;
& > p:first-child { }
color: #ffffff; .bottom {
font-size: 0.16rem; margin-top: 20px;
line-height: 0.16rem; display: flex;
margin-bottom: 0.12rem; justify-content: space-between;
} align-items: center;
& > p:last-child { padding: 0rem 0.2rem;
color: #1ef6f5; .component-services-content-right-left-content-son {
font-size: 0.28rem; background: url('~@/assets/capabilityCloud/Component_services_snum.png')
line-height: 0.28rem; no-repeat;
padding-bottom: 0.24rem; background-size: 1.1rem 0.59rem;
margin: 0; 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: 0;
}
} }
} }
} }
.platform-overview-bottom:hover {
border: 2px solid;
animation: turn 5s linear infinite;
}
} }
.platform-overview-bottom:hover {
border: 2px solid;
animation: turn 5s linear infinite;
}
}
</style> </style>

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: hisense.xiaoshangqing * @Author: hisense.xiaoshangqing
* @Date: 2022-7-26 10:00:48 * @Date: 2022-7-26 10:00:48
* @LastEditors: xiaoshangqing * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-07-27 16:56:55 * @LastEditTime: 2022-11-29 11:47:26
* @Description: 水库专题首页缩略图 --> * @Description: 水库专题首页缩略图 -->
<template> <template>
<div class="river-course-view"> <div class="river-course-view">
@ -13,516 +13,490 @@
<div class="topic-animation4 display-animation4"></div> <div class="topic-animation4 display-animation4"></div>
<div class="topic-animation5 display-animation5"></div> <div class="topic-animation5 display-animation5"></div>
<div class="topic-animation6 display-animation6"></div> <div class="topic-animation6 display-animation6"></div>
</div> </div>
</template> </template>
<script> <script>
import { import { getProvideDistrictFundStatement } from '@/api/assertReport'
getDistrictFundStatement import axios from 'axios'
} from '@/api/assertReport' const echarts = require('echarts')
import axios from 'axios' export default {
const echarts = require("echarts"); //import使
export default { components: {},
//import使 data() {
components: {}, //
data() { return {
// districtData: [
return { {
name: '市南区',
value: [120.395966, 36.000892],
},
{
name: '市北区',
value: [120.355026, 36.083819],
},
{
name: '李沧区',
value: [120.421236, 36.188023],
},
{
name: '崂山区',
value: [120.587393, 36.199569],
},
{
name: '城阳区',
value: [120.369135, 36.266833],
},
{
name: '即墨区',
value: [120.517352, 36.490847],
},
{
name: '莱西市',
value: [120.426226, 36.86009],
},
{
name: '胶州市',
value: [120.010202, 36.235878],
},
{
name: '平度市',
value: [119.959012, 36.788828],
},
{
name: '西海岸新区',
value: [119.895518, 35.875138],
},
],
}
},
districtData: [ mounted() {
{ this.findAllInfo()
name: "市南区", },
value: [120.395966, 36.000892], //
}, methods: {
{ findAllInfo() {
name: "市北区", getProvideDistrictFundStatement().then((res) => {
value: [120.355026, 36.083819], 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++) {
name: "李沧区", if (resulrtData[i].districtName === districtData[j].name) {
value: [120.421236, 36.188023], districtData[j].num = resulrtData[i].applyPrice + '万'
}
},
{
name: "崂山区",
value: [120.587393, 36.199569],
},
{
name: "城阳区",
value: [120.369135, 36.266833],
},
{
name: "即墨区",
value: [120.517352, 36.490847],
},
{
name: "莱西市",
value: [120.426226, 36.86009],
},
{
name: "胶州市",
value: [120.010202, 36.235878],
},
{
name: "平度市",
value: [119.959012, 36.788828],
},
{
name: "西海岸",
value: [119.895518, 35.875138],
},
],
};
},
mounted() {
this.findAllInfo();
},
//
methods: {
findAllInfo(){
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
} }
} }
} console.log('上图数据', districtData)
this.initMap(districtData)
this.initMap(districtData) })
}) },
initMap(data) {
this.loadedDataUrl = './static/qingdao.json'
let _this = this
axios.get(_this.loadedDataUrl, {}).then((geoJson) => {
_this.myChart = echarts.init(_this.$refs.qdCityMap)
echarts.registerMap('qingdao', geoJson.data)
const imgBack = new Image()
imgBack.src = './static/assets/map-back.png'
const img = new Image()
img.src = './static/assets/echarts-map-bak.png'
const typeImg = new Image()
typeImg.src = './static/assets/reservoir-type-bak.png'
_this.option = {
}, visualMap: {
initMap(data) { show: false,
this.loadedDataUrl = "./static/qingdao.json"; max: 100,
let _this=this seriesIndex: 1,
axios.get(_this.loadedDataUrl, {}) .then(geoJson =>{ inRange: {
color: ['#000000', 'yellow', 'pink'],
_this.myChart = echarts.init(_this.$refs.qdCityMap);
echarts.registerMap("qingdao", geoJson.data);
const imgBack = new Image();
imgBack.src = "./static/assets/map-back.png";
const img = new Image();
img.src = "./static/assets/echarts-map-bak.png";
const typeImg = new Image();
typeImg.src = "./static/assets/reservoir-type-bak.png";
_this.option = {
visualMap: {
show: false,
max: 100,
seriesIndex: 1,
inRange: {
color: ["#000000", "yellow", "pink"],
},
},
geo: [
{
map: "qingdao",
roam: false, //
aspectScale: 0.8,
zoom: 1.1, //
top: 100,
z: 6,
label: {
show: true, //
textStyle: {
color: "#ffffff", //
fontSize: 16, //
fontFamily: "微软雅黑",
backgroundColor: "rgba(0,0,0,0)", //0
},
}, },
itemStyle: { },
borderColor: "#25e8ff", geo: [
borderWidth: 2, {
/* areaColor: "#004d8e", //rgba设置透明度0 map: 'qingdao',
roam: false, //
aspectScale: 0.8,
zoom: 1.1, //
top: 100,
z: 6,
label: {
show: true, //
textStyle: {
color: '#ffffff', //
fontSize: 16, //
fontFamily: '微软雅黑',
backgroundColor: 'rgba(0,0,0,0)', //0
},
},
itemStyle: {
borderColor: '#25e8ff',
borderWidth: 2,
/* areaColor: "#004d8e", //rgba设置透明度0
shadowColor: "#10daff", shadowColor: "#10daff",
shadowBlur: 10, shadowBlur: 10,
shadowOffsetX: 10, shadowOffsetX: 10,
opacity: 0.53, */ opacity: 0.53, */
areaColor: { areaColor: {
image: img, image: img,
repeat: "repeat", repeat: 'repeat',
},
},
emphasis: {
disabled: false,
focus: "none",
itemStyle: {
color: null,
},
label: {
show: true,
//color: "#fff",
},
},
},
{
map: "qingdao",
aspectScale: 0.8,
roam: false, //
zoom: 1.1, //
top: 105,
z: 4,
itemStyle: {
areaColor: "#1864a5",
borderColor: "transparent",
},
silent: true,
tooltip: {
show: false,
},
},
{
map: "qingdao",
aspectScale: 0.8,
roam: false, //
zoom: 1.1, //
top: 110,
z: 3,
itemStyle: {
areaColor: "#1864a5",
borderColor: "transparent",
borderWidth: 2,
},
silent: true,
tooltip: {
show: false,
},
},
{
map: "qingdao",
aspectScale: 0.8,
roam: true, //
zoom: 1.1, //
top: 115,
z: 2,
itemStyle: {
areaColor: "#1864a5",
//borderColor: "#0f3866",
borderColor: "transparent",
borderWidth: 1,
shadowColor: "#808080", //
shadowBlur: "10",
},
silent: true,
tooltip: {
show: false,
},
},
],
series: [
// {
// tooltip: {
// show: false,
// },
// type: "effectScatter",
// coordinateSystem: "geo",
// rippleEffect: {
// scale: 3,
// brushType: "stroke",
// },
// showEffectOn: "render",
// itemStyle: {
// normal: {
// shadowColor: "#ffffff",
// shadowBlur: 10,
// shadowOffsetX: 0,
// shadowOffsetY: 0,
// color: "#df1818",
// },
// },
// label: {
// normal: {
// color: "#fff",
// },
// },
// symbol: "circle",
// symbolSize: [10, 5],
// data:data, //
// zlevel: 1,
// },
// {
// type: "scatter",
// coordinateSystem: "geo",
// symbol: function (value, params) {
// return 'image://static/assets/warning-reservoir.png';
// },
// symbolSize: [25, 35],
// symbolOffset: [0, -20],
// z: 9999,
// data:data, //
// },
{
type: 'scatter',
coordinateSystem: 'geo',
label: {
normal: {
show: true,
formatter: function (params) {
var name = params.data.num;
var text = `{fline|${name}}`;
return text;
},
color: '#fff',
rich: {
fline: {
padding: [0, 25],
color: '#dcc52f',
textShadowColor: '#030615',
textShadowBlur: '0',
textShadowOffsetX: 1,
textShadowOffsetY: 1,
fontSize: 14,
fontWeight: 400,
},
tline: {
padding: [0, 27],
color: '#afd31d',
fontSize: 12,
},
}, },
}, },
emphasis: { emphasis: {
show: true, disabled: false,
focus: 'none',
itemStyle: {
color: null,
},
label: {
show: true,
//color: "#fff",
},
}, },
}, },
itemStyle: { {
color: '#e3e00a', map: 'qingdao',
aspectScale: 0.8,
roam: false, //
zoom: 1.1, //
top: 105,
z: 4,
itemStyle: {
areaColor: '#1864a5',
borderColor: 'transparent',
},
silent: true,
tooltip: {
show: false,
},
}, },
symbol: "image://static/assets/reservoir-type-bak.png", {
symbolSize: [84, 28], map: 'qingdao',
symbolOffset: [0, -30], aspectScale: 0.8,
z: 999, roam: false, //
data: data, // zoom: 1.1, //
}, top: 110,
z: 3,
itemStyle: {
areaColor: '#1864a5',
], borderColor: 'transparent',
}; borderWidth: 2,
_this.myChart.setOption(_this.option); },
_this.myChart.on("click", (params) => { silent: true,
// console.log("", params); tooltip: {
// // show: false,
// //name },
// const index = _this.districtData.findIndex((item) => { },
// return item.name === params.name ; {
// }); map: 'qingdao',
// //console.log('rrrrrrrr5555',index); aspectScale: 0.8,
// let districtObject = { roam: true, //
// name:params.name, zoom: 1.1, //
// longitude:_this.districtData[index].value[0], top: 115,
// latitude:_this.districtData[index].value[1], z: 2,
// }; itemStyle: {
// _this.$emit('jumpIntoMap',districtObject); areaColor: '#1864a5',
}); //borderColor: "#0f3866",
}); borderColor: 'transparent',
borderWidth: 1,
shadowColor: '#808080', //
shadowBlur: '10',
},
silent: true,
tooltip: {
show: false,
},
},
],
series: [
// {
// tooltip: {
// show: false,
// },
// type: "effectScatter",
// coordinateSystem: "geo",
// rippleEffect: {
// scale: 3,
// brushType: "stroke",
// },
// showEffectOn: "render",
// itemStyle: {
// normal: {
// shadowColor: "#ffffff",
// shadowBlur: 10,
// shadowOffsetX: 0,
// shadowOffsetY: 0,
// color: "#df1818",
// },
// },
// label: {
// normal: {
// color: "#fff",
// },
// },
// symbol: "circle",
// symbolSize: [10, 5],
// data:data, //
// zlevel: 1,
// },
// {
// type: "scatter",
// coordinateSystem: "geo",
// symbol: function (value, params) {
// return 'image://static/assets/warning-reservoir.png';
// },
// symbolSize: [25, 35],
// symbolOffset: [0, -20],
// z: 9999,
// data:data, //
// },
{
type: 'scatter',
coordinateSystem: 'geo',
label: {
normal: {
show: true,
formatter: function (params) {
var name = params.data.num
var text = `{fline|${name}}`
return text
},
color: '#fff',
rich: {
fline: {
padding: [0, 25],
color: '#dcc52f',
textShadowColor: '#030615',
textShadowBlur: '0',
textShadowOffsetX: 1,
textShadowOffsetY: 1,
fontSize: 14,
fontWeight: 400,
},
tline: {
padding: [0, 27],
color: '#afd31d',
fontSize: 12,
},
},
},
emphasis: {
show: true,
},
},
itemStyle: {
color: '#e3e00a',
},
symbol: 'image://static/assets/reservoir-type-bak.png',
symbolSize: [84, 28],
symbolOffset: [0, -30],
z: 999,
data: data, //
},
],
}
_this.myChart.setOption(_this.option)
_this.myChart.on('click', (params) => {
// console.log("", params);
// //
// //name
// const index = _this.districtData.findIndex((item) => {
// return item.name === params.name ;
// });
// //console.log('rrrrrrrr5555',index);
// let districtObject = {
// name:params.name,
// longitude:_this.districtData[index].value[0],
// latitude:_this.districtData[index].value[1],
// };
// _this.$emit('jumpIntoMap',districtObject);
})
})
},
}, },
beforeCreate() {}, // -
beforeMount() {}, // -
}, beforeUpdate() {}, // -
updated() {}, // -
beforeCreate() {}, // - beforeUnmount() {}, // -
beforeMount() {}, // - unmounted() {}, // -
beforeUpdate() {}, // - activated() {}, //keep-alive
updated() {}, // - }
beforeDestroy() {}, // -
destroyed() {}, // -
activated() {}, //keep-alive
};
</script> </script>
<style lang='less' scoped> <style lang="less" scoped>
//@import url(); css //@import url(); css
.river-course-view { .river-course-view {
position: relative; position: relative;
width:100%; width: 100%;
height: 100%; height: 100%;
background: url("~@/assets/common/homePage/big-bak.png") no-repeat; background: url('~@/assets/common/homePage/big-bak.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.city-map-content-echarts { .city-map-content-echarts {
width: 10rem; width: 10rem;
height: 7.9rem; height: 7.9rem;
top: 10px; top: 10px;
left: 500px; left: 500px;
bottom: 2rem; bottom: 2rem;
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;
} }
.map-menu { .map-menu {
position: absolute; position: absolute;
right: 486px; right: 486px;
bottom: 10px; bottom: 10px;
display: flex;
flex-direction: column;
align-items:flex-end;
pointer-events: none;
z-index:99999;
.map-tab {
// 1
display: flex; display: flex;
pointer-events: auto; flex-direction: column;
.tab-item { align-items: flex-end;
flex: 1; pointer-events: none;
cursor: pointer; z-index: 99999;
min-width: 1.4rem; .map-tab {
height: 30px; // 1
line-height: 30px; display: flex;
text-align: center; pointer-events: auto;
border: 1px solid #2ab1e9; .tab-item {
border-left: 0; flex: 1;
font-size: 16px; cursor: pointer;
padding: 0px 20px; min-width: 1.4rem;
background-color: #0d284f; height: 30px;
color: #35cffc; line-height: 30px;
&.active { text-align: center;
color: #fefefe; border: 1px solid #2ab1e9;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1eafda); border-left: 0;
}
&:first-child {
border-left: 1px solid #2ab1e9;
}
}
}
}
.reservoirType-list{
position: absolute;
right: 486px;
width: 122px;
height: 100px;
top: 164px;
padding: 10px 0 0 10px;
display: flex;
flex-direction: column;
background-color: rgba(13,40,79,0.5);
border:1px solid #0d284f;
padding-top:22px;
.type-legend{
margin-bottom:20px;
margin-left: 10px;
display:flex;
flex-direction:row;
.legend-color{
width:12px;
height:12px;
border-radius: 50%;
text-align: center;
line-height: 12px;
}
.color-normal{
background-color:#00ebac ;
}
.color-warning{
background-color:#ff3537 ;
}
.legend-text{
margin-left: 10px;
span{
color:#ffffff;
font-size: 16px; font-size: 16px;
padding: 0px 20px;
background-color: #0d284f;
color: #35cffc;
&.active {
color: #fefefe;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1eafda);
}
&:first-child {
border-left: 1px solid #2ab1e9;
}
} }
} }
} }
} .reservoirType-list {
.topic-animation1 { position: absolute;
width: 100%; right: 486px;
height: 100%; width: 122px;
position: absolute; height: 100px;
top: 164px;
margin: 0px auto; padding: 10px 0 0 10px;
background-image: url("~@/assets/common/homePage/animation1.png"); display: flex;
background-size: cover; flex-direction: column;
} background-color: rgba(13, 40, 79, 0.5);
.display-animation1 { border: 1px solid #0d284f;
animation: topup1 5s linear 1s infinite; padding-top: 22px;
} .type-legend {
.topic-animation2 { margin-bottom: 20px;
width: 100%; margin-left: 10px;
height: 100%; display: flex;
position: absolute; flex-direction: row;
.legend-color {
margin: 0px auto; width: 12px;
background-image: url("~@/assets/common/homePage/animation2.png"); height: 12px;
background-size: cover; border-radius: 50%;
} text-align: center;
.display-animation2 { line-height: 12px;
animation: topup1 5s linear 2s infinite; }
} .color-normal {
.topic-animation3 { background-color: #00ebac;
width: 100%; }
height: 100%; .color-warning {
position: absolute; background-color: #ff3537;
}
margin: 0px auto; .legend-text {
background-image: url("~@/assets/common/homePage/animation3.png"); margin-left: 10px;
background-size: cover; span {
} color: #ffffff;
.display-animation3 { font-size: 16px;
animation: topup1 5s linear 3s infinite; }
} }
.topic-animation4 { }
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url("~@/assets/common/homePage/animation4.png");
background-size: cover;
}
.display-animation4 {
animation: topup1 5s linear infinite;
}
.topic-animation5 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url("~@/assets/common/homePage/animation5.png");
background-size: cover;
}
.display-animation5 {
animation: topup1 5s linear 4s infinite;
}
.topic-animation6 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url("~@/assets/common/homePage/animation6.png");
background-size: cover;
}
.display-animation6 {
animation: topup1 5s linear infinite;
}
@keyframes topup1 {
from {
top: 0%;
} }
to { .topic-animation1 {
top: -100%; width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation1.png');
background-size: cover;
}
.display-animation1 {
animation: topup1 5s linear 1s infinite;
}
.topic-animation2 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation2.png');
background-size: cover;
}
.display-animation2 {
animation: topup1 5s linear 2s infinite;
}
.topic-animation3 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation3.png');
background-size: cover;
}
.display-animation3 {
animation: topup1 5s linear 3s infinite;
}
.topic-animation4 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation4.png');
background-size: cover;
}
.display-animation4 {
animation: topup1 5s linear infinite;
}
.topic-animation5 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation5.png');
background-size: cover;
}
.display-animation5 {
animation: topup1 5s linear 4s infinite;
}
.topic-animation6 {
width: 100%;
height: 100%;
position: absolute;
margin: 0px auto;
background-image: url('~@/assets/common/homePage/animation6.png');
background-size: cover;
}
.display-animation6 {
animation: topup1 5s linear infinite;
}
@keyframes topup1 {
from {
top: 0%;
}
to {
top: -100%;
}
} }
} }
}
</style> </style>

View File

@ -1,112 +1,103 @@
<!-- --> <!-- -->
<template> <template>
<div class="capability-cloud">
<div class="capability-cloud">
<div class="header"> <div class="header">
<span class="title" @click="goHome">城市云脑通用能力服务平台</span> <span class="title" @click="goHome">城市云脑通用能力服务平台</span>
</div> </div>
<div class="header1"> <div class="header1">
<div style=" color:#bed1df; font-size: 32px">累计节省财政资金</div> <div style="color: #bed1df; font-size: 32px">累计节省财政资金</div>
<div class="area-right"> <div class="area-right">
<!-- <div class="mianJi">累计节省财政资金</div> --> <!-- <div class="mianJi">累计节省财政资金</div> -->
<template v-for="(item, index) in saveMonmy"> <template v-for="(item, index) in saveMonmy">
<p v-if="item == '.'" :key="index"> <p v-if="item == '.'" :key="index">
{{ item }} {{ item }}
</p> </p>
<span v-else >{{ item }}</span> <span v-else>{{ item }}</span>
</template> </template>
<div class="mianJi">万元</div> <div class="mianJi">万元</div>
</div>
<div style=" color: #bed1df; font-size: 16px">资源参考价格由部门提供或参考市场价格设定</div>
</div> </div>
<div style="color: #bed1df; font-size: 16px">
资源参考价格由部门提供或参考市场价格设定
</div>
</div>
<!--左侧--> <!--左侧-->
<div class="reservoir-left"> <div class="reservoir-left">
<!-- 左侧内容 --> <!-- 左侧内容 -->
<reservoir-left /> <reservoir-left />
</div> </div>
<!--右侧--> <!--右侧-->
<div class="reservoir-right"> <div class="reservoir-right">
<reservoir-right /> <reservoir-right />
</div> </div>
<!--中间地图--> <!--中间地图-->
<div class="reservoir-map"> <div class="reservoir-map">
<reservoir-thumbnail <reservoir-thumbnail
@changeThumbnailMap="changeThumbnailMap" @changeThumbnailMap="changeThumbnailMap"
@jumpIntoMap="jumpIntoMap" @jumpIntoMap="jumpIntoMap"
/> />
</div> </div>
<!--下方--> <!--下方-->
<div class="bottom"> <div class="bottom">
<reservoir-bottom /> <reservoir-bottom />
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { import { getApplyPriceCount } from '@/api/assertReport'
getApplyPriceCount import ReservoirThumbnail from './components/ReservoirThumbnail.vue'
} from '@/api/assertReport' import ReservoirLeft from './components/ReservoirLeft'
import ReservoirThumbnail from "./components/ReservoirThumbnail.vue"; import ReservoirRight from './components/ReservoirRight'
import ReservoirLeft from "./components/ReservoirLeft"; import ReservoirBottom from './components/ReservoirBottom'
import ReservoirRight from "./components/ReservoirRight"; import { NumbersConvertedToArrays } from '@/utils/arrayMethod.js'
import ReservoirBottom from "./components/ReservoirBottom"; export default {
import { NumbersConvertedToArrays } from "@/utils/arrayMethod.js"; //import使
export default { components: {
//import使 ReservoirThumbnail,
components: { ReservoirLeft,
ReservoirThumbnail, ReservoirRight,
ReservoirLeft, ReservoirBottom,
ReservoirRight, },
ReservoirBottom data() {
//
return {
saveMonmy: [],
model: 'common',
dialogTitle: '周边视频',
videoAnalysisDialogVisible: false, //
riverCourseHistoryDialogVisible: false, //
riverDetailInfo: {}, //
dialogType: 'add',
dialogData: {},
dangerReportDialogVisible: false,
positionInfo: null,
reservoirDialogVisible: false, //
districtOptions: [], //
isThumbnail: true, //
tabindex: 0, //3dtab
listType: '', // warnig
basicInfo: {}, //
type: '',
callSource: 'indexPage',
}
},
// data
computed: {},
//data
watch: {},
//
methods: {
getSaveMoney() {
getApplyPriceCount().then((res) => {
this.saveMonmy = NumbersConvertedToArrays(res.data.data)
})
},
},
}, mounted() {
data() { this.getSaveMoney()
// },
return { }
saveMonmy:[],
model: "common",
dialogTitle: "周边视频",
videoAnalysisDialogVisible: false, //
riverCourseHistoryDialogVisible: false, //
riverDetailInfo: {}, //
dialogType: "add",
dialogData: {},
dangerReportDialogVisible: false,
positionInfo: null,
reservoirDialogVisible: false, //
districtOptions: [], //
isThumbnail:true, //
tabindex:0, //3dtab
listType:"",// warnig
basicInfo: {}, //
type: '',
callSource:"indexPage",
};
},
// data
computed: {},
//data
watch: {},
//
methods: {
getSaveMoney(){
getApplyPriceCount().then((res) => {
this.saveMonmy=NumbersConvertedToArrays(res.data.data)
})
}
},
mounted() {
this.getSaveMoney()
},
};
</script> </script>
<style lang="less"> <style lang="less">
@font-face { @font-face {
@ -135,156 +126,153 @@ export default {
} }
} }
</style> </style>
<style lang='less' scoped> <style lang="less" scoped>
// scopeddate-pickerreservoir // scopeddate-pickerreservoir
//@import url(); css //@import url(); css
.module-header-container { .module-header-container {
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;
top: 0px; top: 0px;
width: 100%; width: 100%;
pointer-events: none; pointer-events: none;
} }
.capability-cloud { .capability-cloud {
height: 10.8rem; height: 10.8rem;
background: url('~@/assets/capabilityCloud/bg.png') no-repeat; background: url('~@/assets/capabilityCloud/bg.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
overflow: hidden; overflow: hidden;
& > .header { & > .header {
height: 1.04rem; height: 1.04rem;
text-align: center; text-align: center;
background: url('~@/assets/capabilityCloud/header.png') no-repeat; background: url('~@/assets/capabilityCloud/header.png') no-repeat;
font-size: 0.46rem; font-size: 0.46rem;
} }
.bottom{ .bottom {
bottom: 12px; bottom: 12px;
position: absolute; position: absolute;
left: 545px; left: 545px;
width: 732px; width: 732px;
align-items: center; align-items: center;
z-index: 1004; z-index: 1004;
text-align: center; text-align: center;
height: 1.8rem;
height: 1.8rem;
} }
.header1 { .header1 {
top: 78px; top: 78px;
position: absolute; position: absolute;
left: 795px; left: 795px;
align-items: center; align-items: center;
z-index: 1004; z-index: 1004;
text-align: center; text-align: center;
.area-right { .area-right {
display: flex; display: flex;
align-items: center; align-items: center;
justify-items: flex-end; justify-items: flex-end;
padding-right: 20px; padding-right: 20px;
color: #bed1df; color: #bed1df;
margin-left: 100px; margin-left: 100px;
span { span {
width: 36px; width: 36px;
// height: 45px; // height: 45px;
// line-height: 45px; // line-height: 45px;
color: #fed93f; color: #fed93f;
font-weight: bold; font-weight: bold;
background: url("~@/assets/capabilityCloud/num_bg.png") background: url('~@/assets/capabilityCloud/num_bg.png') 100% 100%
100% 100% no-repeat; no-repeat;
background-size: 100%; background-size: 100%;
text-align: center; text-align: center;
font-size: 34px; font-size: 34px;
margin-right: 3px; margin-right: 3px;
font-family: DinPro-Bold; font-family: DinPro-Bold;
}
.mianJi {
margin-top: 6px;;
margin-right: 3px;
font-size: 22px;
float:right;
}
p {
height: 44px;
display: flex;
align-items: flex-end;
justify-items: center;
font-size: 34px;
}
} }
.mianJi {
margin-top: 6px;
margin-right: 3px;
font-size: 22px;
float: right;
}
p {
height: 44px;
display: flex;
align-items: flex-end;
justify-items: center;
font-size: 34px;
}
}
} }
//position: relative; //position: relative;
.reservoir-left { .reservoir-left {
position: absolute; position: absolute;
left: 0.1rem; left: 0.1rem;
z-index: 1000; z-index: 1000;
top: 0.8rem; top: 0.8rem;
height: calc(100% - 0.8rem); height: calc(100% - 0.8rem);
} }
.reservoir-right { .reservoir-right {
position: absolute; position: absolute;
z-index: 1001; z-index: 1001;
right: 0.1rem; right: 0.1rem;
top: 0.8rem; top: 0.8rem;
height: calc(100% - 0.8rem); height: calc(100% - 0.8rem);
} }
.reservoir-map { .reservoir-map {
position: absolute; position: absolute;
width: 100%; width: 100%;
// height: 100%; // height: 100%;
// bottom:2rem; // bottom:2rem;
}
}
//
.phone-date-picker {
color: #fff;
//border: 1px solid #e4e7ed;
border: 1px solid #008fbb;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
//background: #000;
background: #123d68;
//background:rgba(0, 0, 0, 0);
line-height: 30px;
margin: 5px 0;
.el-date-table td.disabled div {
background: #305156 !important;
}
.el-picker-panel__footer {
//background-color: rgba(0, 0, 0, 0.8);
background: #123d68;
color: #fff;
.el-picker-panel__link-btn:first-of-type {
display: none;
} }
} }
.el-date-table td.in-range div { //
background: #009ab3; .phone-date-picker {
}
.el-input__inner {
//background-color: rgba(0, 0, 0, 0.8);
background: #123d68;
color: #fff; color: #fff;
} //border: 1px solid #e4e7ed;
.el-date-picker__header > button,
span {
color: #fff;
}
.el-picker-panel__content > .el-date-table > tbody > tr > th {
color: #fff;
}
.el-button.is-plain:hover,
.el-button.is-plain:focus {
background: #009ab3;
}
.el-button--default {
border-radius: 0;
background: #009ab3;
//border: 1px solid #dcdfe6;
border: 1px solid #008fbb; border: 1px solid #008fbb;
border-color: #009ab3; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
//background: #000;
background: #123d68;
//background:rgba(0, 0, 0, 0);
line-height: 30px;
margin: 5px 0;
.el-date-table td.disabled div {
background: #305156 !important;
}
.el-picker-panel__footer {
//background-color: rgba(0, 0, 0, 0.8);
background: #123d68;
color: #fff;
.el-picker-panel__link-btn:first-of-type {
display: none;
}
}
.el-date-table td.in-range div {
background: #009ab3;
}
.el-input__inner {
//background-color: rgba(0, 0, 0, 0.8);
background: #123d68;
color: #fff;
}
.el-date-picker__header > button,
span {
color: #fff;
}
.el-picker-panel__content > .el-date-table > tbody > tr > th {
color: #fff;
}
.el-button.is-plain:hover,
.el-button.is-plain:focus {
background: #009ab3;
}
.el-button--default {
border-radius: 0;
background: #009ab3;
//border: 1px solid #dcdfe6;
border: 1px solid #008fbb;
border-color: #009ab3;
}
} }
}
</style> </style>

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-19 10:15:33 * @Date: 2022-06-19 10:15:33
* @LastEditors: hisense.liangjunhua * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-06-27 12:52:18 * @LastEditTime: 2022-11-28 16:23:25
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<template> <template>
@ -50,10 +50,10 @@
name: '总申请次数', name: '总申请次数',
num: '', num: '',
}, },
{ // {
name: '满足率', // name: '',
num: '', // num: '',
}, // },
]) ])
// //
const assignRankings = ref([ const assignRankings = ref([

View File

@ -2,7 +2,7 @@
海康H5Player 海康H5Player
--> -->
<template> <template>
<div :id="videoId" style="width: 800px; height: 600px; z-index: 9999"></div> <div :id="videoId" ref="video333" style="width: 800px; height: 600px"></div>
</template> </template>
<script> <script>
// const IS_MOVE_DEVICE = document.body.clientWidth < 992 // // const IS_MOVE_DEVICE = document.body.clientWidth < 992 //
@ -41,6 +41,7 @@
mseSupport: MSE_IS_SUPPORT, mseSupport: MSE_IS_SUPPORT,
// tabActive: MSE_IS_SUPPORT ? 'mse' : 'decoder', // tabActive: MSE_IS_SUPPORT ? 'mse' : 'decoder',
tabActive: 'decoder', tabActive: 'decoder',
videoDom: {},
urls: { urls: {
realplay: 'ws://10.19.147.22:559/EUrl/q2jQie4', realplay: 'ws://10.19.147.22:559/EUrl/q2jQie4',
talk: 'wss://10.41.163.126:6014/proxy/10.41.163.126:559/EUrl/6gFx47S', talk: 'wss://10.41.163.126:6014/proxy/10.41.163.126:559/EUrl/6gFx47S',
@ -70,18 +71,13 @@
}, },
created() {}, created() {},
mounted() { mounted() {
this.init() // this.init()
mybus.emit('closeLoading', true) mybus.emit('closeLoading', true)
this.createPlayer() this.createPlayer()
this.arrangeWindow() // this.arrangeWindow()
if (this.unStopable) { if (this.unStopable) {
this.videoPlay(this.videoUrl, 0)
} else {
this.realplay(this.videoUrl, 0) this.realplay(this.videoUrl, 0)
} }
//videoUrl this.realplay(this.videoUrl,0);//index
//this.realplay('wss://10.134.135.44:6014/proxy/10.10.20.14:559/openUrl/y3mFfcA',0);
}, },
watch: { watch: {
videoUrl: { videoUrl: {
@ -120,15 +116,18 @@
//szId: 'player'+this.index, //szId: 'player'+this.index,
szId: this.videoId, szId: this.videoId,
szBasePath: '/util/', //public/jsjs szBasePath: '/util/', //public/jsjs
iMaxSplit: 4, // iMaxSplit: 4,
iWidth: '800px', // iWidth: '800px',
iCurrentSplit: 4, // iCurrentSplit: 4,
openDebug: true, // openDebug: true,
oStyle: { // oStyle: {
borderSelect: '#FFCC00', // borderSelect: '#FFCC00',
}, // },
}) })
let that = this let that = this
that.videoDom = that.$refs.video333.querySelector('video') || {}
// that.videoDom.autoplay = false
// //
this.player.JS_SetWindowControlCallback({ this.player.JS_SetWindowControlCallback({
windowEventSelect: function (iWndIndex) { windowEventSelect: function (iWndIndex) {
@ -138,8 +137,8 @@
pluginErrorHandler: function (iWndIndex, iErrorCode, oError) { pluginErrorHandler: function (iWndIndex, iErrorCode, oError) {
// //
console.log('pluginError callback: ', iWndIndex, iErrorCode, oError) console.log('pluginError callback: ', iWndIndex, iErrorCode, oError)
message.error('取流异常,请稍后尝试') // message.error(',')
mybus.emit('closeLoading', false) // mybus.emit('closeLoading', false)
}, },
windowEventOver: function (iWndIndex) { windowEventOver: function (iWndIndex) {
// //
@ -159,16 +158,26 @@
}, },
firstFrameDisplay: function (iWndIndex, iWidth, iHeight) { firstFrameDisplay: function (iWndIndex, iWidth, iHeight) {
// //
console.log( // console.log(
'firstFrame loaded callback: ', // 'firstFrame loaded callback: ',
iWndIndex, // iWndIndex,
iWidth, // iWidth,
iHeight // iHeight
) // )
// // //
if (!that.realTime) { // if (!that.realTime) {
that.pausePlay(iWndIndex) // that.pausePlay(iWndIndex)
}
setTimeout(()=>{
console.log('为何暂停会失效???')
that.videoDom.pause()
}, 4000)
// that.player.JS_Visibilitychange()
var canvas = that.$refs.video333.querySelector('canvas');
var context = canvas.getContext('2d');
context.save();
// }
mybus.emit('closeLoading', false) mybus.emit('closeLoading', false)
}, },
performanceLack: function () { performanceLack: function () {
@ -191,67 +200,29 @@
// //
// //
realplay(playURL, index1) { realplay(playURL, index1) {
let that = this
this.realTime = false this.realTime = false
mybus.emit('closeLoading', true) mybus.emit('closeLoading', true)
setTimeout(() => { setTimeout(() => {
mybus.emit('closeLoading', false) mybus.emit('closeLoading', false)
}, 3000) }, 3000)
this.player.JS_Stop(0)
this.mode = 0 //0 1 this.mode = 0 //0 1
const { player, mode, urls } = this const { player, mode, urls } = this
// playURL = this.realplay
console.log('视频播放地址', playURL) console.log('视频播放地址', playURL)
// const startTime = {
// startTime: ,
// }
// const endTime = {
// endTime: ,
// }
player
.JS_Play(
playURL,
{ playURL, mode },
index1,
'2022-11-22T10:00:00Z',
'2022-11-22T11:00:00Z'
)
.then(
() => {
console.log('realplay success')
},
(e) => {
console.error(e)
// message.error(':' + e)
}
)
},
//
videoPlay(playURL, index1) {
let that = this
this.realTime = true
mybus.emit('closeLoading', true)
setTimeout(() => {
mybus.emit('closeLoading', false)
}, 3000)
if (!that.unStopable) {
message.warning('预览将在约6s后停止')
setTimeout(() => {
that.stopAllPlay()
}, 6000)
}
this.mode = 0 //0 1
const { player, mode, urls } = this
// playURL = this.realplay
console.log('视频播放地址', playURL)
// const startTime = {
// startTime: ,
// }
// const endTime = {
// endTime: ,
// }
player.JS_Play(playURL, { playURL, mode }, index1).then( player.JS_Play(playURL, { playURL, mode }, index1).then(
() => { () => {
console.log('realplay success') // console.log('')
// 6s mybus.emit('closeLoading', false)
// that.videoDom.muted = false
console.log('视频DOM', player)
// that.videoDom.addEventListener('play',function(){
// console.log("");
// that.videoDom.pause()
// });
setTimeout(() => {
that.videoDom.pause()
}, 0)
}, },
(e) => { (e) => {
console.error(e) console.error(e)
@ -272,20 +243,6 @@
} }
) )
}, },
//
pausePlay(index) {
let that = this
this.player.JS_Pause(index).then(
() => {
console.log('暂停成功')
},
(e) => {
console.error(e)
//
that.videoPlay(that.videoUrl, 0)
}
)
},
}, },
beforeUnmount() { beforeUnmount() {
console.log('关闭所有视频') console.log('关闭所有视频')