Commit f623e88b authored by xiexingan's avatar xiexingan

Merge

parents a425c5db 32489cfa
<template> <template>
<el-dialog title="编辑" :visible.sync="hallModalVisible" :append-to-body="true"> <el-dialog
<el-form > title="设定频率"
:visible.sync="hallModalVisible"
:append-to-body="true"
>
<el-form>
<el-form-item label="设定频率:" :label-width="formLabelWidth"> <el-form-item label="设定频率:" :label-width="formLabelWidth">
<el-input size="mini" autocomplete="off"></el-input> <el-input size="mini" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="启动控制:" :label-width="formLabelWidth"> <!-- <el-form-item label="启动控制:" :label-width="formLabelWidth">
<el-switch ></el-switch> <el-switch></el-switch>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
<div slot="footer" > <div slot="footer">
<el-button @click="cancelhandle">取 消</el-button> <el-button @click="cancelhandle">取 消</el-button>
<el-button type="primary" @click="cancelhandle">确 定</el-button> <el-button type="primary" @click="cancelhandle">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script lang="ts"> <script lang="ts">
export default { export default {
name: "hallModal", name: 'hallModal',
props: ["hallModalVisible"], props: ['hallModalVisible'],
data() { data() {
return { return {
formLabelWidth:'120px', formLabelWidth: '120px'
}; }
}, },
methods:{ methods: {
cancelhandle(){ cancelhandle() {
this.$emit('cancelhandle') this.$emit('cancelhandle')
} }
} }
}; }
</script> </script>
This diff is collapsed.
...@@ -50,10 +50,12 @@ ...@@ -50,10 +50,12 @@
</div> </div>
</div> </div>
<!-- table --> <!-- table -->
<enTable v-on:handleBtnClick="handleBtnClick" :tableData="tableData" :tableColums="tableColums" :isShowOp="true" isShowPage="true"> <enTable :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="statusHandle" >开启</el-button>
<el-button type="text" @click="statusHandle">关闭</el-button>
<el-button type="text" @click="statusHandle" v-if="activeTab=='01'">故障复位</el-button>
<el-button type="text" @click="handleBtnClick" v-if="activeTab!='01'">设置频率</el-button>
</template> </template>
</enTable> </enTable>
</div> </div>
...@@ -69,9 +71,9 @@ import hallModal from './components/hallModal' ...@@ -69,9 +71,9 @@ import hallModal from './components/hallModal'
import { import {
tableDataOne, tableDataOne,
tableColumsOne, tableColumsOne,
tableColumsTwo,
tableDataTwo, tableDataTwo,
tableDataThree, tableDataThree
tableDataFour
} from './config' } from './config'
export default { export default {
...@@ -89,17 +91,13 @@ export default { ...@@ -89,17 +91,13 @@ export default {
this.tableData = tableDataOne this.tableData = tableDataOne
break break
case '02': case '02':
this.tableColums = tableColumsOne this.tableColums = tableColumsTwo
this.tableData = tableDataTwo this.tableData = tableDataTwo
break break
case '03': case '03':
this.tableColums = tableColumsOne this.tableColums = tableColumsTwo
this.tableData = tableDataThree this.tableData = tableDataThree
break break
case '04':
this.tableColums = tableColumsOne
this.tableData = tableDataFour
break
} }
} }
}, },
...@@ -112,18 +110,14 @@ export default { ...@@ -112,18 +110,14 @@ export default {
tabList: [ tabList: [
{ {
value: '01', value: '01',
label: '热泵'
},
{
value: '02',
label: '风冷热泵机组' label: '风冷热泵机组'
}, },
{ {
value: '03', value: '02',
label: '室内机风柜' label: '室内机风柜'
}, },
{ {
value: '04', value: '03',
label: ' 水泵' label: ' 水泵'
} }
], ],
...@@ -138,6 +132,9 @@ export default { ...@@ -138,6 +132,9 @@ export default {
}, },
handleBtnClick() { handleBtnClick() {
this.hallModalVisible = true this.hallModalVisible = true
},
statusHandle() {
} }
} }
} }
......
This diff is collapsed.
<template> <template>
<div class="office-area-control" style="height:100%;"> <div class="office-area-control" style="height:100%;">
<cardList cardListTitle="办公区域控制"> <cardList cardListTitle="办公区域控制">
<div slot="content" > <div slot="content">
<!-- <enTabs :tabList="officeTabList"></enTabs> --> <!-- <enTabs :tabList="officeTabList"></enTabs> -->
<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"
...@@ -12,165 +12,35 @@ ...@@ -12,165 +12,35 @@
></el-tab-pane> ></el-tab-pane>
</el-tabs> </el-tabs>
<div style="margin-top: 20px"></div> <div style="margin-top: 20px"></div>
<en-table :tableData="tableData" :tableColums="tableColums" :isShowOp="true" isShowPage="true"> <en-table
<template v-slot:operation='scope'> :tableData="tableData"
<el-button type="text">编辑</el-button> :tableColums="tableColums"
:isShowOp="true"
isShowPage="true"
>
<template v-slot:operation="scope">
<el-button type="text" @click="statusHandle">开启</el-button>
<el-button type="text" @click="statusHandle">关闭</el-button>
</template> </template>
</en-table> </en-table>
</div> </div>
</cardList> </cardList>
</div> </div>
</template> </template>
<script > <script>
// const tableColums = [
// {
// align: "center",
// prop: "A",
// label: "设备名称",
// width: 132,
// },
// {
// align: "center",
// prop: "B",
// label: "设备位置",
// // width: 112,
// },
// {
// align: "center",
// prop: "C",
// label: "控制方式",
// width: 132,
// },
// {
// align: "center",
// prop: "D",
// label: "能耗统计",
// width: 132,
// },
// // {
// // align: "center",
// // prop: "E",
// // label: "故障报警",
// // width: 132,
// // },
// // {
// // align: "center",
// // prop: "F",
// // label: "说明",
// // width: 132,
// // },
// {
// align: "center",
// prop: "G",
// label: "设备编号",
// width: 132,
// },
// ];
// const tableData = [
// {
// 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",
// 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",
// },
// ];
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 { tableDataOne, tableColumsOne, tableDataTwo, tableDataThree, tableDataFour } from './config' import {
tableColumsOne,
tableDataOne,
tableDataTwo,
tableDataThree,
tableDataFour,
tableDataFive,
tableDataSix,
tableDataSeven
} from './config'
export default { export default {
name: 'officeAreaControl', name: 'officeAreaControl',
...@@ -188,19 +58,31 @@ export default { ...@@ -188,19 +58,31 @@ export default {
officeTabList: [ officeTabList: [
{ {
value: '01', value: '01',
label: '多联空调' label: '排风机'
}, },
{ {
value: '02', value: '02',
label: '多联新风' label: '机房空调(220V)'
}, },
{ {
value: '03', value: '03',
label: '机房空调' label: '机房空调(380V)'
}, },
{ {
value: '04', value: '04',
label: '排风机' label: '风幕机'
},
{
value: '05',
label: '多联室内机'
},
{
value: '06',
label: '多联室外机'
},
{
value: '07',
label: '换气扇'
} }
] ]
} }
...@@ -224,8 +106,23 @@ export default { ...@@ -224,8 +106,23 @@ export default {
this.tableColums = tableColumsOne this.tableColums = tableColumsOne
this.tableData = tableDataFour this.tableData = tableDataFour
break break
case '05':
this.tableColums = tableColumsOne
this.tableData = tableDataFive
break
case '06':
this.tableColums = tableColumsOne
this.tableData = tableDataSix
break
case '07':
this.tableColums = tableColumsOne
this.tableData = tableDataSeven
break
} }
} }
},
methods: {
statusHandle() {}
} }
} }
</script> </script>
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