修改基础设施BUG 以及 能力统计金字塔图

This commit is contained in:
a0049873 2022-10-13 17:07:51 +08:00
parent 75299e8648
commit 78aabf704b
4 changed files with 709 additions and 560 deletions

View File

@ -198,7 +198,7 @@ export default {
name: '',
applicationArea: '',
description: '',
sceneUrl:'',
sceneUrl: '',
fuseAttrList: [
{
attrType: '使用步骤',
@ -345,10 +345,10 @@ export default {
update: 'put'
}
this.dataForm.fuseResourceList = this.getFuseResourceList()
if (this.imageUrl == '') {
this.$message.error('请上传图片!')
return
}
// if (this.imageUrl == '') {
// this.$message.error('')
// return
// }
this.dataForm.fuseAttrList.find(v => v.attrType == '服务图片').attrValue = this.imageUrl || ''
const _obj = Object.assign({}, this.dataForm, {
type: '赋能场景'

View File

@ -345,90 +345,207 @@
echarts.init(document.getElementById('right')).dispose()
let chartDom = document.getElementById('right')
let myChart = echarts.init(chartDom)
// let option = {
// tooltip: {
// trigger: 'item',
// formatter: function (info) {
// let _obj = dataList.find((v) => v.fanwei == info.data.name) || {}
// let dom = ref()
// dom.value =
// '<br/>' +
// (_obj.fanwei || '--') +
// ' : ' +
// (_obj.value || _obj.value === 0 ? _obj.value : '--') +
// ''
// console.log('name', info.data)
// return dom.value
// },
// },
// grid: {
// height: '65%',
// width: '45%',
// left: '20%',
// bottom: 30,
// },
// xAxis: {
// show: false,
// type: 'category',
// data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
// },
// yAxis: {
// show: false,
// type: 'value',
// min: 0,
// max: 20,
// },
// series: [
// {
// name: '',
// type: 'funnel',
// left: '28%',
// right: '35%',
// top: '15%',
// bottom: '10%',
// minSize: '0%',
// maxSize: '100%',
// sort: 'ascending',
// label: {
// show: true,
// formatter: function (info) {
// let _obj = dataList.find((v) => v.fanwei == info.data.name) || {}
// let dom = ref()
// dom.value =
// (_obj.fanwei || '--') +
// ' : ' +
// (_obj.value || _obj.value === 0 ? _obj.value : '--') +
// ''
// console.log('name', info.data)
// return dom.value
// },
// rich: {
// b: {
// fontSize: 14,
// },
// },
// },
// labelLine: {
// length: 40,
// lineStyle: {
// width: 1,
// type: 'solid',
// },
// },
// itemStyle: {
// borderColor: '#fff',
// borderWidth: 1,
// },
// emphasis: {
// label: {
// fontSize: 20,
// },
// },
// data: chartData,
// },
// ],
// }
let option = {
// title: {
// text: 'ECharts '
// },
tooltip: {
trigger: 'item',
formatter: function (info) {
let _obj = dataList.find((v) => v.fanwei == info.data.name) || {}
let _obj = dataList.find((v) => v.fanwei == info.name) || {}
let dom = ref()
dom.value =
'部门数<br/>' +
(_obj.fanwei || '--') +
' : ' +
(_obj.value || _obj.value === 0 ? _obj.value : '--') +
'项'
console.log('name', info.data)
''
console.log('name', info)
return dom.value
},
},
grid: {
height: '65%',
width: '45%',
left: '20%',
bottom: 30,
legend: {
data: [],
},
xAxis: {
show: false,
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
},
yAxis: {
show: false,
type: 'value',
min: 0,
max: 20,
data: [],
},
yAxis: {},
series: [
{
name: '部门数',
type: 'funnel',
left: '28%',
right: '35%',
top: '15%',
bottom: '10%',
minSize: '0%',
maxSize: '100%',
sort: 'ascending',
label: {
show: true,
formatter: function (info) {
let _obj = dataList.find((v) => v.fanwei == info.data.name) || {}
let dom = ref()
dom.value =
(_obj.fanwei || '--') +
' : ' +
(_obj.value || _obj.value === 0 ? _obj.value : '--') +
'项'
console.log('name', info.data)
return dom.value
},
rich: {
b: {
fontSize: 14,
},
},
},
labelLine: {
length: 40,
lineStyle: {
width: 1,
type: 'solid',
},
},
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
borderColor: '#fff',
borderWidth: 1,
},
emphasis: {
label: {
fontSize: 20,
normal: {
color: '#C1232B',
},
},
data: chartData,
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
{
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
normal: {
color: '#B5C334',
},
},
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
{
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
normal: {
color: '#FCCE10',
},
},
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
{
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
normal: {
color: '#E87C25',
},
},
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
{
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
normal: {
color: '#27727B',
},
},
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
{
name: '',
type: 'bar',
barGap: '-100%',
itemStyle: {
normal: {
color: '#FE8463',
},
},
// data: [5, 20, 36, 10, 10, 20]
data: [],
},
],
}
option.legend.data = []
option.xAxis.data = []
dataList.map((val, index) => {
// option.legend.data.push(val.fanwei)
option.xAxis.data.push(val.fanwei)
option.series[index].name = val.fanwei
let arr = []
for (let i = 0; i < 5; i++) {
if (i == index) {
arr.push(val.value)
} else {
arr.push(0)
}
}
option.series[index].data = arr
})
option && myChart.setOption(option)
}
onMounted(() => {

View File

@ -331,10 +331,7 @@
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item
name="phone"
label="联系电话"
>
<a-form-item name="phone" label="联系电话">
<a-input v-model:value="formState.phone" style="width: 72%" />
</a-form-item>
</a-col>
@ -551,7 +548,10 @@
>
<template #footer></template>
<div style="width: 100%; display: flex; justify-content: center">
<div style="width: 100%; height: 100%; position: relative" v-show="isXiHaiAn">
<div
style="width: 100%; height: 100%; position: relative"
v-show="isXiHaiAn"
>
<!-- 西海岸--预览视频--遮罩 todo-->
<div class="video-cover" @click="videoShowMsg"></div>
<div class="waterMark waterMark-left-top">
@ -635,17 +635,33 @@
style="width: 100%; height: 100%; position: relative"
>
<!-- 批量预览视频--遮罩 -->
<div class="batch-video-cover" @click="videoShowMsg(index)" v-show="isXiHaiAn"></div>
<div class="batch-waterMark batch-waterMark-left-top" v-show="isXiHaiAn">
<div
class="batch-video-cover"
@click="videoShowMsg(index)"
v-show="isXiHaiAn"
></div>
<div
class="batch-waterMark batch-waterMark-left-top"
v-show="isXiHaiAn"
>
{{ userInfo.usernameShow }}
</div>
<div class="batch-waterMark batch-waterMark-right-top" v-show="isXiHaiAn">
<div
class="batch-waterMark batch-waterMark-right-top"
v-show="isXiHaiAn"
>
{{ userInfo.realNameShow }}
</div>
<div class="batch-waterMark batch-waterMark-left-bottom" v-show="isXiHaiAn">
<div
class="batch-waterMark batch-waterMark-left-bottom"
v-show="isXiHaiAn"
>
{{ userInfo.usernameShow }}
</div>
<div class="batch-waterMark batch-waterMark-right-bottom" v-show="isXiHaiAn">
<div
class="batch-waterMark batch-waterMark-right-bottom"
v-show="isXiHaiAn"
>
{{ userInfo.realNameShow }}
</div>
<p></p>
@ -899,12 +915,12 @@
tabClick(0, '视频资源')
} else {
//
if(formPage && formPage == 'noticePage') {
if (formPage && formPage == 'noticePage') {
tabClick(0, '城市云脑会客厅')
roomYuyue.value = false
roomResult.value = true
onSearch()
}else {
} else {
tabClick(0, '政务云资源')
}
}
@ -958,7 +974,7 @@
let clickList = ref([]) //tab
if (!isXiHaiAn) {
tabList.value.push({
title: '视频标签',
title: '政务云资源',
content: [],
})
}
@ -1383,6 +1399,7 @@
'点击tab================>',
indexFather,
name,
clickList.value,
clickList.value[indexFather]
)
@ -1397,7 +1414,7 @@
tabList.value[1].title = '视频标签'
}
selectType.value = '视频资源'
console.log('444------------>', 444);
console.log('444------------>', 444)
} else if (name == '政务云资源') {
room.value = true
tableHeight.value = 600
@ -1579,7 +1596,10 @@
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name
console.log('clickList.value[indexFather].content[0]------------>', clickList.value[indexFather].content[0]);
console.log(
'clickList.value[indexFather].content[0]------------>',
clickList.value[indexFather].content[0]
)
if (tabList.value[1]) {
tabList.value[1].title = ''
@ -1814,22 +1834,32 @@
// 西-loading
const loadingCamera = ref(false)
const getCamera = (flag, str) => {
loadingCamera.value = true;
loadingCamera.value = true
if (flag) {
mapSearchParam.value.cameraName = str
}
console.log('初始化调用')
console.log('不选左侧树的时候不调用接口', mapSearchParam.value)
console.log(
'不选左侧树的时候不调用接口',
mapSearchParam.value,
selectType.value
)
if (!whoShow1.value.itShowXiHaiAn) {
getCameraByParentId(mapSearchParam.value).then((res) => {
console.log('res--查询摄像头---------->', res);
loadingCamera.value = false;
if (selectType.value == '视频资源') {
getCameraByParentId(mapSearchParam.value)
.then((res) => {
console.log('res--查询摄像头---------->', res)
loadingCamera.value = false
dataSource.value = res.data.data
pagination.value.total = res.data.count
}).catch(err => {
loadingCamera.value = false;
})
.catch((err) => {
loadingCamera.value = false
message.error(err)
})
} else {
loadingCamera.value = false
}
} else {
let params = {
regionId:
@ -1866,13 +1896,15 @@
}
}
}
getCameraByCondition(params).then((res) => {
console.log('res--查询摄像头---------->', res);
loadingCamera.value = false;
getCameraByCondition(params)
.then((res) => {
console.log('res--查询摄像头---------->', res)
loadingCamera.value = false
dataSource.value = res.data.data
pagination.value.total = res.data.count
}).catch(err => {
loadingCamera.value = false;
})
.catch((err) => {
loadingCamera.value = false
message.error(err)
})
}
@ -1884,7 +1916,7 @@
const addShoppingCart = () => {
if (selectedList.value.length > 0) {
let _arr = []
selectedList.value.map(v => {
selectedList.value.map((v) => {
_arr.push({
delFlag: '0',
resourceId: v.idtCameraChannel,
@ -1892,7 +1924,7 @@
})
})
xhaAddCart(_arr).then((res) => {
if(res.data.code !== 0) {
if (res.data.code !== 0) {
return message.error(res.data.msg)
}
message.success('添加申购车成功!')
@ -1929,7 +1961,7 @@
},
])
// 西--
if(isXiHaiAn) {
if (isXiHaiAn) {
columns.value.splice(2, 0, {
title: '状态',
dataIndex: 'status',
@ -2085,7 +2117,7 @@
}
</script>
<style lang="less" scoped>
.infrastructrueBox {
.infrastructrueBox {
padding: 0.2rem;
background: #ffffff;
border-bottom: 0.01rem solid rgba(150, 144, 144, 0.3);
@ -2232,51 +2264,51 @@
margin-left: 0.16rem;
position: relative;
}
}
}
.roomBackground {
.roomBackground {
background: #0058e1;
color: #ffffff;
}
}
.nullBackground {
.nullBackground {
background: #f3f5f9;
color: #0087ff;
}
}
:deep(.ant-form-item-control-input-content) {
:deep(.ant-form-item-control-input-content) {
margin-left: 0.15rem;
}
}
:deep(.ant-col) {
:deep(.ant-col) {
.ant-form-item {
margin-bottom: 0;
}
}
}
.jinggaoD {
.jinggaoD {
display: flex;
align-items: center;
}
}
.jinggaoNull {
.jinggaoNull {
display: none;
}
}
.imgJinggao {
.imgJinggao {
width: 0.2rem;
height: 0.2rem;
background: url('~@/assets/home/jingao.png') no-repeat;
background-size: 100%;
}
}
.introduction {
.introduction {
:deep(.ant-form-item-control) {
margin-left: -2.1rem;
}
}
}
.roomBox {
.roomBox {
.leftMake {
float: left;
margin-left: -1rem;
@ -2406,17 +2438,17 @@
:deep(.ant-pagination) {
text-align: end;
}
}
}
</style>
<style lang="less">
.wrj {
.wrj {
.ant-modal-body {
height: 700px !important;
overflow-y: auto;
}
}
}
.modalClass {
.modalClass {
.ant-modal-body {
height: 4rem !important;
overflow-y: scroll !important;
@ -2431,9 +2463,9 @@
border-bottom: 0 !important;
}
}
}
}
.appModal {
.appModal {
.ant-modal-body {
height: 4.8rem !important;
overflow-y: scroll !important;
@ -2448,9 +2480,9 @@
border-bottom: 0 !important;
}
}
}
}
.single-preview-modal {
.single-preview-modal {
.ant-modal-header {
background: url(~@/assets/home/video-background.png) no-repeat;
background-size: cover;
@ -2465,9 +2497,9 @@
.anticon {
color: #ffffff;
}
}
}
.batch-preview-modal {
.batch-preview-modal {
.batch-video {
width: 100%;
display: grid;
@ -2496,14 +2528,14 @@
.anticon {
color: #ffffff;
}
}
}
/*禁用video的controls要慎重不要轻易隐藏掉会导致点击视频不能播放*/
video::-webkit-media-controls {
/*禁用video的controls要慎重不要轻易隐藏掉会导致点击视频不能播放*/
video::-webkit-media-controls {
display: none !important;
}
}
.video-cover {
.video-cover {
position: absolute;
left: 0;
top: 0;
@ -2512,9 +2544,9 @@
background: transparent;
z-index: 99999999;
cursor: pointer;
}
}
.batch-video-cover {
.batch-video-cover {
position: absolute;
left: 0;
top: 0;
@ -2524,9 +2556,9 @@
width: 512px;
margin-top: 14px;
cursor: pointer;
}
}
.waterMark {
.waterMark {
position: absolute;
z-index: 99999999;
color: #0058e1;
@ -2535,38 +2567,38 @@
opacity: 0.4;
transform: rotate(-25deg);
width: 470px;
}
}
//
.waterMark-left-top {
//
.waterMark-left-top {
left: 50px;
top: 100px;
text-align: left;
}
}
//
.waterMark-right-top {
//
.waterMark-right-top {
right: 50px;
top: 100px;
text-align: right;
}
}
//
.waterMark-left-bottom {
//
.waterMark-left-bottom {
left: 50px;
bottom: 100px;
text-align: left;
}
}
//
.waterMark-right-bottom {
//
.waterMark-right-bottom {
right: 50px;
bottom: 100px;
text-align: right;
}
}
//
.batch-waterMark {
//
.batch-waterMark {
position: absolute;
z-index: 99999999;
color: #0058e1;
@ -2574,33 +2606,33 @@
opacity: 0.4;
transform: rotate(-25deg);
width: 200px;
}
}
//
.batch-waterMark-left-top {
//
.batch-waterMark-left-top {
left: 30px;
top: 50px;
text-align: left;
}
}
//
.batch-waterMark-right-top {
//
.batch-waterMark-right-top {
text-align: right;
right: 30px;
top: 80px;
}
}
//
.batch-waterMark-left-bottom {
//
.batch-waterMark-left-bottom {
left: 30px;
bottom: 50px;
text-align: left;
}
}
//
.batch-waterMark-right-bottom {
//
.batch-waterMark-right-bottom {
right: 20px;
bottom: 30px;
text-align: right;
}
}
</style>

View File

@ -1,8 +1,8 @@
<!--
* @Author: hisense.liangjunhua
* @Date: 2022-06-23 16:41:49
* @LastEditors: hisense.liangjunhua
* @LastEditTime: 2022-07-04 17:53:27
* @LastEditors: Light
* @LastEditTime: 2022-10-13 16:40:15
* @Description: 告诉大家这是什么
-->
<template>
@ -32,21 +32,21 @@
import HomeFooter from '@/views/newHome/components/Footer'
</script>
<style lang="less" scoped>
@font-face {
@font-face {
font-family: 'text-typeface';
src: url('~@/assets/newHome/font/text-typeface.otf');
}
@font-face {
}
@font-face {
font-family: 'num-typeface';
src: url('~@/assets/newHome/font/num-typeface.otf');
}
.newHome {
}
.newHome {
font-family: text-typeface;
.num {
font-family: num-typeface;
}
}
.resource-aggregation {
}
.resource-aggregation {
background: #fff;
}
}
</style>