chunk-2bde3ff4.430678ae.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bde3ff4"],{"1afe":function(t,e,i){t.exports=i.p+"img/szgl.png?"},"348b":function(t,e,i){},"5f79":function(t,e,i){t.exports=i.p+"img/glys.png?"},7031:function(t,e,i){t.exports=i.p+"img/pinl.png?"},7663:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6tJREFUWEedV0Fy2koQfa3gOLsILhBcZbENOUHwCaKcIM7SkKrvf4KQE8SuisgyzglCTmB8gpAtShXkAqDsYsxX/+oRAyOMNCOzA3qmX3e/ed1NqPDxP8WvPOKQiZpg9omoLccZGBHzDB7N0v8wTt4F312vJZuh/3Hqe4/vPjIoJIJvs88A8YyIrtK/tcvk36Ok7EwpgMbn+D2nONeOGfyT2BulHg/l0uQsGAlAPFm1kXLTAzWZOCTQcwWEkZCHi/lZ8KEIxF4Acik9vrs2UnzDVDtNzo5mLhnwP8cdYvQJeCn2KfPbpNe62nf2HgA/mrQJdC1RM/CHCaFE6uJ410aAeCmF6fJRv6gUOQBZ5Ktp5px/8u1Bx1bDhwAzz+QA1KPJD0m7OF90W4rhRR8VHePa/L8s1dpOMpz0WmP9fQOgEcV9EN6rtN/WmrbI64N4pGu8forWc/7gV+iBv4HxYd4L+nJOATBTnxJObDXfF715aWHWoknbI/qhiEm1IyG1AtAYTK4AesPAzaIbdGx11fa59N/W6rasmb50uRSAehQvhHgaVXntp02PV9O8DX+dd1unNuA626IbOsuk6+JCPDOCXPTrdLoA2LWhTTqZLue94/PS6I1nqu2Y8X3RC8KHOFck1Gx2IZ9+KVZnDsFsnqF++y4A6oM4IeBpGQBXIm8ANAYxy5d5NyhtTH40OfWIvpQ6Z/zmZa3t8hokcFUCVwDCFQY1twDY111vI0TMHVPlysBqv1QfTMZykUsJzAsb0a8LEP+jf3ORYW2rhUy19yokNAHUo3hGhGfqtwqkU1qw7iPCl0rPcBOBIalVSae0RGeP6XIrRMzjRa/1wvrEjAu4Auly2RtMpgRqpqDXmRSvn5eLFCv7KJ5BZoYKpNvWP5Ny6bqLbuDvNqPRohuclKrhOv1VSJePPr4moANk/WPbjg9X0hqf2l6Dqp/ohkW29wVhkG8zO9wfSBgJL2tHRWJSj+LhQ7TfnDnuDSQardYELiCkjFNYHsxclM7MgDll73bd+0PpuhQCgpcHJ1Wd7aY+53zPqykay4ciMrJYsIfXthGtiLRqP0jxTU3Z4hwc7kp18WJyeDfabDjAiKn21n0xmTaJV18ytqtVrXDEL1/NorjPhHPdgtXOBxqmQLaadYMbJa2DWG1AHhBKlCIyukER40JPwPsy5bacHt5dqOXUMgtoByIyBB6mtwfnNg5ZAeTYrOb6NMza8rYdS4oBSohpnBJGSfdYZcjl8z+4Z1CI1lPPlgAAAABJRU5ErkJggg=="},"8fc9":function(t,e,i){},ae16:function(t,e,i){"use strict";i("8fc9")},c9a1:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container",staticStyle:{"overflow-y":"hidden","overflow-x":"auto"}},[a("el-form",{ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"auto"}},[a("el-form-item",{attrs:{label:this.$t("sbmc"),prop:"productName"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",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 a("el-option",{key:t.productId,attrs:{label:t.productName,value:t.productId}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search","min-width":t.getStringWidth(t.$t("ss")),size:"mini"},on:{click:t.queryTotalStatus}},[t._v(t._s(t.$t("ss")))])],1),this.$store.state.user.urseRoles.includes("1")?a("el-form-item",{staticClass:"register_btn"},["2"==this.productParams.jkfs?a("el-button",{attrs:{type:"primary","min-width":t.getStringWidth(t.$t("zk")),size:"mini"},on:{click:function(e){return t.handleCommand("open",t.queryParams.productId)}}},[t._v(t._s(t.$t("zk")))]):t._e(),"2"==this.productParams.jkfs?a("el-button",{staticStyle:{"background-color":"#656B8B","margin-right":"50px"},attrs:{type:"primary",size:"mini","min-width":t.getStringWidth(t.$t("zg"))},on:{click:function(e){return t.handleCommand("close",t.queryParams.productId)}}},[t._v(t._s(t.$t("zg")))]):t._e()],1):t._e()],1),a("el-row",{staticStyle:{"min-width":"1635px"}},[a("el-col",{staticClass:"card-box",attrs:{span:24}},[a("el-card",{staticStyle:{"border-radius":"15px",height:"50%"}},[a("div",{staticStyle:{display:"flex",height:"52px"},attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"sensorSpamClass",staticStyle:{width:"300px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"inline-block"},attrs:{title:t.productData.productName}},[a("a",{staticStyle:{color:"#0D32FE","font-size":"25px"}},[t._v(t._s(t.productData.productNumber))]),a("br"),t._v(t._s(t.productData.productName))]),"1"!=this.productType?a("span",{staticClass:"sensorSpamClass"},[a("img",{staticClass:"imgClass",attrs:{src:i("7031")}}),t._v(" "),a("span",{staticStyle:{"text-align":"center","margin-left":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"inline-block"}},[a("a",{staticStyle:{color:"#0D32FE","font-size":"25px"}},[t._v(t._s(t.productData.productPowerFreq))]),a("br"),t._v(t._s(t.$t("pl")))])]):t._e(),"1"!=this.productType&&"2"!=this.productType?a("span",{staticClass:"sensorSpamClass",attrs:{title:t.$t("szgl")+"(kW)"}},[a("img",{staticClass:"imgClass",attrs:{src:i("1afe")}}),t._v(" "),a("span",{staticStyle:{width:"170px","text-align":"center",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"inline-block"}},[a("a",{staticStyle:{color:"#0D32FE","font-size":"25px"}},[t._v(t._s(t.productData.productApparentPower))]),a("br"),t._v(t._s(t.$t("szgl"))+"(kW)")])]):t._e(),"1"!=this.productType&&"2"!=this.productType?a("span",{staticClass:"sensorSpamClass",attrs:{title:t.$t("glys")}},[a("img",{staticClass:"imgClass",attrs:{src:i("5f79")}}),t._v(" "),a("span",{staticStyle:{width:"170px","text-align":"center",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"inline-block"}},[a("a",{staticStyle:{color:"#0D32FE","font-size":"25px"}},[t._v(t._s(t.productData.productPowerFactor))]),a("br"),t._v(t._s(t.$t("glys")))])]):t._e(),a("span",{staticClass:"sensorSpamClass",attrs:{title:t.$t("zhdl")+"(kWh)"}},[a("img",{staticClass:"imgClass",attrs:{src:i("7663")}}),t._v(" "),a("span",{staticStyle:{width:"170px","text-align":"center",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"inline-block"}},[a("a",{staticStyle:{color:"#0D32FE","font-size":"25px"}},[t._v(t._s(t.productData.productConsumption))]),a("br"),t._v(t._s(t.$t("zhdl"))+"(kWh)")])]),a("span",{staticClass:"sensorSpamClass",staticStyle:{"white-space":"nowrap"}},["4"==this.productType||"3"==this.productType||"5"==this.productType||"6"==this.productType?a("el-button",{class:{spana:t.isSpana},staticStyle:{"border-radius":"10px","margin-left":"10px","margin-top":"10px",width:"80px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.queryTotalOrderStatus("L1")}}},[t._v(t._s(t.$t("sxax")))]):t._e(),"4"==this.productType||"3"==this.productType||"5"==this.productType||"6"==this.productType?a("el-button",{class:{spanb:t.isSpanb},staticStyle:{"border-radius":"10px","margin-left":"10px","margin-top":"10px",width:"80px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.queryTotalOrderStatus("L2")}}},[t._v(t._s(t.$t("sxbx")))]):t._e(),"4"==this.productType||"3"==this.productType||"5"==this.productType||"6"==this.productType?a("el-button",{class:{spanc:t.isSpanc},staticStyle:{"border-radius":"10px","margin-left":"10px","margin-top":"10px",width:"80px"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.queryTotalOrderStatus("L3")}}},[t._v(t._s(t.$t("sxcx")))]):t._e()],1)]),a("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[a("div",{staticStyle:{height:"290px",width:"100%","min-width":"300px",display:"grid",gap:"0"},style:t.gridStyle},[a("span",[a("div",{staticStyle:{width:"100%"}},[a("div",{ref:"sbDyRef",staticStyle:{height:"280px",width:"100%","min-width":"280px"}})])]),a("span",[a("div",{staticStyle:{width:"100%"}},[a("div",{ref:"sbDlRef",staticStyle:{height:"280px",width:"100%","min-width":"280px"}})])]),a("span",[a("div",{staticStyle:{width:"100%"}},[a("div",{ref:"sbGlRef",staticStyle:{height:"280px",width:"100%","min-width":"280px"}})])])])])])],1)],1),a("el-row",{staticStyle:{"min-width":"1635px"}},[a("el-col",{staticClass:"card-box",staticStyle:{"overflow-y":"auto","max-height":"315px"},attrs:{span:12}},[a("el-card",{staticStyle:{"border-radius":"15px","max-height":"315px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"font-size":"20px","font-weight":"bold"}},[t._v("24H "+t._s(t.$t("zhdl")))])]),a("div",{staticStyle:{width:"100%"}},[a("div",{ref:"sbHdlRef",staticStyle:{height:"280px",width:"100%","min-width":"600px"}})])])],1),a("el-col",{staticClass:"card-box",staticStyle:{"overflow-y":"auto","max-height":"315px"},attrs:{span:12}},[a("el-card",{staticStyle:{"border-radius":"15px","max-height":"315px"}},[a("div",{staticStyle:{display:"flex"},attrs:{slot:"header"},slot:"header"},[a("span",{staticStyle:{"font-size":"20px","font-weight":"bold"}},[t._v(t._s(t.$t("gl")))])]),a("div",{staticStyle:{width:"100%"}},[a("div",{ref:"sbHdlRefGl",staticStyle:{height:"280px",width:"100%","min-width":"600px"}})])])],1)],1)],1)},s=[],r=(i("14d9"),i("b0c0"),i("b680"),i("d3b7"),i("159b"),i("7ba4")),o=i("313e"),n={name:"Server",data:function(){return{server:[],totalStatus:{},totalStatusList:[],title:"",sensorStatusTitle:"",open:!1,usertoken:"",form:{},sensorStatusForm:{},channelLoadTypes:["空调","服务器","交换机","路由器","计算机","显示器","灯","其他"],activeName:"温湿度传感器",sensorStatusTabs:[],sensorStatusOpen:!1,sensorStatusList:[],queryParams:{productNumber:"",productId:"",productPhOrder:"",token:"",type:""},productList:[],glTypes:[{id:"1",name:"yggl"},{id:"2",name:"wggl"},{id:"3",name:"szgl"}],productData:{},productPhOrders:[{id:"L1",name:"A相"},{id:"L2",name:"B相"},{id:"L3",name:"C相"}],productType:"",productPhOrder:"",isSpanALL:!1,isSpana:!0,isSpanb:!0,isSpanc:!0,productParams:{}}},mounted:function(){this.$bus.$on("OVERALL_STATUS_MONITORING",this.onSocketMessageToOverall),this.queryProductList()},computed:{gridStyle:function(){var t="ALL"!==this.productPhOrder1,e=t?3:2;return{gridTemplateColumns:"repeat(".concat(e,", 1fr)")}}},created:function(){this.usertoken=this.$store.state.user.usertoken,this.productParams=this.$store.state.user.productParams},methods:{getStringWidth:function(t){var e="14px Arial",i=document.createElement("canvas"),a=i.getContext("2d");a.font=e;var s=a.measureText(t);return s.width+40},echartDy:function(t,e){var i={series:[{type:"gauge",min:0,max:t,radius:"100%",axisLine:{lineStyle:{width:20,color:[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-20,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-20,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:20,fontSize:15},detail:{valueAnimation:!0,fontSize:15,lineHeight:15,borderRadius:8,formatter:"{value} V\n"+this.$t("dy"),color:"inherit"},data:[{value:e}]}]};null!=this.$refs.sbDyRef&&void 0!=this.$refs.sbDyRef&&o["init"](this.$refs.sbDyRef).setOption(i)},echartDl:function(t,e){var i={series:[{type:"gauge",min:0,max:t,radius:"100%",axisLine:{lineStyle:{width:20,color:[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-20,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-20,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:20,fontSize:15},detail:{valueAnimation:!0,fontSize:15,lineHeight:15,borderRadius:8,formatter:"{value} A\n"+this.$t("dl"),color:"inherit"},data:[{value:e}]}]};null!=this.$refs.sbDlRef&&void 0!=this.$refs.sbDlRef&&o["init"](this.$refs.sbDlRef).setOption(i)},echartZgl:function(t,e){var i={series:[{type:"gauge",min:0,max:t,radius:"100%",axisLine:{lineStyle:{width:20,color:[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-20,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-20,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:20,fontSize:15},detail:{valueAnimation:!0,fontSize:15,lineHeight:15,borderRadius:8,formatter:"{value} KW\n"+this.$t("gl"),color:"inherit"},data:[{value:e}]}]};null!=this.$refs.sbGlRef&&void 0!=this.$refs.sbGlRef&&o["init"](this.$refs.sbGlRef).setOption(i)},echartGlys:function(t,e){var i={series:[{type:"gauge",radius:"100%",axisLine:{show:!0,lineStyle:{width:5,color:[[1,new o["graphic"].LinearGradient(0,1,0,0,[{offset:1,color:"#B371EE"},{offset:0,color:"rgba(0, 0, 255, 0)"}],!1)]]}},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},detail:{show:!1}},{type:"gauge",min:0,max:t,radius:"60%",axisLine:{lineStyle:{width:30,color:[[1,"#B371EE"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-30,length:8,lineStyle:{color:"#fff",width:2}},splitLine:{distance:-30,length:30,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:-40,fontSize:15},detail:{valueAnimation:!0,fontSize:20,lineHeight:20,borderRadius:8,formatter:"{value} Hz\n频率",color:"inherit",offsetCenter:[0,"60%"]},data:[{value:e}]}]};null!=this.$refs.sbGlysRef&&void 0!=this.$refs.sbGlysRef&&o["init"](this.$refs.sbGlysRef).setOption(i)},queryDate:function(t){var e=t.getFullYear(),i=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),s=t.getHours()<10?"0"+t.getHours():t.getHours(),r=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),n=e+"-"+i+"-"+a+" "+s+":"+r+":"+o;return n},hdlStatics:function(){var t=this,e={},i=new Date,a=this.queryDate(i),s=new Date(a);s.setHours(s.getHours()-24),e.startTime=this.queryDate(s),e.endTime=a,e.token=this.usertoken,e.productPhOrder=this.queryParams.productPhOrder,e.type="listHdlTotalQuery",e.productId=this.queryParams.productId,Object(r["i"])(e).then((function(e){var i=e.data,a="kWh";null!=i&&t.echartHdl(i.xAxis,i.ydata,a)})).catch((function(){}))},gLStatics:function(){var t=this,e={},i=new Date,a=this.queryDate(i),s=new Date(a);s.setHours(s.getHours()-24),e.startTime=this.queryDate(s),e.endTime=a,e.token=this.usertoken,e.productPhOrder=this.queryParams.productPhOrder,e.type="listGlAllTotalQuery",e.productId=this.queryParams.productId,Object(r["i"])(e).then((function(e){for(var i=e.data,a=i.typeData,s=[],r=[],o=0;o<a.length;o++){var n=a[o],l={};if("1"==n.id){var c={};c.name=t.$t("yggl"),c.icon="circle",r.push(c),l.name=t.$t("yggl"),l.smooth=!0,l.showSymbol=!1,l.type="line",l.data=n.ydata,l.color="#09BC3C",s.push(l)}else if("2"==n.id&&"1"!=t.productType){var d={};d.name=t.$t("wggl"),d.icon="circle",r.push(d),l.name=t.$t("wggl"),l.smooth=!0,l.showSymbol=!1,l.type="line",l.color="#0D32FE",l.data=n.ydata,s.push(l)}else if("3"==n.id&&"1"!=t.productType){var u={};u.name=t.$t("szgl"),u.icon="circle",r.push(u),l.name=t.$t("szgl"),l.smooth=!0,l.showSymbol=!1,l.type="line",l.color="red",l.data=n.ydata,s.push(l)}}var p=i.xAxis,h="kW";null!=a&&t.echartGl(r,p,s,h)})).catch((function(){}))},echartHdl:function(t,e,i){var a={tooltip:{trigger:"axis",formatter:function(t){var e=t[0].name+"<br/>";return t.forEach((function(t){e+=t.seriesName+": "+t.value.toFixed(3)+"<br/>"})),e}},xAxis:{name:"T",type:"category",boundaryGap:!1,data:t,axisLabel:{formatter:function(t){return t.length>11?t.substring(0,11)+"\n"+t.substring(11):t}}},yAxis:{name:i,type:"value",splitLine:{lineStyle:{type:"dashed",color:"#ddd",width:1,dashPattern:[4,4]}},axisLabel:{formatter:"{value}"}},series:[{type:"line",color:"#09BC3C",smooth:!0,showSymbol:!1,data:e,areaStyle:{color:"#D8EDDC",opacity:1,origin:"start"}}]};null!=this.$refs.sbHdlRef&&void 0!=this.$refs.sbHdlRef&&o["init"](this.$refs.sbHdlRef).setOption(a)},echartGl:function(t,e,i,a){var s={tooltip:{trigger:"axis",formatter:function(t){var e=t[0].name+"<br/>";return t.forEach((function(t){e+=t.seriesName+": "+t.value.toFixed(3)+"<br/>"})),e}},legend:{data:t},xAxis:{name:"T",type:"category",boundaryGap:!1,data:e,axisLabel:{formatter:function(t){return t.length>11?t.substring(0,11)+"\n"+t.substring(11):t}}},yAxis:{name:a,type:"value",splitLine:{lineStyle:{type:"dashed",color:"#ddd",width:1,dashPattern:[4,4]}},axisLabel:{formatter:"{value}"}},series:i};null!=this.$refs.sbHdlRefGl&&void 0!=this.$refs.sbHdlRefGl&&o["init"](this.$refs.sbHdlRefGl).setOption(s)},queryProductList:function(){var t=this,e={};e.token=this.usertoken,e.type="listSbRestartQuery",this.loading=!0,Object(r["f"])(e).then((function(e){t.productList=e.data,t.queryParams.productId=t.productList[0].productId,t.productType=e.data[0].productType,t.queryTotalOrderStatus("L1"),t.productPhOrder="L1"})).catch((function(){})),this.loading=!1},onSocketMessageToOverall:function(t){if(t.success&&null!=t.data&&""!=t.data.data&&null!=t.data.data)if(this.totalStatusList=t.data.data,null==this.totalStatusList[0].productPhOrder||void 0==this.totalStatusList[0].productPhOrder)this.productData=this.totalStatusList[0],this.echartDy(this.productData.productVoltageMaximum,this.productData.productVoltage),this.echartDl(this.productData.productCurrentMaximum,this.productData.productCurrent),this.echartZgl(this.productData.productPowerMaximum,this.productData.productPower);else for(var e=0;e<this.totalStatusList.length;e++)if(this.totalStatusList[e].productPhOrder==this.productPhOrder)return this.productData=this.totalStatusList[e],this.echartDy(this.productData.productVoltageMaximum,this.productData.productVoltage),this.echartDl(this.productData.productCurrentMaximum,this.productData.productCurrent),void this.echartZgl(this.productData.productPowerMaximum,this.productData.productPower)},dataRefreh:function(){var t=this;setInterval((function(){t.queryTotalStatus()}),2e3)},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleClick:function(t,e){console.log(t,e)},queryTotalOrderStatus:function(t){"L1"==t?(this.isSpana=!1,this.isSpanb=!0,this.isSpanc=!0,this.isSpanALL=!0):"L2"==t?(this.isSpana=!0,this.isSpanb=!1,this.isSpanc=!0,this.isSpanALL=!0):"L3"==t?(this.isSpana=!0,this.isSpanb=!0,this.isSpanc=!1,this.isSpanALL=!0):"ALL"==t&&(this.isSpana=!0,this.isSpanb=!0,this.isSpanc=!0,this.isSpanALL=!1),this.queryParams.productPhOrder=t,this.productPhOrder=t,this.queryTotalStatus()},queryTotalStatus:function(){var t=this;this.queryParams.token=this.usertoken,this.queryParams.type="listQuery",Object(r["i"])(this.queryParams).then((function(e){t.totalStatusList=e.data,t.productData=t.totalStatusList[0],t.echartDy(t.productData.productVoltageMaximum,t.productData.productVoltage),t.echartDl(t.productData.productCurrentMaximum,t.productData.productCurrent),t.echartZgl(t.productData.productPowerMaximum,t.productData.productPower)})),this.hdlStatics(),this.gLStatics()},totalopen:function(t,e){var i=this,a={};a.token=this.usertoken,a.type="open",a.productNumber=e.productNumber,a.productId=e.productId,this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(r["i"])(a)})).then((function(){i.$modal.msgSuccess(i.$t("zxcg")),i.queryTotalStatus()})).catch((function(){}))},totalclose:function(t,e){var i=this,a={};a.token=this.usertoken,a.type="close",a.productNumber=e.productNumber,a.productId=e.productId,this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(r["i"])(a)})).then((function(){i.$modal.msgSuccess(i.$t("zxcg")),i.queryTotalStatus()})).catch((function(){}))},openLoading:function(){this.$modal.loading(this.$t("zzjzqsh"))},handleCommand:function(t,e){var i=this,a={};switch(a.token=this.usertoken,a.productId=e,t){case"open":a.type="open",this.$modal.confirm(this.$t("qrykqm2")).then((function(){Object(r["i"])(a)})).then((function(){i.$modal.msgSuccess(i.$t("zxcg")),i.queryTotalStatus()})).catch((function(){}));break;case"close":a.type="close",this.$modal.confirm(this.$t("qrygbm2")).then((function(){Object(r["i"])(a)})).then((function(){i.$modal.msgSuccess(i.$t("zxcg")),i.queryTotalStatus()})).catch((function(){}));break;default:break}}}},l=n,c=(i("ae16"),i("d26a"),i("2877")),d=Object(c["a"])(l,a,s,!1,null,"36b4cae9",null);e["default"]=d.exports},d26a:function(t,e,i){"use strict";i("348b")}}]);