Commit 8529d57e authored by xiexingan's avatar xiexingan

调整

parent 11c2677f
<template> <template>
<div class="hall full-height"> <div class="hall full-height">
<cardList cardListTitle="候车大厅控制"> <cardList cardListTitle="候车大厅控制">
<div slot="content" > <div slot="content">
<div> <div>
<el-form :inline="true" :model="formData" label-width="100"> <el-form :inline="true" :model="formData" label-width="100">
<el-row>
<el-col :span="12">
<el-form-item label="定时功能启止时间:"> <el-form-item label="定时功能启止时间:">
<el-date-picker <el-date-picker size="mini" style="width: 200px" type="date" placeholder="" v-model="formData.startTime">
size="mini"
style="width: 200px"
type="date"
placeholder=""
>
</el-date-picker> </el-date-picker>
<span style="padding: 0 10px"></span> <span style="padding: 0 10px"></span>
<el-date-picker <el-date-picker size="mini" style="width: 200px" type="date" placeholder="" v-model="formData.endTime">
size="mini"
style="width: 200px"
type="date"
placeholder=""
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="定时设定按钮:"> <el-form-item label="定时设定按钮:">
<el-switch active-color="#0097FF" inactive-color="#ff4949"> <el-switch active-color="#47B320" v-model="formData.timing" inactive-color="#ff4949">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="温度设定:">
<el-input
style="width: 124px"
v-model="formData.user"
placeholder=""
></el-input>
<!-- <el-button type="primary" >查询</el-button> -->
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :md="12" :lg="4">
<el-form-item label="节能模式:"> <el-form-item label="节能模式:">
<el-switch <el-switch active-color="#47B320" v-model="formData.saving" inactive-color="#ff4949" ></el-switch>
active-color="#13ce66"
inactive-color="#ff4949"
></el-switch>
</el-form-item> </el-form-item>
</el-col> <span class="btn-group">
<el-col :md="12" :lg="10" class="btn-group">
<el-form-item label=""> <el-form-item label="">
<el-button type="primary" size="mini">编辑</el-button> <el-button type="primary" size="mini">温度设定</el-button>
<el-button type="primary" size="mini"> <el-button type="primary" size="mini">
<img src="../../home/image/sun_icon.png" alt=""> <img src="../../home/image/sun_icon.png" alt="">
自然通风</el-button> 自然通风
</el-button>
<el-button type="primary" size="mini"> <el-button type="primary" size="mini">
<img src="../../home/image/fan_icon.png" alt=""> <img src="../../home/image/fan_icon.png" alt="">
机械通风</el-button> 机械通风
</el-button>
<el-button type="primary" size="mini"> <el-button type="primary" size="mini">
<img src="../../home/image/nan_fan_icon.png" alt=""> <img src="../../home/image/nan_fan_icon.png" alt="">
供暖</el-button> 供暖
</el-button>
</el-form-item> </el-form-item>
</el-col> </span>
</el-row> </el-row>
</el-form>
</el-form>
</div> </div>
<!-- tabs --> <!-- tabs -->
<div style="margin-bottom: 20px"> <div style="margin-bottom: 20px">
<!-- <en-tabs :tabList="tabList"></en-tabs> --> <!-- <en-tabs :tabList="tabList"></en-tabs> -->
<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" :name="item.value" v-for="(item, index) in tabList" :key="index"></el-tab-pane>
:label="item.label" </el-tabs>
:name="item.value" </div>
v-for="(item, index) in tabList"
:key="index"
></el-tab-pane>
</el-tabs>
</div>
</div> </div>
<!-- table --> <!-- table -->
<enTable v-on:handleBtnClick="handleBtnClick" :tableData="tableData" :tableColums="tableColums" :isShowOp="true" isShowPage="true"> <enTable v-on:handleBtnClick="handleBtnClick" :tableData="tableData" :tableColums="tableColums" :isShowOp="true" isShowPage="true">
<template v-slot:operation='scope'> <template v-slot:operation='scope'>
<el-button type="text" @click="hallModalVisible=true">编辑</el-button> <el-button type="text" @click="hallModalVisible=true">编辑</el-button>
</template> </template>
</enTable> </enTable>
</div> </div>
</cardList> </cardList>
<hall-modal v-on:cancelhandle="cancelhandle" :hallModalVisible="hallModalVisible"></hall-modal> <hall-modal v-on:cancelhandle="cancelhandle" :hallModalVisible="hallModalVisible"></hall-modal>
hallModalVisible hallModalVisible
</div> </div>
</template> </template>
...@@ -104,7 +68,13 @@ import cardList from '../../components/cardList' ...@@ -104,7 +68,13 @@ import cardList from '../../components/cardList'
import enTable from '../../components/enTable' import enTable from '../../components/enTable'
import enTabs from '../../components/enTabs' import enTabs from '../../components/enTabs'
import hallModal from './components/hallModal' import hallModal from './components/hallModal'
import { tableDataOne, tableColumsOne, tableDataTwo, tableDataThree, tableDataFour } from './config' import {
tableDataOne,
tableColumsOne,
tableDataTwo,
tableDataThree,
tableDataFour
} from './config'
export default { export default {
components: { components: {
...@@ -115,24 +85,24 @@ export default { ...@@ -115,24 +85,24 @@ export default {
}, },
watch: { watch: {
activeTab(val) { activeTab(val) {
switch (val) { switch (val) {
case '01': case '01':
this.tableColums = tableColumsOne this.tableColums = tableColumsOne
this.tableData = tableDataOne this.tableData = tableDataOne
break break
case '02': case '02':
this.tableColums = tableColumsOne this.tableColums = tableColumsOne
this.tableData = tableDataTwo this.tableData = tableDataTwo
break break
case '03': case '03':
this.tableColums = tableColumsOne this.tableColums = tableColumsOne
this.tableData = tableDataThree this.tableData = tableDataThree
break break
case '04': case '04':
this.tableColums = tableColumsOne this.tableColums = tableColumsOne
this.tableData = tableDataFour this.tableData = tableDataFour
break break
} }
} }
}, },
data() { data() {
...@@ -163,36 +133,35 @@ export default { ...@@ -163,36 +133,35 @@ export default {
} }
}, },
methods: { methods: {
cancelhandle() { cancelhandle() {
this.$nextTick(() => { this.$nextTick(() => {
this.hallModalVisible = false this.hallModalVisible = false
}) })
}, },
handleBtnClick() { handleBtnClick() {
this.hallModalVisible = true this.hallModalVisible = true
} }
} }
} }
</script> </script>
<style lang="scss" > <style lang="scss" >
.hall { .hall {
height: 100%; height: 100%;
padding:0px 0 40px 0px; padding: 0px 0 40px 0px;
.el-input__inner { .el-input__inner {
height: 30px; height: 30px;
} }
.el-form-item{ .el-form-item {
margin-bottom: 10px; margin-bottom: 10px;
} }
.el-form-item__label { .el-form-item__label {
padding: 0; padding: 0;
} }
.btn-group{ .btn-group {
img{ img {
width: 10px; width: 10px;
height: 9px; height: 9px;
} }
} }
} }
</style> </style>
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