中建四局 -双碳管理页面图片更换

This commit is contained in:
yjl 2023-04-02 14:49:00 +08:00
parent 503afa6089
commit 088fa08877
12 changed files with 242 additions and 199 deletions

View File

@ -1,8 +1,7 @@
<template> <template>
<Card title="建材碳排放"> <Card title="建材碳排放">
<div class="containerBox"> <div class="containerBox">
<img src="./image/img5.png" alt=""> <img src="./image/centerBottomImage.png" alt="" />
</div> </div>
</Card> </Card>
</template> </template>
@ -14,7 +13,7 @@ export default {
components: { Card }, components: { Card },
data() { data() {
return { return {
time1:'', time1: ''
} }
}, },
mounted() { mounted() {
@ -53,7 +52,20 @@ export default {
boundaryGap: false, boundaryGap: false,
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], data: [
'1月',
'2月',
'3月',
'4月',
'5月',
'6月',
'7月',
'8月',
'9月',
'10月',
'11月',
'12月'
],
axisLabel: { axisLabel: {
color: '#fff' color: '#fff'
}, },
@ -78,8 +90,9 @@ export default {
// axisLine: { show: true, lineStyle: { color: '#D0FFF6' } }, // axisLine: { show: true, lineStyle: { color: '#D0FFF6' } },
splitLine: { splitLine: {
lineStyle: { lineStyle: {
color: 'rgba(255, 255, 255,0.3)', type: 'dashed' color: 'rgba(255, 255, 255,0.3)',
}, type: 'dashed'
}
}, // x }, // x
axisTick: { axisTick: {
show: false show: false
@ -90,7 +103,6 @@ export default {
type: 'dashed' type: 'dashed'
} }
} }
} }
], ],
series: [ series: [

View File

@ -1,7 +1,7 @@
<template> <template>
<Card title="项目碳排放趋势"> <Card title="项目碳排放趋势">
<div class="containerBox"> <div class="containerBox">
<img src="./image/imgFour.png" alt> <img src="./image/centerTopImage.png" alt />
</div> </div>
</Card> </Card>
</template> </template>
@ -70,7 +70,7 @@ export default {
getDevList() { getDevList() {
console.log('环境下拉列表进来了吗--------') console.log('环境下拉列表进来了吗--------')
environmentDevList({ projectSn: this.$store.state.projectSn }).then( environmentDevList({ projectSn: this.$store.state.projectSn }).then(
result => { (result) => {
console.log('环境监测下拉列表', result) console.log('环境监测下拉列表', result)
this.devList = result.result this.devList = result.result
if (result.result.length > 0) { if (result.result.length > 0) {
@ -100,7 +100,7 @@ export default {
projectSn: this.projectSn, projectSn: this.projectSn,
deviceId: this.currentDevDetail.deviceId deviceId: this.currentDevDetail.deviceId
} }
selectDustNoiseDataApi(data).then(res => { selectDustNoiseDataApi(data).then((res) => {
// console.log(res) // console.log(res)
this.dustData_24 = res.result this.dustData_24 = res.result
this.createdEcharts2() this.createdEcharts2()
@ -111,7 +111,7 @@ export default {
let data = { let data = {
projectSn: this.projectSn projectSn: this.projectSn
} }
selectNewEnvironmentAlarmListApi(data).then(res => { selectNewEnvironmentAlarmListApi(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.alarmList = res.result this.alarmList = res.result
} }
@ -122,14 +122,16 @@ export default {
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
operateType: operateType, operateType: operateType,
deviceId: deviceId deviceId: deviceId
}).then(res => { }).then((res) => {
this.sprayDevList = res.result this.sprayDevList = res.result
}) })
}, },
getSprayDevList() { getSprayDevList() {
sprayDevListApi({ projectSn: this.$store.state.projectSn }).then(res => { sprayDevListApi({ projectSn: this.$store.state.projectSn }).then(
(res) => {
this.sprayDevList = res.result this.sprayDevList = res.result
}) }
)
}, },
/** 查询 */ /** 查询 */
handleQuery() { handleQuery() {
@ -172,7 +174,7 @@ export default {
projectSn: this.projectSn, projectSn: this.projectSn,
deviceId: this.currentDevDetail.deviceId deviceId: this.currentDevDetail.deviceId
} }
selectDustNoiseDataApi(data).then(res => { selectDustNoiseDataApi(data).then((res) => {
// console.log(res) // console.log(res)
this.dustData_24 = res.result this.dustData_24 = res.result
this.createdEcharts2() this.createdEcharts2()
@ -185,7 +187,7 @@ export default {
projectSn: this.$store.state.projectSn projectSn: this.$store.state.projectSn
} }
console.log(data) console.log(data)
getRealTimeDustNoiseDataApi(data).then(res => { getRealTimeDustNoiseDataApi(data).then((res) => {
if (res.code == 200) { if (res.code == 200) {
console.log('获取环境设备详情数据------', res.result) console.log('获取环境设备详情数据------', res.result)
if (res.result != null) { if (res.result != null) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -1,13 +1,17 @@
<template> <template>
<Card title="用水用电碳排放图"> <Card title="用水用电碳排放图">
<div class="containerBox"> <div class="containerBox">
<img src="./image/img2.png" alt=""> <img src="./image/leftCenterImage.png" alt="" />
</div> </div>
</Card> </Card>
</template> </template>
<script> <script>
import { environmentDevList, environmentAlarmList, environmentAlarmTypeList } from '@/assets/js/api/environmentManage' import {
environmentDevList,
environmentAlarmList,
environmentAlarmTypeList
} from '@/assets/js/api/environmentManage'
import Card from '../components/Card.vue' import Card from '../components/Card.vue'
export default { export default {
@ -243,19 +247,27 @@ export default {
this.getList() this.getList()
}, },
getDevice() { getDevice() {
environmentDevList({ projectSn: this.$store.state.projectSn }).then(result => { environmentDevList({ projectSn: this.$store.state.projectSn }).then(
(result) => {
if (result.success) { if (result.success) {
this.deviceIdArr = result.result this.deviceIdArr = result.result
console.log('get设备列表', this.deviceIdArr) console.log('get设备列表', this.deviceIdArr)
} }
}) }
)
}, },
getList() { getList() {
let timeObj = { let timeObj = {
startTime: this.time ? this.time[0] : '', startTime: this.time ? this.time[0] : '',
endTime: this.time ? this.time[1] : '' endTime: this.time ? this.time[1] : ''
} }
environmentAlarmList(Object.assign(this.pagInfo, { projectSn: this.$store.state.projectSn }, timeObj)).then(result => { environmentAlarmList(
Object.assign(
this.pagInfo,
{ projectSn: this.$store.state.projectSn },
timeObj
)
).then((result) => {
if (result.success) { if (result.success) {
this.List = result.result.records this.List = result.result.records
this.pagInfo.total = result.result.total this.pagInfo.total = result.result.total
@ -264,7 +276,7 @@ export default {
}) })
}, },
getEnvironmentAlarmTypeList() { getEnvironmentAlarmTypeList() {
environmentAlarmTypeList().then(result => { environmentAlarmTypeList().then((result) => {
if (result.success) this.alarmTypeIdArr = result.result if (result.success) this.alarmTypeIdArr = result.result
}) })
}, },
@ -300,7 +312,6 @@ export default {
height: 81%; height: 81%;
margin-top: 40px; margin-top: 40px;
margin-left: 73px; margin-left: 73px;
} }
.titleTxt { .titleTxt {
font-size: 18px; font-size: 18px;

View File

@ -2,7 +2,7 @@
<Card title="总碳排放"> <Card title="总碳排放">
<!-- 环境监测 --> <!-- 环境监测 -->
<div class="contentBox"> <div class="contentBox">
<img src="./image/img1.png" alt=""> <img src="./image/leftTopImage.png" alt="" />
</div> </div>
</Card> </Card>
</template> </template>
@ -48,7 +48,6 @@ margin-left: 15px;
.ps { .ps {
font-size: 12px; font-size: 12px;
} }
} }
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<Card title="分区域碳排放图"> <Card title="分区域碳排放图">
<div class="contentBox"> <div class="contentBox">
<img src="./image/img3.png" alt=""> <img src="./image/leftBottomImg.png" alt="" />
</div> </div>
</Card> </Card>
</template> </template>
@ -9,7 +9,11 @@
<script> <script>
import Card from '../components/Card.vue' import Card from '../components/Card.vue'
import echarts from 'echarts4' import echarts from 'echarts4'
import { getwaterMeterListApi, selectWaterMeterStatisticsApi, getCurrentMonthMeterRecordApi } from '@/assets/js/api/waterManage' import {
getwaterMeterListApi,
selectWaterMeterStatisticsApi,
getCurrentMonthMeterRecordApi
} from '@/assets/js/api/waterManage'
export default { export default {
components: { Card }, components: { Card },
data() { data() {
@ -33,7 +37,7 @@ export default {
methods: { methods: {
/// ///
select(i) { select(i) {
this.index = i; this.index = i
}, },
//echart //echart
@ -46,7 +50,9 @@ export default {
this.count = res.result.count this.count = res.result.count
const res2 = await selectWaterMeterStatisticsApi(this.formInline) const res2 = await selectWaterMeterStatisticsApi(this.formInline)
this.monthWaterList = res2.result.monthWaterList this.monthWaterList = res2.result.monthWaterList
const res3 = await getwaterMeterListApi({ projectSn: this.$store.state.projectSn }) const res3 = await getwaterMeterListApi({
projectSn: this.$store.state.projectSn
})
console.log('res3', res3) console.log('res3', res3)
// domecharts // domecharts
@ -244,7 +250,10 @@ export default {
} }
} }
}, },
data: [1036, 3693, 2962, 3810, 2519, 1915, 1748, 4675, 6209, 4323, 2865, 4298] data: [
1036, 3693, 2962, 3810, 2519, 1915, 1748, 4675, 6209, 4323, 2865,
4298
]
} }
] ]
} }
@ -326,7 +335,6 @@ export default {
::v-deep .el-date-editor { ::v-deep .el-date-editor {
cursor: pointer; cursor: pointer;
.el-range__icon { .el-range__icon {
line-height: 20px; line-height: 20px;
color: #6ee4f0; color: #6ee4f0;
} }
@ -350,5 +358,4 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
</style> </style>

View File

@ -1,8 +1,7 @@
<template> <template>
<Card title="施工碳排放"> <Card title="施工碳排放">
<div class="contentBox"> <div class="contentBox">
<img src="./image/img7.png" alt=""> <img src="./image/rightCenterImage.png" alt="" />
</div> </div>
</Card> </Card>
</template> </template>
@ -12,7 +11,10 @@
// getwaterMeterListApi,selectWaterMeterStatisticsApi, // getwaterMeterListApi,selectWaterMeterStatisticsApi,
// getCurrentMonthMeterRecordApi,} from "@/assets/js/api/waterManage"; // getCurrentMonthMeterRecordApi,} from "@/assets/js/api/waterManage";
import {getCurrentMonthMeterRecordApi,selectWaterMeterStatisticsApi} from'@/assets/js/api/electricDevManage' import {
getCurrentMonthMeterRecordApi,
selectWaterMeterStatisticsApi
} from '@/assets/js/api/electricDevManage'
import Card from '../components/Card.vue' import Card from '../components/Card.vue'
import echarts from 'echarts4' import echarts from 'echarts4'
export default { export default {
@ -31,8 +33,8 @@ export default {
deviceIdArr: [], deviceIdArr: [],
show: true, show: true,
formInline: { formInline: {
yearTime: "", yearTime: '',
ammeterNo: "", ammeterNo: '',
projectSn: this.$store.state.projectSn projectSn: this.$store.state.projectSn
}, },
realTimeData: { realTimeData: {
@ -42,16 +44,15 @@ export default {
monthUserWater: 0, monthUserWater: 0,
thresholdValue: 0, thresholdValue: 0,
ammeterL: '', ammeterL: '',
count:'', count: ''
}, },
gateStatus: '' gateStatus: ''
}; }
}, },
mounted() { mounted() {
this.containerEcharts() this.containerEcharts()
}, },
methods: { methods: {
async containerEcharts() { async containerEcharts() {
const res = await getCurrentMonthMeterRecordApi(this.formInline) const res = await getCurrentMonthMeterRecordApi(this.formInline)
if (res.result.ammeter === null) { if (res.result.ammeter === null) {
@ -60,7 +61,7 @@ export default {
this.ammeter = res.result.ammeter this.ammeter = res.result.ammeter
this.count = res.result.count this.count = res.result.count
const res1 = await selectWaterMeterStatisticsApi(this.formInline) const res1 = await selectWaterMeterStatisticsApi(this.formInline)
console.log('res1',res1); console.log('res1', res1)
if (res1.result.monthWaterList.length === 0) { if (res1.result.monthWaterList.length === 0) {
this.realTimeData.monthUserWater = 0 this.realTimeData.monthUserWater = 0
@ -156,7 +157,20 @@ export default {
xAxis: { xAxis: {
boundaryGap: false, boundaryGap: false,
type: 'category', type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], data: [
'1月',
'2月',
'3月',
'4月',
'5月',
'6月',
'7月',
'8月',
'9月',
'10月',
'11月',
'12月'
],
axisLabel: { axisLabel: {
color: '#fff' color: '#fff'
}, },
@ -314,8 +328,6 @@ export default {
.span3 { .span3 {
padding-right: 5px; padding-right: 5px;
} }
} }
} }
} }