Commit 1ae83eac authored by xiexingan's avatar xiexingan

Merge

parents 6ec7caab 0c0b0ee4
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
if (!dom) return if (!dom) return
let myCharts = this.$echarts.init(dom) let myCharts = this.$echarts.init(dom)
let option = { let option = {
color: ['skyblue', '#F2637B', '#8EE0E0', '#FFCC00'], color: ['skyblue', '#F2637B', '#8EE0E0', '#FFCC00', '#4ECB74'],
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
if (!dom) return if (!dom) return
let myCharts = this.$echarts.init(dom) let myCharts = this.$echarts.init(dom)
let option = { let option = {
color: ['skyblue', '#F2637B', '#8EE0E0', '#FFCC00'], color: ['skyblue', '#F2637B', '#8EE0E0', '#FFCC00', '#4ECB74'],
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)' formatter: '{a} <br/>{b} : {c} ({d}%)'
......
<template lang="pug"> <template lang="pug">
.animation .animation
.info-title .info-title
//- | {{ dataForm.name }} | {{ dataForm.name }}
| 空调 //- | 空调
el-button( el-button(
icon="el-icon-close", icon="el-icon-close",
style="float: right", style="float: right",
...@@ -15,16 +15,15 @@ ...@@ -15,16 +15,15 @@
//- div(:class="dataForm.icon+'6'") //- div(:class="dataForm.icon+'6'")
.info-form(style="border-bottom: 1px solid #c0c0c0") .info-form(style="border-bottom: 1px solid #c0c0c0")
.quDetailM .quDetailM
p.leftP 设备名称&nbsp;:&nbsp;&nbsp; 室内机 p.leftP 设备名称&nbsp;:&nbsp;&nbsp; {{ dataForm.name }}
.quDetailM .quDetailM
p.leftP 设备编号&nbsp;:&nbsp;&nbsp; CDSLAKS-009 p.leftP 设备编号&nbsp;:&nbsp;&nbsp; {{ dataForm.code }}
.quDetailM .quDetailM
p.leftP 设备品牌:&nbsp;:&nbsp;&nbsp;格力 p.leftP 设备品牌:&nbsp;:&nbsp;&nbsp;{{ dataForm.name }}
.quDetailM .quDetailM
p.leftP 设备型号:&nbsp;:&nbsp;&nbsp;晶弘33-1 p.leftP 设备型号:&nbsp;:&nbsp;&nbsp;{{ dataForm.equipmentModel }}
.quDetailM .quDetailM
p.leftP 安装日期:&nbsp;:&nbsp;&nbsp;2020-01-04 p.leftP 安装日期:&nbsp;:&nbsp;&nbsp;{{ dataForm.installDate }}
p.leftP 维保日期:&nbsp;:&nbsp;&nbsp;2020-01-15
.info-form .info-form
el-row el-row
el-col(:span="8") el-col(:span="8")
...@@ -38,13 +37,14 @@ ...@@ -38,13 +37,14 @@
el-button(type="primary", size="mini", style="margin-left: 10px") 设定 el-button(type="primary", size="mini", style="margin-left: 10px") 设定
el-row el-row
el-col.text-size(:span="8") 当前已 el-col.text-size(:span="8") 当前已
span(v-if="state == 1") 打开 span(v-if="dataForm.state == 1") 打开
span(v-else) 关闭 span(v-else-if="dataForm.state == 2") 关闭
span(v-else) 故障
el-col.text-size(:span="10") 当前频率: el-col.text-size(:span="10") 当前频率:
span(style="color: blue") 2289 span(style="color: blue") 2289
span &nbsp;转/分 span &nbsp;转/分
.info-state .info-state
span(style="font-weight: bold") 空调运行状态 span(style="font-weight: bold") 设备运行状态
div div
span.type 电压: span.type 电压:
span.value 220 V span.value 220 V
...@@ -82,8 +82,8 @@ export default { ...@@ -82,8 +82,8 @@ export default {
created() {}, created() {},
methods: { methods: {
init(data, stationId) { init(data, stationId) {
console.log('---data:', data)
this.dataForm = data this.dataForm = data
// this.stationId = stationId
this.dataForm.operatorName = this.info.name this.dataForm.operatorName = this.info.name
}, },
...@@ -206,7 +206,6 @@ export default { ...@@ -206,7 +206,6 @@ export default {
color: #46b6f9; color: #46b6f9;
} }
} }
</style> </style>
<style lang="scss"> <style lang="scss">
.instuctions_content { .instuctions_content {
...@@ -218,12 +217,11 @@ export default { ...@@ -218,12 +217,11 @@ export default {
} }
} }
.el-icon-jfktg6{ .el-icon-jfktg6 {
width: 100%; width: 100%;
height: 170px; height: 170px;
text-align: center; text-align: center;
background: url('../../../assets/images/kt.jpg') no-repeat center; background: url('../../../assets/images/kt.jpg') no-repeat center;
background-size:100% 100% ; background-size: 100% 100%;
} }
</style> </style>
<template lang="pug"> <template lang="pug">
el-dialog(:title="type==1?'历史数据':'统计图表'", :close-on-click-modal='false', :visible.sync='visible' width='80%' :append-to-body='true') el-dialog(:title="type==1?'历史数据':'统计图表'", :close-on-click-modal='false', :visible.sync='visible' width='80%' :append-to-body='true')
el-form(:model='dataForm', size='mini' :inline='true' :rules='dataRule' ,ref='dataForm', @keyup.enter.native='dataFormSubmit()', label-width='120px') el-form(:model='dataForm', size='mini' :inline='true' :rules='dataRule' ,ref='dataForm', label-width='120px')
el-form-item(label='设备名称', prop='name') el-form-item(label='设备名称', prop='name')
el-input(v-model='dataForm.name', placeholder='设备名称' readOnly) el-input(v-model='dataForm.name', placeholder='设备名称' readOnly)
el-form-item(label='设备编号', prop='code') el-form-item(label='设备编号', prop='code')
......
<template> <template>
<el-dialog <el-dialog
title="历史数据" title="历史数据"
:visible.sync="historyDataModalVisible" :visible.sync="visible"
:append-to-body="true" :append-to-body="true"
@close="cancelhandle" @close="cancelhandle"
width="1200px" width="1200px"
> >
<el-form :inline="true"> <el-form :inline="true" :model="dataForm">
<el-form-item label="设备名称:" prop="name" style="margin-bottom: 0"> <el-form-item label="设备名称:" prop="name" style="margin-bottom: 0">
<el-input <el-input
v-model="dataForm.name" v-model="dataForm.name"
...@@ -53,33 +53,32 @@ import enTable from '../../../components/enTable' ...@@ -53,33 +53,32 @@ import enTable from '../../../components/enTable'
import tablePagination from '@/pages/components/tablePagination' import tablePagination from '@/pages/components/tablePagination'
const tableColums = [ const tableColums = [
{ {
label: '功率', label: '用电量',
prop: 'qq', prop: 'electric_energy',
width: 200,
align: 'center'
},
{
label: '设备状态',
prop: 'ww',
width: 200, width: 200,
align: 'center' align: 'center'
}, },
// {
// label: '设备状态',
// prop: 'status',
// width: 200,
// align: 'center'
// },
{ {
label: '采集时间', label: '采集时间',
prop: 'ee', prop: 'create_time',
// width:200, // width:200,
align: 'center' align: 'center'
} }
] ]
export default { export default {
name: 'historyDataModal',
props: ['historyDataModalVisible'],
components: { components: {
tablePagination, tablePagination,
enTable enTable
}, },
data() { data() {
return { return {
visible: false,
formLabelWidth: '0px', formLabelWidth: '0px',
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
...@@ -98,6 +97,7 @@ export default { ...@@ -98,6 +97,7 @@ export default {
}, },
methods: { methods: {
init(data) { init(data) {
this.visible = true
this.dataForm = data this.dataForm = data
this.currentActive = 1 this.currentActive = 1
this.getDataList() //获取历史数据列表 this.getDataList() //获取历史数据列表
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
}) })
}, },
cancelhandle() { cancelhandle() {
this.$emit('cancelhandle') this.visible = false
}, },
// 当日 ,本周 // 当日 ,本周
handleDate(i) { handleDate(i) {
......
<template> <template>
<el-dialog <el-dialog
title="统计图表" title="统计图表"
:visible.sync="statisticModalVisible" :visible.sync="visible"
:append-to-body="true" :append-to-body="true"
@close="cancelhandlePic" @close="cancelhandlePic"
> >
<el-form :inline="true"> <el-form :inline="true" :model="dataForm">
<el-form-item label="设备名称:" style="margin-bottom: 0"> <el-form-item label="设备名称:" prop="name" style="margin-bottom: 0">
<el-input size="mini" autocomplete="off"></el-input> <el-input
v-model="dataForm.name"
size="mini"
autocomplete="off"
readOnly
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="设备编号:" style="margin-bottom: 0"> <el-form-item label="设备编号:" prop="code" style="margin-bottom: 0">
<el-input size="mini" autocomplete="off"></el-input> <el-input
v-model="dataForm.code"
size="mini"
autocomplete="off"
readOnly
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="数据起止阶段:"> <el-form-item label="数据起止阶段:">
<!-- <el-date-picker <!-- <el-date-picker
...@@ -56,6 +66,7 @@ export default { ...@@ -56,6 +66,7 @@ export default {
return { return {
formLabelWidth: '120px', formLabelWidth: '120px',
dataForm: {}, dataForm: {},
visible: false,
category: null, category: null,
typeList: [ typeList: [
{ name: '当日', id: 1 }, { name: '当日', id: 1 },
...@@ -69,6 +80,7 @@ export default { ...@@ -69,6 +80,7 @@ export default {
}, },
methods: { methods: {
init(data) { init(data) {
this.visible = true
this.dataForm = data this.dataForm = data
this.currentActive = 1 this.currentActive = 1
this.getDataListTb() this.getDataListTb()
...@@ -78,6 +90,7 @@ export default { ...@@ -78,6 +90,7 @@ export default {
url: this.$http.adornUrl('/analysis/getEnergyTb'), url: this.$http.adornUrl('/analysis/getEnergyTb'),
method: 'get', method: 'get',
params: this.$http.adornParams({ params: this.$http.adornParams({
resourceType: this.dataForm.type,
resourceId: this.dataForm.id, resourceId: this.dataForm.id,
type: this.currentActive type: this.currentActive
}) })
...@@ -89,7 +102,7 @@ export default { ...@@ -89,7 +102,7 @@ export default {
}) })
}, },
cancelhandlePic() { cancelhandlePic() {
this.$emit('cancelhandlePic') this.visible = false
}, },
// 当日 ,本周 // 当日 ,本周
handleDate(i) { handleDate(i) {
......
...@@ -87,12 +87,10 @@ ...@@ -87,12 +87,10 @@
<history-data-modal <history-data-modal
:historyDataModalVisible="historyDataModalVisible" :historyDataModalVisible="historyDataModalVisible"
ref="historyDataModal" ref="historyDataModal"
v-on:cancelhandle="cancelhandle"
></history-data-modal> ></history-data-modal>
<statistic-pic-table-modal <statistic-pic-table-modal
:statisticModalVisible="statisticModalVisible" :statisticModalVisible="statisticModalVisible"
ref="statisticPicTableModal" ref="statisticPicTableModal"
v-on:cancelhandlePic="cancelhandlePic"
></statistic-pic-table-modal> ></statistic-pic-table-modal>
</div> </div>
</template> </template>
...@@ -207,17 +205,6 @@ export default { ...@@ -207,17 +205,6 @@ export default {
} }
}) })
}, },
cancelhandle() {
this.$nextTick(() => {
this.historyDataModalVisible = false
})
},
cancelhandlePic() {
this.$nextTick(() => {
this.statisticModalVisible = false
})
},
openHistoryHandle(data) { openHistoryHandle(data) {
console.log('用电:', data) console.log('用电:', data)
this.historyDataModalVisible = true this.historyDataModalVisible = true
......
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
//清空Cookie //清空Cookie
this.clearCookie() this.clearCookie()
} }
this.$parent.getDateList(); this.$parent.getDateList()
} else { } else {
sessionStorage.removeItem('uuid') sessionStorage.removeItem('uuid')
sessionStorage.removeItem('token') sessionStorage.removeItem('token')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment