FastBee/docker/data/nginx/vue/static/js/chunk-23b950a6.7f25a3a9.js
2025-07-07 09:21:15 +08:00

1 line
8.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23b950a6"],{"017b":function(e,t,i){"use strict";i("e0c5e")},"430b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"分享",visible:e.openDeviceList,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.openDeviceList=t}}},[n("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"设备名称",prop:"deviceName"}},[n("el-input",{attrs:{placeholder:e.$t("device.device-edit.148398-2"),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.deviceName,callback:function(t){e.$set(e.queryParams,"deviceName",t)},expression:"queryParams.deviceName"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v(e._s(e.$t("search")))]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v(e._s(e.$t("reset")))])],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:e.deviceList,border:!1,"row-key":"serialNumber",size:"mini","header-cell-style":{backgroundColor:"#F2F6FC"}}},[n("el-table-column",{attrs:{label:e.$t("device.device-edit.148398-1"),align:"center",prop:"deviceName"}}),n("el-table-column",{attrs:{label:"操作",align:"center",prop:"opation"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{staticStyle:{color:"cornflowerblue"},attrs:{size:"mini",plain:""},on:{click:function(i){return e.share(t.row)}}},[e._v("分享")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:function(t){return e.getList(null)}}}),n("el-dialog",{attrs:{title:"分享",visible:e.shareopen,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.shareopen=t}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShare,expression:"isShare"}]},[n("div",[n("el-row",[n("el-col",{attrs:{span:20}},[n("div",[n("p",[e._v("链接")])])]),n("el-col",{attrs:{span:4}},[n("div",[n("el-button",{attrs:{type:"text",icon:"el-icon-link"},on:{click:e.closeshare}},[e._v("关闭分享")])],1)])],1),n("div",[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:18}},[n("el-input",{attrs:{disabled:!0},model:{value:e.link,callback:function(t){e.link=t},expression:"link"}})],1),n("el-col",{attrs:{span:5}},[n("el-button",{staticStyle:{width:"115px"},attrs:{type:"primary"}},[e._v("复制链接")])],1)],1),n("el-checkbox",{staticStyle:{"margin-top":"10px","margin-bottom":"20px"},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("访问需要密码")])],1)],1),n("div",[n("div",{staticStyle:{"margin-bottom":"30px"}},[n("p",[e._v("二维码")])]),n("el-row",[n("el-col",{attrs:{span:8}},[n("div",{staticStyle:{border:"1px solid #ccc",width:"200px",height:"200px","margin-top":"-15px"}},[n("div",{staticStyle:{"padding-bottom":"10px"}})])]),n("el-col",{attrs:{span:14}},[n("div",[n("p",[e._v("将二维码分享给他人")]),n("p",[e._v("对方通过微信扫一扫即可查看")])]),n("div",[n("el-button",{attrs:{icon:"el-icon-download"}},[e._v("下载二维码")])],1)])],1),n("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"text",icon:"el-icon-back"},on:{click:function(t){e.shareopen=!1}}},[e._v("返回继续分享")])],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isShare,expression:"!isShare"}],staticStyle:{"text-align":"center",height:"100%"}},[n("div",{staticStyle:{display:"inline-block","vertical-align":"middle"}},[n("img",{staticClass:"closeShare",staticStyle:{width:"400px",height:"400px",margin:"auto"},attrs:{src:i("c014")}})]),n("div",[n("el-button",{staticStyle:{width:"400px","margin-top":"20px","margin-bottom":"40px"},attrs:{type:"primary"},on:{click:e.openShare}},[e._v("开启分享")])],1)])])],1)},r=[],a=(i("d3b7"),i("159b"),i("584f")),o={name:"device-list",dicts:["iot_device_status","iot_location_way"],data:function(){return{link:"http",qrText:"fastbee",loading:!0,selectDeviceNums:[],productId:0,productName:"",openDeviceList:!1,total:0,shareopen:!1,isShare:!1,checked:!1,deviceId:"",deviceList:[],queryParams:{pageNum:1,pageSize:10,deviceName:null,productId:null,productName:null,serialNumber:null,status:null}}},created:function(){},methods:{getList:function(){var e=this;this.deviceList=[],this.loading=!0,this.queryParams.productId=0==this.queryParams.productId?null:this.queryParams.productId,Object(a["p"])(this.queryParams).then((function(t){e.deviceList=t.rows,e.total=t.total,e.loading=!1,e.deviceList.forEach((function(e){e.isShare=!0})),console.log(e.deviceList)}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList(null)},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},share:function(e){console.log(e),this.deviceId=e.deviceId,1==e.isShare?(this.shareopen=!0,this.isShare=!0):this.shareopen=!0},closeshare:function(){var e=this;this.isShare=!1,console.log(this.deviceId),this.deviceList.forEach((function(t){t.deviceId==e.deviceId&&(t.isShare=!1,e.isShare=!1)}))},openShare:function(){var e=this;this.isShare=!0,this.deviceList.forEach((function(t){t.deviceId==e.deviceId&&(t.isShare=!0,e.isShare=!0)}))}}},c=o,u=(i("017b"),i("2877")),s=Object(u["a"])(c,n,r,!1,null,"14507b68",null);t["default"]=s.exports},"584f":function(e,t,i){"use strict";i.d(t,"n",(function(){return r})),i.d(t,"t",(function(){return a})),i.d(t,"o",(function(){return o})),i.d(t,"p",(function(){return c})),i.d(t,"m",(function(){return u})),i.d(t,"f",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"g",(function(){return d})),i.d(t,"i",(function(){return p})),i.d(t,"d",(function(){return h})),i.d(t,"u",(function(){return m})),i.d(t,"q",(function(){return v})),i.d(t,"r",(function(){return f})),i.d(t,"h",(function(){return b})),i.d(t,"a",(function(){return g})),i.d(t,"v",(function(){return y})),i.d(t,"b",(function(){return S})),i.d(t,"e",(function(){return k})),i.d(t,"k",(function(){return x})),i.d(t,"l",(function(){return w})),i.d(t,"j",(function(){return O})),i.d(t,"s",(function(){return j}));var n=i("b775");function r(e){return Object(n["a"])({url:"/iot/device/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/iot/device/unAuthlist",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/iot/device/listByGroup",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/iot/device/shortList",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/iot/device/all",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/iot/device/"+e,method:"get"})}function l(e){return Object(n["a"])({url:"/iot/device/synchronization/"+e,method:"get"})}function d(e){return Object(n["a"])({url:"/iot/device/getDeviceBySerialNumber/"+e,method:"get"})}function p(){return Object(n["a"])({url:"/iot/device/statistic",method:"get"})}function h(e,t){return Object(n["a"])({url:"/iot/device/assignment?deptId="+e+"&deviceIds="+t,method:"post"})}function m(e,t){return Object(n["a"])({url:"/iot/device/recovery?deviceIds="+e+"&recoveryDeptId="+t,method:"post"})}function v(e){return Object(n["a"])({url:"/iot/record/list",method:"get",params:e})}function f(e){return Object(n["a"])({url:"/iot/record/list",method:"get",params:e})}function b(e){return Object(n["a"])({url:"/iot/device/runningStatus",method:"get",params:e})}function g(e){return Object(n["a"])({url:"/iot/device",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/iot/device",method:"put",data:e})}function S(e){return Object(n["a"])({url:"/iot/device/"+e,method:"delete"})}function k(e){return Object(n["a"])({url:"/iot/device/generator",method:"get",params:e})}function x(e){return Object(n["a"])({url:"/iot/device/getMqttConnectData",method:"get",params:e})}function w(e){return Object(n["a"])({url:"/sip/sipconfig/auth/"+e,method:"get"})}function O(e){return Object(n["a"])({url:"/iot/device/getHttpAuthData",method:"get",params:e})}function j(e){return Object(n["a"])({url:"/iot/device/listThingsModel",method:"get",params:e})}},c014:function(e,t,i){e.exports=i.p+"static/img/send.ac95a3e5.png"},e0c5e:function(e,t,i){}}]);