Commit 73204c6f authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 5983515a
<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.
...@@ -51,16 +51,17 @@ ...@@ -51,16 +51,17 @@
</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>
</cardList> </cardList>
<hall-modal v-on:cancelhandle="cancelhandle" :hallModalVisible="hallModalVisible"></hall-modal> <hall-modal v-on:cancelhandle="cancelhandle" :hallModalVisible="hallModalVisible"></hall-modal>
hallModalVisible
</div> </div>
</template> </template>
<script> <script>
...@@ -71,9 +72,9 @@ import hallModal from './components/hallModal' ...@@ -71,9 +72,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 {
...@@ -91,17 +92,13 @@ export default { ...@@ -91,17 +92,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
} }
} }
}, },
...@@ -114,18 +111,14 @@ export default { ...@@ -114,18 +111,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: ' 水泵'
} }
], ],
...@@ -140,6 +133,9 @@ export default { ...@@ -140,6 +133,9 @@ export default {
}, },
handleBtnClick() { handleBtnClick() {
this.hallModalVisible = true this.hallModalVisible = true
},
statusHandle() {
} }
} }
} }
......
This diff is collapsed.
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