Commit ae7c9094 by YG8999

设备网关、设备日志查询条件新增

parent 62759e80
...@@ -17,13 +17,15 @@ ...@@ -17,13 +17,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="设备分组" prop="group"> <el-form-item label="所属门店" prop="group">
<el-input <el-select v-model="queryParams.group" placeholder="请选择所属门店" clearable>
v-model="queryParams.group" <el-option
placeholder="请输入设备分组" v-for="item in options"
clearable :key="item.deviceGroup"
@keyup.enter.native="handleQuery" :label="item.name"
/> :value="item.deviceGroup">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="设备类型" prop="devType"> <el-form-item label="设备类型" prop="devType">
<el-select v-model="queryParams.devType" placeholder="请选择设备类型"> <el-select v-model="queryParams.devType" placeholder="请选择设备类型">
...@@ -261,6 +263,7 @@ ...@@ -261,6 +263,7 @@
<script> <script>
import {listDevice, getDevice, delDevice, addDevice, updateDevice, openOrClose} from "@/api/system/device"; import {listDevice, getDevice, delDevice, addDevice, updateDevice, openOrClose} from "@/api/system/device";
import selectStore from "./selectStore"; import selectStore from "./selectStore";
import { allList } from '@/api/system/store'
export default { export default {
...@@ -287,6 +290,7 @@ export default { ...@@ -287,6 +290,7 @@ export default {
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
options: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
...@@ -334,9 +338,15 @@ export default { ...@@ -334,9 +338,15 @@ export default {
}; };
}, },
created() { created() {
this.onGetAllStoreList();
this.getList(); this.getList();
}, },
methods: { methods: {
onGetAllStoreList(){
allList().then(res => {
this.options = res.data
})
},
/** 查询设备信息列表 */ /** 查询设备信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
...@@ -17,6 +17,16 @@ ...@@ -17,6 +17,16 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="所属门店" prop="group">
<el-select v-model="queryParams.group" placeholder="请选择所属门店" clearable>
<el-option
v-for="item in options"
:key="item.deviceGroup"
:label="item.name"
:value="item.deviceGroup">
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="设备ID" prop="devId">--> <!-- <el-form-item label="设备ID" prop="devId">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="queryParams.devId"--> <!-- v-model="queryParams.devId"-->
...@@ -278,7 +288,8 @@ ...@@ -278,7 +288,8 @@
<script> <script>
import { listGateway, getGateway, delGateway, addGateway, updateGateway, addGatewayDevice, clearGatewayDevice } from "@/api/system/gateway"; import { listGateway, getGateway, delGateway, addGateway, updateGateway, addGatewayDevice, clearGatewayDevice } from "@/api/system/gateway";
import selectStore from "../device/selectStore.vue"; import selectStore from "../device/selectStore";
import { allList } from '@/api/system/store'
export default { export default {
name: "Gateway", name: "Gateway",
...@@ -304,6 +315,7 @@ export default { ...@@ -304,6 +315,7 @@ export default {
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
options: [],
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
...@@ -342,9 +354,15 @@ export default { ...@@ -342,9 +354,15 @@ export default {
}; };
}, },
created() { created() {
this.onGetAllStoreList();
this.getList(); this.getList();
}, },
methods: { methods: {
onGetAllStoreList(){
allList().then(res => {
this.options = res.data
})
},
/** 查询设备网关信息列表 */ /** 查询设备网关信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
...@@ -17,6 +17,22 @@ ...@@ -17,6 +17,22 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="门店名称" prop="storeName">
<el-input
v-model="queryParams.storeName"
placeholder="请输入门店名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="房间名称" prop="roomName">
<el-input
v-model="queryParams.roomName"
placeholder="请输入房间名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="请求的序列号" prop="seq"> <el-form-item label="请求的序列号" prop="seq">
<el-input <el-input
v-model="queryParams.seq" v-model="queryParams.seq"
...@@ -25,6 +41,14 @@ ...@@ -25,6 +41,14 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="操作人" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入操作人"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="消息描述:开门、开灯、网关设备绑定等" prop="mqttDescribe">--> <!-- <el-form-item label="消息描述:开门、开灯、网关设备绑定等" prop="mqttDescribe">-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="queryParams.mqttDescribe"--> <!-- v-model="queryParams.mqttDescribe"-->
...@@ -246,6 +270,9 @@ export default { ...@@ -246,6 +270,9 @@ export default {
mqttDescribe: null, mqttDescribe: null,
payload: null, payload: null,
topic: null, topic: null,
createBy: null,
storeName: null,
roomName: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
......
...@@ -10,6 +10,23 @@ ...@@ -10,6 +10,23 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="门店名称" prop="storeName">
<el-input
v-model="queryParams.storeName"
placeholder="请输入门店名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="房间名称" prop="roomName">
<el-input
v-model="queryParams.roomName"
placeholder="请输入房间名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否异常" prop="isAbnormal"> <el-form-item label="是否异常" prop="isAbnormal">
<el-select v-model="queryParams.isAbnormal" placeholder="请选择"> <el-select v-model="queryParams.isAbnormal" placeholder="请选择">
<el-option <el-option
...@@ -43,7 +60,7 @@ ...@@ -43,7 +60,7 @@
<el-table v-loading="loading" :data="logList" > <el-table v-loading="loading" :data="logList" >
<!-- <el-table-column type="selection" width="55" align="center" />--> <!-- <el-table-column type="selection" width="55" align="center" />-->
<el-table-column label="设备ID" align="center" prop="devId" /> <el-table-column label="设备ID" align="center" prop="devId" />
<el-table-column label="设备mac" align="center" prop="devMac" /> <!-- <el-table-column label="设备mac" align="center" prop="devMac" />-->
<el-table-column label="是否异常变更" align="center" prop="isAbnormal" :formatter="(row) => filedFormatter(row.isAbnormal)"/> <el-table-column label="是否异常变更" align="center" prop="isAbnormal" :formatter="(row) => filedFormatter(row.isAbnormal)"/>
<el-table-column label="变更前状态" align="center" prop="previousStatus" > <el-table-column label="变更前状态" align="center" prop="previousStatus" >
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -186,7 +203,9 @@ export default { ...@@ -186,7 +203,9 @@ export default {
status: null, status: null,
roomId: null, roomId: null,
operateLogId: null, operateLogId: null,
isSendSms: null isSendSms: null,
storeName: null,
roomName: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
......
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