1 line
9.0 KiB
JavaScript
1 line
9.0 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4145a4bd"],{"584f":function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"n",(function(){return a})),n.d(t,"l",(function(){return l})),n.d(t,"m",(function(){return o})),n.d(t,"j",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"o",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"i",(function(){return b}));var i=n("b775");function r(e){return Object(i["a"])({url:"/iot/device/list",method:"get",params:e})}function a(e){return Object(i["a"])({url:"/iot/device/unAuthlist",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/iot/device/listByGroup",method:"get",params:e})}function o(e){return Object(i["a"])({url:"/iot/device/shortList",method:"get",params:e})}function u(){return Object(i["a"])({url:"/iot/device/all",method:"get"})}function s(e){return Object(i["a"])({url:"/iot/device/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/iot/device/synchronization/"+e,method:"get"})}function d(e){return Object(i["a"])({url:"/iot/device/getDeviceBySerialNumber/"+e,method:"get"})}function m(){return Object(i["a"])({url:"/iot/device/statistic",method:"get"})}function f(e){return Object(i["a"])({url:"/iot/device/runningStatus",method:"get",params:e})}function p(e){return Object(i["a"])({url:"/iot/device",method:"post",data:e})}function h(e){return Object(i["a"])({url:"/iot/device",method:"put",data:e})}function v(e){return Object(i["a"])({url:"/iot/device/"+e,method:"delete"})}function g(){return Object(i["a"])({url:"/iot/device/generator",method:"get"})}function b(e){return Object(i["a"])({url:"/iot/device/getMqttConnectData",method:"get",params:e})}},9626:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"设备编号",prop:"serialNumber"}},[n("el-input",{attrs:{placeholder:"请输入设备编号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.serialNumber,callback:function(t){e.$set(e.queryParams,"serialNumber",t)},expression:"queryParams.serialNumber"}})],1),n("el-form-item",{attrs:{label:"设备状态",prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择设备状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.iot_device_status,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.deviceList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"设备名称",align:"center",prop:"deviceName"}}),n("el-table-column",{attrs:{label:"设备编号",align:"center",prop:"serialNumber"}}),n("el-table-column",{attrs:{label:"网关编码",align:"center",prop:"gwDevCode"}}),n("el-table-column",{attrs:{label:"从机地址",align:"center",prop:"addr"}}),n("el-table-column",{attrs:{label:"固件版本",align:"center",prop:"firmwareVersion"}}),n("el-table-column",{attrs:{label:"设备状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:fun
|