Commit f1034c2e by hayden

设备管理-设备网关信息:新增筛选条件门店

parent ad2534cd
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="所属门店" prop="storeId">
<el-select v-model="queryParams.storeId" placeholder="请选择所属门店" @change="onGetRoomListByStoreId" clearable>
<el-option
v-for="item in stores"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="设备名称" prop="devName"> <el-form-item label="设备名称" prop="devName">
<el-input <el-input
v-model="queryParams.devName" v-model="queryParams.devName"
...@@ -297,6 +308,7 @@ export default { ...@@ -297,6 +308,7 @@ export default {
components: {selectStore}, components: {selectStore},
data() { data() {
return { return {
stores: [],
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
...@@ -326,7 +338,8 @@ export default { ...@@ -326,7 +338,8 @@ export default {
devVer: null, devVer: null,
devType: null, devType: null,
group: null, group: null,
status: null status: null,
storeId: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -360,7 +373,7 @@ export default { ...@@ -360,7 +373,7 @@ export default {
methods: { methods: {
onGetAllStoreList(){ onGetAllStoreList(){
allList().then(res => { allList().then(res => {
this.options = res.data this.stores = res.data
}) })
}, },
/** 查询设备网关信息列表 */ /** 查询设备网关信息列表 */
......
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