Commit 37f9adcc authored by xiexingan's avatar xiexingan

提交

parent 9991ddc7
...@@ -3,33 +3,40 @@ ...@@ -3,33 +3,40 @@
title="设定频率" title="设定频率"
:visible.sync="hallModalVisible" :visible.sync="hallModalVisible"
:append-to-body="true" :append-to-body="true"
width='30%'
> >
<el-form> <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" style='width:300px' v-model="frequency"></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 size="mini" @click="hallModalVisible=false">取 消</el-button>
<el-button type="primary" @click="cancelhandle">确 定</el-button> <el-button size="mini" 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'],
data() { data() {
return { return {
formLabelWidth: '120px' formLabelWidth: '120px',
hallModalVisible: false,
frequency: ''
} }
}, },
methods: { methods: {
init(data) {
console.log('data', data)
this.frequency = data.current_frequency
this.hallModalVisible = true
},
cancelhandle() { cancelhandle() {
this.$emit('cancelhandle') this.hallModalVisible = false
} }
} }
} }
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
> >
<el-button <el-button
type="text" type="text"
@click="handleBtnClick" @click="handleBtnClick(scope.scope.row)"
v-if="activeTab != 'b45827c068254695864ee3c1d42573cb'" v-if="activeTab != 'b45827c068254695864ee3c1d42573cb'"
>设置频率</el-button >设置频率</el-button
> >
...@@ -150,8 +150,7 @@ ...@@ -150,8 +150,7 @@
@parentMethod="getDataList" @parentMethod="getDataList"
></table-pagination> ></table-pagination>
<hall-modal <hall-modal
v-on:cancelhandle="cancelhandle" ref='hallModal'
:hallModalVisible="hallModalVisible"
></hall-modal> ></hall-modal>
</div> </div>
</template> </template>
...@@ -416,8 +415,11 @@ export default { ...@@ -416,8 +415,11 @@ export default {
this.hallModalVisible = false this.hallModalVisible = false
}) })
}, },
handleBtnClick() { // 设置频率
this.hallModalVisible = true handleBtnClick(data) {
this.$nextTick(() => {
this.$refs.hallModal.init(data)
})
}, },
handleType(id) { handleType(id) {
if (id !== this.currentId) { if (id !== this.currentId) {
......
This diff is collapsed.
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
el-input(size="mini", style="width: 60px", v-model="speed") el-input(size="mini", style="width: 60px", v-model="speed")
span &nbsp;转 span &nbsp;转
el-button(type="primary", size="mini", style="margin-left: 10px") 设定 el-button(type="primary", size="mini", style="margin-left: 10px") 设定
el-col.text-size(:span="24") 当前频率: el-col.text-size(:span="24" v-if='params.length') 当前频率:
span(style="color: blue") {{ params[0].current_frequency }} span(style="color: blue") {{ params[0].current_frequency }}
span &nbsp;转/分 span &nbsp;转/分
//- 卷帘门 //- 卷帘门
......
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