1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79d1b1a5"],{"584f":function(t,e,r){"use strict";r.d(e,"n",(function(){return o})),r.d(e,"t",(function(){return a})),r.d(e,"o",(function(){return u})),r.d(e,"p",(function(){return i})),r.d(e,"m",(function(){return c})),r.d(e,"f",(function(){return l})),r.d(e,"c",(function(){return d})),r.d(e,"g",(function(){return s})),r.d(e,"i",(function(){return p})),r.d(e,"d",(function(){return m})),r.d(e,"u",(function(){return f})),r.d(e,"q",(function(){return h})),r.d(e,"r",(function(){return b})),r.d(e,"h",(function(){return g})),r.d(e,"a",(function(){return v})),r.d(e,"v",(function(){return y})),r.d(e,"b",(function(){return O})),r.d(e,"e",(function(){return j})),r.d(e,"k",(function(){return w})),r.d(e,"l",(function(){return $})),r.d(e,"j",(function(){return P})),r.d(e,"s",(function(){return q}));var n=r("b775");function o(t){return Object(n["a"])({url:"/iot/device/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/iot/device/unAuthlist",method:"get",params:t})}function u(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(t){return Object(n["a"])({url:"/iot/device/all",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/iot/device/"+t,method:"get"})}function d(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 p(){return Object(n["a"])({url:"/iot/device/statistic",method:"get"})}function m(t,e){return Object(n["a"])({url:"/iot/device/assignment?deptId="+t+"&deviceIds="+e,method:"post"})}function f(t,e){return Object(n["a"])({url:"/iot/device/recovery?deviceIds="+t+"&recoveryDeptId="+e,method:"post"})}function h(t){return Object(n["a"])({url:"/iot/record/list",method:"get",params:t})}function b(t){return Object(n["a"])({url:"/iot/record/list",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/iot/device/runningStatus",method:"get",params:t})}function v(t){return Object(n["a"])({url:"/iot/device",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/iot/device",method:"put",data:t})}function O(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})}function $(t){return Object(n["a"])({url:"/sip/sipconfig/auth/"+t,method:"get"})}function P(t){return Object(n["a"])({url:"/iot/device/getHttpAuthData",method:"get",params:t})}function q(t){return Object(n["a"])({url:"/iot/device/listThingsModel",method:"get",params:t})}},"68b6":function(t,e,r){},"9b9c":function(t,e,r){"use strict";r.d(e,"g",(function(){return o})),r.d(e,"h",(function(){return a})),r.d(e,"f",(function(){return u})),r.d(e,"a",(function(){return i})),r.d(e,"i",(function(){return c})),r.d(e,"e",(function(){return l})),r.d(e,"b",(function(){return d})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return p}));var n=r("b775");function o(t){return Object(n["a"])({url:"/iot/product/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/iot/product/shortList",method:"get",params:t})}function u(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 l(t){return Object(n["a"])({url:"/iot/product/deviceCount/"+t,method:"get"})}function d(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 p(t){return Object(n["a"])({url:"/iot/product/copy?productId="+t,method:"post"})}},bed0: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:t.$t("device.allot-record.155854-0"),visible:t.open,width:"1000px"},on:{"update:visible":function(e){t.open=e}}},[r("div",{staticClass:"allot-recor-dialog"},[r("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0,"label-width":"68px"}},[r("el-form-item",{attrs:{prop:"distributeType"}},[r("el-select",{attrs:{placeholder:t.$t("device.allot-record.155854-16"),filterable:"",size:"small",clearable:""},model:{value:t.queryParams.distributeType,callback:function(e){t.$set(t.queryParams,"distributeType",e)},expression:"queryParams.distributeType"}},[r("el-option",{attrs:{label:t.$t("device.index.105953-14"),value:1}}),r("el-option",{attrs:{label:t.$t("device.index.105953-15"),value:2}})],1)],1),r("el-form-item",{attrs:{prop:"productId"}},[r("el-select",{attrs:{placeholder:t.$t("device.allot-record.155854-2"),filterable:"",size:"small",clearable:""},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",{staticStyle:{width:"205px"},attrs:{prop:"operateDeptId"}},[r("treeselect",{attrs:{options:t.deptOptions,"show-count":!0,placeholder:t.$t("device.allot-record.155854-1")},model:{value:t.queryParams.operateDeptId,callback:function(e){t.$set(t.queryParams,"operateDeptId",e)},expression:"queryParams.operateDeptId"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:t.handleQuery}},[t._v(t._s(t.$t("search")))]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"small"},on:{click:t.resetQuery}},[t._v(t._s(t.$t("reset")))])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"singleTable",attrs:{data:t.dataList,size:"small",border:!1}},[r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-2"),align:"left",prop:"productName","min-width":"190"}}),r("el-table-column",{attrs:{align:"left",prop:"operateDeptName","min-width":"160"}},[r("template",{slot:"header"},[r("span",[t._v(t._s(t.$t("device.allot-record.155854-1")))]),r("el-tooltip",{staticClass:"item",staticStyle:{"margin-left":"10px"},attrs:{effect:"dark",content:t.$t("device.allot-record.155854-5"),placement:"top"}},[r("i",{staticClass:"el-icon-warning-outline"})])],1)],2),r("el-table-column",{attrs:{align:"left",prop:"targetDeptName","min-width":"170"}},[r("template",{slot:"header"},[r("span",[t._v(t._s(t.$t("device.allot-import-dialog.060657-2")))]),r("el-tooltip",{staticClass:"item",staticStyle:{"margin-left":"10px"},attrs:{effect:"dark",content:t.$t("device.allot-record.155854-7"),placement:"top"}},[r("i",{staticClass:"el-icon-warning-outline"})])],1)],2),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-8"),align:"center",prop:"total","min-width":"85"}}),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-9"),align:"center",prop:"successQuantity","min-width":"85"}}),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-10"),align:"center",prop:"failQuantity","min-width":"85"}}),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-11"),align:"center",prop:"status","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("dict-tag",{attrs:{options:t.dict.type.common_status_type,value:e.row.status,size:"small"}})]}}])}),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-12"),align:"center",prop:"distributeTypeDesc","min-width":"90"}}),r("el-table-column",{attrs:{label:t.$t("device.allot-record.155854-13"),align:"center",prop:"createTime",width:"150"}}),r("el-table-column",{attrs:{label:t.$t("opation"),align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["iot:device:record:export"],expression:"['iot:device:record:export']"}],attrs:{type:"text",size:"small",icon:"el-icon-download"},on:{click:function(r){return t.handleDownLoad(e.row)}}},[t._v(" "+t._s(t.$t("device.allot-record.155854-15"))+" ")])]}}])})],1),r("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{layout:"prev, pager, next",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)},pagination:t.getList}})],1)])},o=[],a=r("5530"),u=(r("d81d"),r("9b9c")),i=r("584f"),c=r("c0c7"),l=r("ca17"),d=r.n(l),s=(r("542c"),{name:"allotRecord",dicts:["common_status_type"],components:{Treeselect:d.a},data:function(){return{loading:!0,total:0,open:!1,productList:[],dataList:[],daterangeTime:[],deptOptions:[],queryParams:{pageNum:1,pageSize:10,type:3}}},created:function(){this.getProductList(),this.getDeptTree()},methods:{getProductList:function(){var t=this;this.loading=!0;var e={pageSize:999,showSenior:!0};Object(u["g"])(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(i["r"])(this.queryParams).then((function(e){t.dataList=e.rows,t.total=e.total,t.loading=!1}))},handleDownLoad:function(t){var e={parentId:t.id,type:4};this.download("iot/record/export",Object(a["a"])({},e),"allot_".concat((new Date).getTime(),".xlsx"))},getDeptTree:function(){var t=this;Object(c["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}}}),p=s,m=(r("cd0b"),r("2877")),f=Object(m["a"])(p,n,o,!1,null,"c56e6dfe",null);e["default"]=f.exports},c0c7:function(t,e,r){"use strict";r.d(e,"l",(function(){return a})),r.d(e,"o",(function(){return u})),r.d(e,"j",(function(){return i})),r.d(e,"i",(function(){return c})),r.d(e,"a",(function(){return l})),r.d(e,"q",(function(){return d})),r.d(e,"c",(function(){return s})),r.d(e,"m",(function(){return p})),r.d(e,"b",(function(){return m})),r.d(e,"h",(function(){return f})),r.d(e,"n",(function(){return h})),r.d(e,"k",(function(){return b})),r.d(e,"r",(function(){return g})),r.d(e,"s",(function(){return v})),r.d(e,"t",(function(){return y})),r.d(e,"f",(function(){return O})),r.d(e,"p",(function(){return j})),r.d(e,"d",(function(){return w})),r.d(e,"e",(function(){return $})),r.d(e,"g",(function(){return P}));var n=r("b775"),o=r("c38a");function a(t){return Object(n["a"])({url:"/system/user/list",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/system/user/listTerminal",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/system/user/"+Object(o["f"])(t),method:"get"})}function c(t){return Object(n["a"])({url:"/system/dept/getRole?deptId="+t,method:"get"})}function l(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 s(t){return Object(n["a"])({url:"/system/user/"+t,method:"delete"})}function p(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 h(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 g(t){return Object(n["a"])({url:"/system/user/profile",method:"put",data:t})}function v(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 j(t){return Object(n["a"])({url:"/system/user/authRole",method:"put",params:t})}function w(){return Object(n["a"])({url:"/system/user/deptTree",method:"get"})}function $(t){return Object(n["a"])({url:"/system/user/deptTree?showOwner="+t,method:"get"})}function P(t){return Object(n["a"])({url:"/system/user/getByDeptId",method:"get",params:t})}},cd0b:function(t,e,r){"use strict";r("68b6")}}]); |