1 line
9.4 KiB
JavaScript
1 line
9.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-085c5162"],{"584f":function(t,e,r){"use strict";r.d(e,"l",(function(){return u})),r.d(e,"q",(function(){return o})),r.d(e,"m",(function(){return a})),r.d(e,"n",(function(){return i})),r.d(e,"k",(function(){return c})),r.d(e,"f",(function(){return d})),r.d(e,"c",(function(){return l})),r.d(e,"g",(function(){return s})),r.d(e,"i",(function(){return m})),r.d(e,"d",(function(){return f})),r.d(e,"r",(function(){return p})),r.d(e,"o",(function(){return b})),r.d(e,"p",(function(){return h})),r.d(e,"h",(function(){return g})),r.d(e,"a",(function(){return y})),r.d(e,"s",(function(){return O})),r.d(e,"b",(function(){return v})),r.d(e,"e",(function(){return j})),r.d(e,"j",(function(){return w}));var n=r("b775");function u(t){return Object(n["a"])({url:"/iot/device/list",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/iot/device/unAuthlist",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/iot/device/listByGroup",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/iot/device/shortList",method:"get",params:t})}function c(){return Object(n["a"])({url:"/iot/device/all",method:"get"})}function d(t){return Object(n["a"])({url:"/iot/device/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/iot/device/synchronization/"+t,method:"get"})}function s(t){return Object(n["a"])({url:"/iot/device/getDeviceBySerialNumber/"+t,method:"get"})}function m(){return Object(n["a"])({url:"/iot/device/statistic",method:"get"})}function f(t,e){return Object(n["a"])({url:"/iot/device/assignment?deptId="+t+"&deviceIds="+e,method:"post"})}function p(t){return Object(n["a"])({url:"/iot/device/recovery?deviceIds="+t,method:"post"})}function b(){return Object(n["a"])({url:"",method:"get"})}function h(){return Object(n["a"])({url:"",method:"get"})}function g(t){return Object(n["a"])({url:"/iot/device/runningStatus",method:"get",params:t})}function y(t){return Object(n["a"])({url:"/iot/device",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/iot/device",method:"put",data:t})}function v(t){return Object(n["a"])({url:"/iot/device/"+t,method:"delete"})}function j(t){return Object(n["a"])({url:"/iot/device/generator",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/iot/device/getMqttConnectData",method:"get",params:t})}},"9b9c":function(t,e,r){"use strict";r.d(e,"f",(function(){return u})),r.d(e,"g",(function(){return o})),r.d(e,"e",(function(){return a})),r.d(e,"a",(function(){return i})),r.d(e,"i",(function(){return c})),r.d(e,"d",(function(){return d})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return s})),r.d(e,"h",(function(){return m}));var n=r("b775");function u(t){return Object(n["a"])({url:"/iot/product/list",method:"get",params:t})}function o(){return Object(n["a"])({url:"/iot/product/shortList",method:"get"})}function a(t){return Object(n["a"])({url:"/iot/product/"+t,method:"get"})}function i(t){return Object(n["a"])({url:"/iot/product",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/iot/product",method:"put",data:t})}function d(t){return Object(n["a"])({url:"/iot/product/deviceCount/"+t,method:"get"})}function l(t){return Object(n["a"])({url:"/iot/product/status/",method:"put",data:t})}function s(t){return Object(n["a"])({url:"/iot/product/"+t,method:"delete"})}function m(t){return Object(n["a"])({url:"/iot/product/queryByTemplateId",method:"get",params:t})}},c0c7:function(t,e,r){"use strict";r.d(e,"k",(function(){return o})),r.d(e,"i",(function(){return a})),r.d(e,"h",(function(){return i})),r.d(e,"a",(function(){return c})),r.d(e,"o",(function(){return d})),r.d(e,"c",(function(){return l})),r.d(e,"l",(function(){return s})),r.d(e,"b",(function(){return m})),r.d(e,"g",(function(){return f})),r.d(e,"m",(function(){return p})),r.d(e,"j",(function(){return b})),r.d(e,"p",(function(){return h})),r.d(e,"q",(function(){return g})),r.d(e,"r",(function(){return y})),r.d(e,"f",(function(){return O})),r.d(e,"n",(function(){return v})),r.d(e,"d",(function(){return j})),r.d(e,"e",(function(){return w}));var n=r("b775"),u=r("c38a");function o(t){return Object(n["a"])({url:"/system/user/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/system/user/"+Object(u["e"])(t),method:"get"})}function i(t){return Object(n["a"])({url:"/system/dept/getRole?deptId="+t,method:"get"})}function c(t){return Object(n["a"])({url:"/system/user",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/system/user",method:"put",data:t})}function l(t){return Object(n["a"])({url:"/system/user/"+t,method:"delete"})}function s(t,e){var r={userId:t,password:e};return Object(n["a"])({url:"/system/user/resetPwd",method:"put",data:r})}function m(t,e){var r={userId:t,status:e};return Object(n["a"])({url:"/system/user/changeStatus",method:"put",data:r})}function f(){return Object(n["a"])({url:"/wechat/getWxBindQr",method:"get"})}function p(t){return Object(n["a"])({url:"/wechat/cancelBind",method:"post",data:t})}function b(){return Object(n["a"])({url:"/system/user/profile",method:"get"})}function h(t){return Object(n["a"])({url:"/system/user/profile",method:"put",data:t})}function g(t,e){var r={oldPassword:t,newPassword:e};return Object(n["a"])({url:"/system/user/profile/updatePwd",method:"put",params:r})}function y(t){return Object(n["a"])({url:"/system/user/profile/avatar",method:"post",data:t})}function O(t){return Object(n["a"])({url:"/system/user/authRole/"+t,method:"get"})}function v(t){return Object(n["a"])({url:"/system/user/authRole",method:"put",params:t})}function j(){return Object(n["a"])({url:"/system/user/deptTree",method:"get"})}function w(t){return Object(n["a"])({url:"/system/user/deptTree?showOwner="+t,method:"get"})}},f1cb:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:"设备回收记录",visible:t.open,width:"800px"},on:{"update:visible":function(e){t.open=e}}},[r("div",{staticStyle:{"margin-top":"-55px"}},[r("el-divider",{staticStyle:{"margin-top":"-30px"}}),r("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"68px"}},[r("el-form-item",{attrs:{prop:"deptId"}},[r("treeselect",{staticStyle:{width:"180px"},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),r("el-form-item",{attrs:{prop:"productId"}},[r("el-select",{staticStyle:{width:"180px"},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 r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),r("el-form-item",{attrs:{prop:"serialNumber"}},[r("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"设备编号",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.serialNumber,callback:function(e){t.$set(t.queryParams,"serialNumber",e)},expression:"queryParams.serialNumber"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"singleTable",attrs:{data:t.dataList,size:"mini"}},[r("el-table-column",{attrs:{label:"机构名称",align:"left"}}),r("el-table-column",{attrs:{label:"被回收机构名称",align:"left","min-width":"120"}}),r("el-table-column",{attrs:{label:"设备名称",align:"left"}}),r("el-table-column",{attrs:{label:"DeviceKey",align:"left"}}),r("el-table-column",{attrs:{label:"设备编号",align:"left"}}),r("el-table-column",{attrs:{label:"产品名称",align:"left"}}),r("el-table-column",{attrs:{label:"回收时间",align:"left"}})],1),r("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=[],o=(r("d81d"),r("9b9c")),a=r("584f"),i=r("c0c7"),c=r("ca17"),d=r.n(c),l=(r("542c"),{name:"recycleRecord",dicts:[],components:{Treeselect:d.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(o["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(a["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=l,m=r("2877"),f=Object(m["a"])(s,n,u,!1,null,null,null);e["default"]=f.exports}}]); |