Commit 45865f7e authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 32489cfa
<template> <template>
<div class="energy-page"> <div class="energy-page">
<cardList cardListTitle="能耗数据分析"> <cardList cardListTitle="能耗数据分析">
<div slot="right" > <div slot="right">
<!-- <span <!-- <span
:class="activeIndex === index ? 'active-hight-linght' : ''" :class="activeIndex === index ? 'active-hight-linght' : ''"
class="date-text" class="date-text"
@click="activehandle(item, index)" @click="activehandle(item, index)"
...@@ -20,28 +20,32 @@ ...@@ -20,28 +20,32 @@
<!-- </el-date-picker> --> <!-- </el-date-picker> -->
<!-- <i style=" padding-left:20px;padding-right: 20px;color:#21acfc" class="el-icon-s-unfold"></i> --> <!-- <i style=" padding-left:20px;padding-right: 20px;color:#21acfc" class="el-icon-s-unfold"></i> -->
<!-- <i class="el-icon-printer" style="color:#21acfc"></i> --> <!-- <i class="el-icon-printer" style="color:#21acfc"></i> -->
<el-button size="mini" type="primary" @click="toPowerPage">图形/列表</el-button> <el-button size="mini" type="primary" @click="toPowerPage"
</div> >图形/列表</el-button
<div slot="content" >
<div >
<!-- <enTabs :tabList="energyTabList"></enTabs> -->
<el-tabs class="en-tabs" v-model="activetap" >
<el-row style="padding-top:15px">
<el-col :span="10">
<span>时间范围:</span>
<el-date-picker
size="mini"
type="daterange"
range-separator="~"
start-placeholder="开始日期"
end-placeholder="结束日期"
> >
</el-date-picker> </div>
</el-col> <div slot="content">
<el-col :span="4"> <div>
<el-button type="primary" size="mini" icon="el-icon-search">查询</el-button> <!-- <enTabs :tabList="energyTabList"></enTabs> -->
</el-col> <el-tabs class="en-tabs" v-model="activetap">
</el-row> <el-row style="padding-top: 15px">
<el-col :span="10">
<span>时间范围:</span>
<el-date-picker
size="mini"
type="daterange"
range-separator="~"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-col>
<el-col :span="4">
<el-button type="primary" size="mini" icon="el-icon-search"
>查询</el-button
>
</el-col>
</el-row>
<el-tab-pane <el-tab-pane
:label="item.label" :label="item.label"
:name="item.value" :name="item.value"
...@@ -51,9 +55,9 @@ ...@@ -51,9 +55,9 @@
</el-tabs> </el-tabs>
</div> </div>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<energyChart></energyChart> <energyChart></energyChart>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</cardList> </cardList>
...@@ -61,74 +65,90 @@ ...@@ -61,74 +65,90 @@
</template> </template>
<script> <script>
import cardList from "../../components/cardList"; import cardList from '../../components/cardList'
import enTabs from "../../components/enTabs"; import enTabs from '../../components/enTabs'
// import enTable from '../../eq/hall/components/enTable' // import enTable from '../../eq/hall/components/enTable'
import energyChart from "../../components/energyTotalCharts"; import energyChart from '../../components/energyTotalCharts'
export default { export default {
name: "energypage", name: 'energypage',
components: { components: {
cardList, cardList,
enTabs, enTabs,
energyChart, energyChart
}, },
data() { data() {
return { return {
activeIndex: 1, activeIndex: 1,
activetap: "01", activetap: '01',
dateList: [ dateList: [
// { // {
// value: "01", // value: "01",
// label: "时段", // label: "时段",
// }, // },
{ {
value: "02", value: '02',
label: "今日", label: '今日'
}, },
{ {
value: "03", value: '03',
label: "本周", label: '本周'
}, },
{ {
value: "04", value: '04',
label: "本月", label: '本月'
}, },
{ {
value: "05", value: '05',
label: "全年", label: '全年'
}, }
], ],
energyTabList: [ energyTabList: [
{ {
value: "01", value: '01',
label: "全部", label: '全部'
}, },
{ {
value: "02", value: '02',
label: "排风机", label: '排风机'
}, },
{ {
value: "03", value: '03',
label: "多联空调", label: '机房空调(220V)'
}, },
{ {
value: "04", value: '04',
label: " 多联新风", label: '机房空调(380V)'
}, },
], {
}; value: '05',
label: '风幕机'
},
{
value: '06',
label: '风冷热泵机组'
},
{
value: '07',
label: '室内机风柜'
},
{
value: '08',
label: '多联室外机'
}
]
}
}, },
methods: { methods: {
activehandle(item, index) { activehandle(item, index) {
this.activeIndex = index; this.activeIndex = index
}, },
toPowerPage(){ toPowerPage() {
this.$router.push({ this.$router.push({
path:'/kb/power' path: '/kb/power'
}) })
}, }
}, }
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
......
...@@ -3,12 +3,14 @@ ...@@ -3,12 +3,14 @@
<cardList cardListTitle="用电数据"> <cardList cardListTitle="用电数据">
<div slot="right"> <div slot="right">
<!-- <i class="el-icon-menu"></i> --> <!-- <i class="el-icon-menu"></i> -->
<el-button size="mini" @click="toEnergyPage" type="primary">综合图形</el-button> <el-button size="mini" @click="toEnergyPage" type="primary"
>综合图形</el-button
>
</div> </div>
<div slot="content"> <div slot="content">
<!-- <enTabs ></enTabs> --> <!-- <enTabs ></enTabs> -->
<div> <div>
<el-tabs class="en-tabs" v-model="activeTab" > <el-tabs class="en-tabs" v-model="activeTab">
<el-tab-pane <el-tab-pane
:label="item.label" :label="item.label"
:name="item.value" :name="item.value"
...@@ -55,10 +57,12 @@ ...@@ -55,10 +57,12 @@
:isShowOp="true" :isShowOp="true"
isShowPage="true" isShowPage="true"
> >
<template v-slot:operation='scope'> <template v-slot:operation="scope">
<el-button type="text" @click="openHistoryHandle">历史数据</el-button> <el-button type="text" @click="openHistoryHandle"
>历史数据</el-button
>
<el-button type="text" @click="openPicTHandle">统计图表</el-button> <el-button type="text" @click="openPicTHandle">统计图表</el-button>
</template> </template>
</enTable> </enTable>
</div> </div>
</cardList> </cardList>
...@@ -72,217 +76,150 @@ ...@@ -72,217 +76,150 @@
></statistic-pic-table-modal> ></statistic-pic-table-modal>
</div> </div>
</template> </template>
<script > <script>
import cardList from "../../components/cardList"; import cardList from '../../components/cardList'
import enTabs from "../../components/enTabs"; import enTabs from '../../components/enTabs'
import enTable from "../../components/enTable"; import enTable from '../../components/enTable'
import historyDataModal from "./components/historyDataModal"; import historyDataModal from './components/historyDataModal'
import statisticPicTableModal from "./components/statisticPicTableModal"; import statisticPicTableModal from './components/statisticPicTableModal'
const tableColums = [ const tableColums = [
{ {
align: "center", align: 'center',
prop: "A", prop: 'A',
label: "设备名称", label: '设备名称',
width: 132, width: 162
}, },
{ {
align: "center", align: 'center',
prop: "G", prop: 'B',
label: "设备编号", label: '设备位置'
width: 132, // width: 182
}, },
{ {
align: "center", align: 'center',
prop: "B", prop: 'C',
label: "设备位置", label: '当日功耗',
width: 112, width: 162
}, },
{ {
align: "center", align: 'center',
prop: "C", prop: 'D',
label: "当日功耗", label: '当月功耗',
width: 132, width: 162
}, },
{ {
align: "center", align: 'center',
prop: "D", prop: 'E',
label: "当月功耗", label: '设备状态',
width: 132, width: 152
}, },
{ {
align: "center", align: 'center',
prop: "E", prop: 'F',
label: "设备状态", label: '设备编号',
}, width: 152
]; }
]
const tableData = [ const tableData = [
{ {
A: "A", A: '设备1',
B: "YA01254N51", B: '左侧办公房屋',
C: "正常", C: '11',
D: "110Hz", D: '1100',
E: "", E: '开启',
F: "说明", F: 'QY0001'
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
}, },
{ {
A: "A", A: '设备2',
B: "YA01254N51", B: '左侧办公房屋',
C: "正常", C: '11',
D: "110Hz", D: '1100',
E: "", E: '开启',
F: "说明", F: 'QY0002'
G: "QY0001", }
}, ]
{
A: "A",
B: "YA01254N51",
C: "正常",
D: "110Hz",
E: "",
F: "说明",
G: "QY0001",
},
];
export default { export default {
name: "useElectroData", name: 'useElectroData',
components: { components: {
cardList, cardList,
enTabs, enTabs,
enTable, enTable,
historyDataModal, historyDataModal,
statisticPicTableModal, statisticPicTableModal
}, },
data() { data() {
return { return {
activeTab: "01", activeTab: '01',
historyDataModalVisible: false, historyDataModalVisible: false,
statisticModalVisible: false, statisticModalVisible: false,
tableColums, tableColums,
tableData, tableData,
electroTabList: [ electroTabList: [
{ {
value: "01", value: '01',
label: "全部", label: '全部'
},
{
value: '02',
label: '排风机'
},
{
value: '03',
label: '机房空调(220V)'
},
{
value: '04',
label: '机房空调(380V)'
}, },
{ {
value: "02", value: '05',
label: "排风机", label: '风幕机'
}, },
{ {
value: "03", value: '06',
label: "多联空调", label: '风冷热泵机组'
}, },
{ {
value: "04", value: '07',
label: "多联新风", label: '室内机风柜'
}, },
], {
}; value: '08',
label: '多联室外机'
}
]
}
}, },
methods: { methods: {
cancelhandle() { cancelhandle() {
this.$nextTick(() => { this.$nextTick(() => {
this.historyDataModalVisible = false; this.historyDataModalVisible = false
}); })
}, },
cancelhandlePic() { cancelhandlePic() {
this.$nextTick(() => { this.$nextTick(() => {
this.statisticModalVisible = false; this.statisticModalVisible = false
}); })
}, },
openHistoryHandle(){ openHistoryHandle() {
this.historyDataModalVisible = true; this.historyDataModalVisible = true
}, },
openPicTHandle(){ openPicTHandle() {
this.$nextTick(()=>{ this.$nextTick(() => {
this.statisticModalVisible = true; this.statisticModalVisible = true
}) })
},
}, toEnergyPage() {
toEnergyPage(){ this.$router.push({
this.$router.push({ path: '/analysis/energy'
path:'/analysis/energy' })
}) }
}, }
}, }
};
</script> </script>
<style lang="scss"> <style lang="scss">
.use-electro-data { .use-electro-data {
padding: 0px 0 40px 0px; padding: 0px 0 40px 0px;
.el-form-item { .el-form-item {
...@@ -290,5 +227,4 @@ export default { ...@@ -290,5 +227,4 @@ export default {
margin-top: 15px; margin-top: 15px;
} }
} }
</style>
</style>
\ No newline at end of file
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