(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0181411d"],{"584f":function(t,e,n){"use strict";n.d(e,"l",(function(){return u})),n.d(e,"q",(function(){return a})),n.d(e,"m",(function(){return o})),n.d(e,"n",(function(){return i})),n.d(e,"k",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"g",(function(){return s})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"r",(function(){return p})),n.d(e,"o",(function(){return b})),n.d(e,"p",(function(){return h})),n.d(e,"h",(function(){return g})),n.d(e,"a",(function(){return v})),n.d(e,"s",(function(){return O})),n.d(e,"b",(function(){return j})),n.d(e,"e",(function(){return y})),n.d(e,"j",(function(){return w}));var r=n("b775");function u(t){return Object(r["a"])({url:"/iot/device/list",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/iot/device/unAuthlist",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/iot/device/listByGroup",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/iot/device/shortList",method:"get",params:t})}function c(){return Object(r["a"])({url:"/iot/device/all",method:"get"})}function l(t){return Object(r["a"])({url:"/iot/device/"+t,method:"get"})}function d(t){return Object(r["a"])({url:"/iot/device/synchronization/"+t,method:"get"})}function s(t){return Object(r["a"])({url:"/iot/device/getDeviceBySerialNumber/"+t,method:"get"})}function f(){return Object(r["a"])({url:"/iot/device/statistic",method:"get"})}function m(t,e){return Object(r["a"])({url:"/iot/device/assignment?deptId="+t+"&deviceIds="+e,method:"post"})}function p(t){return Object(r["a"])({url:"/iot/device/recovery?deviceIds="+t,method:"post"})}function b(){return Object(r["a"])({url:"",method:"get"})}function h(){return Object(r["a"])({url:"",method:"get"})}function g(t){return Object(r["a"])({url:"/iot/device/runningStatus",method:"get",params:t})}function v(t){return Object(r["a"])({url:"/iot/device",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/iot/device",method:"put",data:t})}function j(t){return Object(r["a"])({url:"/iot/device/"+t,method:"delete"})}function y(t){return Object(r["a"])({url:"/iot/device/generator",method:"get",params:t})}function w(t){return Object(r["a"])({url:"/iot/device/getMqttConnectData",method:"get",params:t})}},"9b9c":function(t,e,n){"use strict";n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"i",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return s})),n.d(e,"h",(function(){return f}));var r=n("b775");function u(t){return Object(r["a"])({url:"/iot/product/list",method:"get",params:t})}function a(){return Object(r["a"])({url:"/iot/product/shortList",method:"get"})}function o(t){return Object(r["a"])({url:"/iot/product/"+t,method:"get"})}function i(t){return Object(r["a"])({url:"/iot/product",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/iot/product",method:"put",data:t})}function l(t){return Object(r["a"])({url:"/iot/product/deviceCount/"+t,method:"get"})}function d(t){return Object(r["a"])({url:"/iot/product/status/",method:"put",data:t})}function s(t){return Object(r["a"])({url:"/iot/product/"+t,method:"delete"})}function f(t){return Object(r["a"])({url:"/iot/product/queryByTemplateId",method:"get",params:t})}},bed0:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"设备分配记录",visible:t.open,width:"70%"},on:{"update:visible":function(e){t.open=e}}},[n("div",{staticStyle:{"margin-top":"-55px"}},[n("el-divider",{staticStyle:{"margin-top":"-30px"}}),n("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{staticStyle:{width:"240px"},attrs:{prop:"deptId"}},[n("treeselect",{attrs:{options:t.deptOptions,"show-count":!0,placeholder:"归属机构"},model:{value:t.queryParams.deptId,callback:function(e){t.$set(t.queryParams,"deptId",e)},expression:"queryParams.deptId"}})],1),n("el-form-item",{attrs:{prop:"productId"}},[n("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"产品名称",filterable:""},model:{value:t.queryParams.productId,callback:function(e){t.$set(t.queryParams,"productId",e)},expression:"queryParams.productId"}},t._l(t.productList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"singleTable",attrs:{data:t.dataList,size:"mini"}},[n("el-table-column",{attrs:{label:"产品名称",align:"left"}}),n("el-table-column",{attrs:{align:"left"}},[n("template",{slot:"header"},[n("span",[t._v("归属机构")]),n("el-tooltip",{staticClass:"item",staticStyle:{"margin-left":"10px"},attrs:{effect:"dark",content:"设备被分配前的归属机构",placement:"top"}},[n("i",{staticClass:"el-icon-warning-outline"})])],1)],2),n("el-table-column",{attrs:{align:"left"}},[n("template",{slot:"header"},[n("span",[t._v("目标机构")]),n("el-tooltip",{staticClass:"item",staticStyle:{"margin-left":"10px"},attrs:{effect:"dark",content:"设备被分配后的归属机构",placement:"top"}},[n("i",{staticClass:"el-icon-warning-outline"})])],1)],2),n("el-table-column",{attrs:{label:"分配总数",align:"left"}}),n("el-table-column",{attrs:{label:"分配成功",align:"left"}}),n("el-table-column",{attrs:{label:"分配失败",align:"left"}}),n("el-table-column",{attrs:{label:"分配状态",align:"left"}}),n("el-table-column",{attrs:{label:"分配方式",align:"left"}}),n("el-table-column",{attrs:{label:"分配时间",align:"left"}}),n("el-table-column",{attrs:{label:"操作",align:"center"}},[[n("el-button",{staticStyle:{padding:"5px"},attrs:{type:"danger",size:"small",icon:"el-icon-delete"}},[t._v("下载明细")])]],2)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)}}})],1)])},u=[],a=(n("d81d"),n("9b9c")),o=n("584f"),i=n("c0c7"),c=n("ca17"),l=n.n(c),d=(n("542c"),{name:"allotRecord",dicts:[],components:{Treeselect:l.a},data:function(){return{loading:!0,total:0,open:!1,productList:[],statusList:[],dataList:[],daterangeTime:[],deptOptions:[],queryParams:{pageNum:1,pageSize:10,productName:null,serialNumber:""}}},created:function(){this.getProductList(),this.getDeptTree()},methods:{getProductList:function(){var t=this;this.loading=!0;var e={pageSize:999};Object(a["f"])(e).then((function(e){t.productList=e.rows.map((function(t){return{value:t.productId,label:t.productName}})),t.loading=!1}))},getList:function(){var t=this;this.loading=!0,Object(o["p"])().then((function(e){t.dataList=e.rows,t.toltal=e.total,t.loading=!1}))},getDeptTree:function(){var t=this;Object(i["d"])().then((function(e){t.deptOptions=e.data}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},closeDialog:function(){this.open=!1}}}),s=d,f=n("2877"),m=Object(f["a"])(s,r,u,!1,null,null,null);e["default"]=m.exports},c0c7:function(t,e,n){"use strict";n.d(e,"k",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"h",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"o",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"l",(function(){return s})),n.d(e,"b",(function(){return f})),n.d(e,"g",(function(){return m})),n.d(e,"m",(function(){return p})),n.d(e,"j",(function(){return b})),n.d(e,"p",(function(){return h})),n.d(e,"q",(function(){return g})),n.d(e,"r",(function(){return v})),n.d(e,"f",(function(){return O})),n.d(e,"n",(function(){return j})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return w}));var r=n("b775"),u=n("c38a");function a(t){return Object(r["a"])({url:"/system/user/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/user/"+Object(u["e"])(t),method:"get"})}function i(t){return Object(r["a"])({url:"/system/dept/getRole?deptId="+t,method:"get"})}function c(t){return Object(r["a"])({url:"/system/user",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/user",method:"put",data:t})}function d(t){return Object(r["a"])({url:"/system/user/"+t,method:"delete"})}function s(t,e){var n={userId:t,password:e};return Object(r["a"])({url:"/system/user/resetPwd",method:"put",data:n})}function f(t,e){var n={userId:t,status:e};return Object(r["a"])({url:"/system/user/changeStatus",method:"put",data:n})}function m(){return Object(r["a"])({url:"/wechat/getWxBindQr",method:"get"})}function p(t){return Object(r["a"])({url:"/wechat/cancelBind",method:"post",data:t})}function b(){return Object(r["a"])({url:"/system/user/profile",method:"get"})}function h(t){return Object(r["a"])({url:"/system/user/profile",method:"put",data:t})}function g(t,e){var n={oldPassword:t,newPassword:e};return Object(r["a"])({url:"/system/user/profile/updatePwd",method:"put",params:n})}function v(t){return Object(r["a"])({url:"/system/user/profile/avatar",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/system/user/authRole/"+t,method:"get"})}function j(t){return Object(r["a"])({url:"/system/user/authRole",method:"put",params:t})}function y(){return Object(r["a"])({url:"/system/user/deptTree",method:"get"})}function w(t){return Object(r["a"])({url:"/system/user/deptTree?showOwner="+t,method:"get"})}}}]);