Files
starRiverProperty/frontend/cwos-portal/static/js/213.7f5699483ab1d358cd9a.js
T
反编译工作区 0c56a3e599 chore(frontend): add static frontend build artifacts (portal, front_acs, etc.)
Made-with: Cursor

Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
2026-04-27 13:40:23 +08:00

1 line
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([213],{yaEW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Mnsi"),i=a.n(n),s=a("hMZn"),o=(a.n(s),a("SBIS")),l=(a.n(o),a("mtWM")),r=(a.n(l),a("mw3O")),d=(a.n(r),a("0isy")),c=(a.n(d),a("zL8q")),u=(a.n(c),a("IxIs")),m=a("J849"),p=a.n(m),f=a("/63W"),v=a("fI1u"),g=a.n(v),h=a("Iy39"),b=a.n(h),_=a("uiEL"),I=a.n(_),y=a("8Qmx"),w=a.n(y),B=a("X78b"),k=a.n(B),D=a("XK4L"),C=a.n(D),x=a("0xWH"),M=a.n(x),S=a("aEal"),T=a.n(S),L=a("YO+z"),F=a.n(L),$=a("HyKF"),N=a("zCeI");function j(t){if(void 0===k.a||null==w()(t)){if(g()(t)||(t=function(t,e){var a;if(t){if("string"==typeof t)return A(t,e);var n=p()(a=Object.prototype.toString.call(t)).call(a,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?C()(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(t,e):void 0}}(t))){var e=0,a=function(){};return{s:a,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,s=!0,o=!1;return{s:function(){n=I()(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){o=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw i}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var q=Object(u.a)({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"detailsView"}},[0==t.detailInfo.packageType?a("el-card",{staticClass:"box-card"},[a("el-row",{staticClass:"row-bg"},[a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("批次ID"+t._s(t.detailInfoBottom.id))]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级后版本号:"+t._s(t.detailInfo.currentVersion))]),t._v(" "),t.detailInfoBottom.dateLimit?a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("升级时间:"+t._s(t.detailInfoBottom.dateLimit))])]):t._e(),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("升级时间段:"+t._s(t.detailInfoBottom.timeLimit))]),t._v(" "),t.detailInfoBottom.deviceTotal!=t.detailInfoBottom.deviceSuccessNum?a("span",{staticClass:"ml10 blue cursor",on:{click:t.updateEndTime}},[t._v("修改时间")]):t._e()]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级时间段网络限流: "+t._s(t.detailInfoBottom.netLimit)+"kbps")]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("非升级时间段网络限流:\n "+t._s(null==t.detailInfoBottom.outTimeNetLimit?"-":t.detailInfoBottom.outTimeNetLimit+"kbps"))]),t._v(" "),a("span",{staticClass:"ml10 blue cursor",on:{click:function(e){t.updateSpeedDialogFormVisible=!0}}},[t._v("修改限流")])]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("下载队列:"+t._s(null==t.detailInfoBottom.queueLimit?"-":t.detailInfoBottom.queueLimit+"台"))]),t._v(" "),""!==t.detailInfoBottom.removeQueueMin&&null!=t.detailInfoBottom.removeQueueMin?a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("设备下载异常:"+t._s(t.detailInfoBottom.removeQueueMin)+"分钟,自动踢出下载队列")]):t._e(),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级范围:"+t._s(1==t.detailInfoBottom.upgradeRangeType?"具体设备":"设备范围"))]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("升级成果:"+t._s(t.detailInfoBottom.deviceSuccessNum+"/"+t.detailInfoBottom.deviceTotal)+"\n ")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:"待推送"==t.detailInfoBottom.statusMsg||"升级中"==t.detailInfoBottom.statusMsg||"推送中"==t.detailInfoBottom.statusMsg||"已下载"==t.detailInfoBottom.statusMsg,expression:"\n detailInfoBottom.statusMsg == '待推送' ||\n detailInfoBottom.statusMsg == '升级中' ||\n detailInfoBottom.statusMsg == '推送中' ||\n detailInfoBottom.statusMsg == '已下载'\n "}],staticClass:"blue ml10 cursor",on:{click:t.refresh}},[t._v("\n 刷新\n ")])]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级状态:"+t._s(t.detailInfoBottom.statusMsg||"-"))])],1)],1):t._e(),t._v(" "),1==t.detailInfo.packageType?a("el-card",{staticClass:"box-card"},[a("el-row",{staticClass:"row-bg"},[a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("批次ID"+t._s(t.detailInfoBottom.id))]),t._v(" "),a("el-col",{attrs:{span:8}},[t._v("升级后版本号:"+t._s(t.detailInfo.currentVersion))]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("升级时间:"+t._s(t.detailInfoBottom.dateLimit))])]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("升级时间段:"+t._s(t.detailInfoBottom.timeLimit))]),t._v(" "),t.detailInfoBottom.deviceTotal!=t.detailInfoBottom.deviceSuccessNum?a("span",{staticClass:"ml10 blue cursor",on:{click:t.updateEndTime}},[t._v("修改时间")]):t._e()]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级时间段网络限流: "+t._s(t.detailInfoBottom.netLimit)+"kbps")]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[a("span",[t._v("非升级时间段网络限流:\n "+t._s(null==t.detailInfoBottom.outTimeNetLimit?"-":t.detailInfoBottom.outTimeNetLimit+"kbps"))]),t._v(" "),a("span",{staticClass:"ml10 blue cursor",on:{click:function(e){t.updateSpeedDialogFormVisible=!0}}},[t._v("修改限流")])]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("下载队列:"+t._s(null==t.detailInfoBottom.queueLimit?"-":t.detailInfoBottom.queueLimit+"台"))]),t._v(" "),""!==t.detailInfoBottom.removeQueueMin&&null!=t.detailInfoBottom.removeQueueMin?a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("设备下载异常:"+t._s(t.detailInfoBottom.removeQueueMin)+"分钟,自动踢出下载队列")]):t._e(),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级范围:"+t._s(1==t.detailInfoBottom.upgradeRangeType?"具体设备":"设备范围"))]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级成果:"+t._s(t.detailInfoBottom.deviceSuccessNum+"/"+t.detailInfoBottom.deviceTotal)+"\n "),a("span",{directives:[{name:"show",rawName:"v-show",value:"待推送"==t.detailInfoBottom.statusMsg||"升级中"==t.detailInfoBottom.statusMsg||"推送中"==t.detailInfoBottom.statusMsg||"已下载"==t.detailInfoBottom.statusMsg,expression:"\n detailInfoBottom.statusMsg == '待推送' ||\n detailInfoBottom.statusMsg == '升级中' ||\n detailInfoBottom.statusMsg == '推送中' ||\n detailInfoBottom.statusMsg == '已下载'\n "}],staticClass:"blue ml10 cursor",on:{click:t.refresh}},[t._v("\n 刷新\n ")])]),t._v(" "),a("el-col",{staticClass:"word-break",attrs:{span:8}},[t._v("升级状态:"+t._s(t.detailInfoBottom.statusMsg||"-"))])],1)],1):t._e(),t._v(" "),t.detailInfoBottom.districtIds&&t.detailInfoBottom.districtIds.length>0?a("el-card",{staticClass:"box-card mt10"},[a("div",{staticStyle:{"margin-bottom":"10px"}},[a("span",{staticStyle:{"vertical-align":"top"}},[t._v("区域:")]),t._v(" "),a("div",{staticStyle:{display:"inline-block"}},t._l(t.areaList,function(e,n){return a("div",{key:n},[a("div",[a("span",[t._v(t._s(e.districtName))]),t._v(" "),a("i",{class:{"el-icon-arrow-up":e.show,"el-icon-arrow-down":!e.show},staticStyle:{cursor:"pointer"},on:{click:function(a){return t.handelAreaArrowClick(e)}}})]),t._v(" "),t._l(e.subArea,function(n,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"item.show"}],key:i},[t._v("\n "+t._s(F()(n).call(n,function(t){return t.districtName}).join("/"))+"\n ")])})],2)}),0)]),t._v(" "),a("el-row",{staticClass:"row-bg",attrs:{type:"flex"}},[t._v("\n 渠道商:"+t._s(t.detailInfoBottom.businessName.join(","))+"\n ")])],1):t._e(),t._v(" "),a("el-card",{staticClass:"box-card mt10"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",[a("el-cascader",{staticStyle:{width:"200px"},attrs:{options:t.areaOptions,placeholder:"请选择设备安装区域","change-on-select":!0,props:t.areaProps},model:{value:t.formInline.area,callback:function(e){t.$set(t.formInline,"area",e)},expression:"formInline.area"}})],1),t._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"设备名称"},model:{value:t.formInline.name,callback:function(e){t.$set(t.formInline,"name",e)},expression:"formInline.name"}})],1),t._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"所属渠道商"},model:{value:t.formInline.businessId,callback:function(e){t.$set(t.formInline,"businessId",e)},expression:"formInline.businessId"}},t._l(t.businessList,function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"设备编码"},model:{value:t.formInline.deviceCode,callback:function(e){t.$set(t.formInline,"deviceCode",e)},expression:"formInline.deviceCode"}})],1),t._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"升级状态"},model:{value:t.formInline.status,callback:function(e){t.$set(t.formInline,"status",e)},expression:"formInline.status"}},[a("el-option",{attrs:{label:"待推送",value:"3"}}),t._v(" "),a("el-option",{attrs:{label:"已推送",value:"5"}}),t._v(" "),a("el-option",{attrs:{label:"升级中",value:"2"}}),t._v(" "),a("el-option",{attrs:{label:"升级失败",value:"4"}}),t._v(" "),a("el-option",{attrs:{label:"升级成功",value:"1"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"fr"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.query.pageIndex=1,t.getBottomList()}}},[t._v("查询")]),t._v(" "),a("el-button",{on:{click:function(e){t.query.pageIndex=1,t.formInline.address="",t.formInline.name="",t.formInline.deviceCode="",t.formInline.status="",t.formInline.businessId="",t.formInline.area=[],t.getBottomList()}}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"mt15"},[a("el-table",{ref:"multipleTable",staticClass:"table",attrs:{data:t.tableData,"header-cell-class-name":"table-header"}},[a("el-table-column",{attrs:{prop:"deviceCode",label:"设备编码",width:"80",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"deviceName",label:"设备名称",width:"120",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"businessName",label:"所属渠道商",width:"120",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"areaAddr",label:"安装区域",width:"200",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"statusMsg",label:"升级状态",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[null==t.tableData[e.$index].percents?a("span",[t._v(t._s(t.tableData[e.$index].statusMsg))]):t._e(),t._v(" "),null!=t.tableData[e.$index].percents?a("el-progress",{attrs:{percentage:Number(t.tableData[e.$index].percents)}}):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"errorMsg",label:"失败原因",width:"150",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"设备状态",width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["2"==t.tableData[e.$index].onlineStatus?a("div",[a("span",{staticClass:"statusBoxOnline"}),t._v(" "),a("span",[t._v("在线")])]):t._e(),t._v(" "),"3"==t.tableData[e.$index].onlineStatus?a("div",[a("span",{staticClass:"statusBoxOffline"}),t._v(" "),a("span",[t._v("离线")])]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"lastUpdateTime",label:"状态更新时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.tableData[e.$index].removeFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.removeFlag(t.tableData[e.$index].id,t.tableData[e.$index].deviceCode,t.tableData[e.$index].deviceName)}}},[t._v("踢出队列")]):t._e(),t._v(" "),t.tableData[e.$index].removeFlag?t._e():a("span",[t._v("-")])]}}])})],1),t._v(" "),a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"",layout:"total, prev, pager, next","current-page":t.query.pageIndex,"page-size":t.query.pageSize,total:t.pageTotal},on:{"current-change":t.handlePageChange}})],1)],1)],1),t._v(" "),a("div",{attrs:{id:"endTimeModal"}},[a("el-dialog",{attrs:{title:"修改时间",visible:t.endDateDialogFormVisible},on:{"update:visible":function(e){t.endDateDialogFormVisible=e}}},[a("el-form",[a("el-form-item",{attrs:{label:"结束时间","label-width":"100px"}},[a("el-date-picker",{staticStyle:{width:"160px"},attrs:{format:"yyyy/MM/dd","value-format":"yyyy/MM/dd",type:"date",placeholder:"选择日期"},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"升级时间段:","label-width":"100px"}},[a("el-time-picker",{staticStyle:{width:"160px"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"开始时间"},model:{value:t.updateTimeStart,callback:function(e){t.updateTimeStart=e},expression:"updateTimeStart"}}),t._v("~\n "),a("el-time-picker",{staticStyle:{width:"160px"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"结束时间"},model:{value:t.updateTimeEnd,callback:function(e){t.updateTimeEnd=e},expression:"updateTimeEnd"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.endDateDialogFormVisible=!1,t.endDate=""}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sureUpdateEndDate(t.endDate)}}},[t._v("确 定")])],1)],1)],1),t._v(" "),a("div",{attrs:{id:"updateSpeed"}},[a("el-dialog",{attrs:{title:"修改限流",visible:t.updateSpeedDialogFormVisible},on:{"update:visible":function(e){t.updateSpeedDialogFormVisible=e}}},[a("el-form",{staticClass:"pr"},[a("span",{staticClass:"pa",staticStyle:{color:"red",top:"12px",left:"5px"}},[t._v("*")]),t._v(" "),a("el-form-item",{attrs:{label:"升级时间段网络限流","label-width":"160px"}},[a("el-input",{staticStyle:{width:"230px","margin-right":"5px"},attrs:{type:"number",autocomplete:"off",maxlength:"7"},model:{value:t.speed1,callback:function(e){t.speed1=e},expression:"speed1"}}),t._v(" "),a("span",[t._v("kbps")])],1),t._v(" "),a("el-form-item",{attrs:{label:"非升级时间段网络限流","label-width":"160px"}},[a("el-input",{staticStyle:{width:"230px","margin-right":"5px"},attrs:{type:"number",autocomplete:"off",maxlength:"7"},model:{value:t.speed2,callback:function(e){t.speed2=e},expression:"speed2"}}),t._v(" "),a("span",[t._v("kbps")]),t._v(" "),a("div",{staticClass:"lightGray font12 mt5",staticStyle:{"line-height":"initial"}},[t._v("\n 若升级设备支持在指定时间段内下载固件,则无须填写\n ")])],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.updateSpeedDialogFormVisible=!1,t.speed1="",t.speed2=""}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sureUpdateSpeed(t.speed1,t.speed2)}}},[t._v("确 定")])],1)],1)],1)],1)},staticRenderFns:[]},void 0,{data:function(){return{endDateDialogFormVisible:!1,endDate:"",areaList:[],businessList:[],updateSpeedDialogFormVisible:!1,speed1:"",speed2:"",areaOptions:[],areaProps:{label:"districtName",value:"id"},formInline:{area:[],address:"",name:"",deviceCode:"",status:"",businessId:""},detailInfo:{},detailInfoBottom:{},query:{pageIndex:1,pageSize:10},pageTotal:0,tableData:[],updateTimeStart:"",updateTimeEnd:""}},mounted:function(){this.getDetailInfo(),this.getDetailInfoBottom(),this.getArea()},methods:{getArea:function(){this.areaOptions=$.a,this.handleArea()},getBusinessList:function(){var t=this;(function(t){var e={url:"/ota/business/query",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)})({upgradeConfId:this.detailInfoBottom.id}).then(function(e){t.businessList=e.data||[]})},handelAreaArrowClick:function(t){t.show=!t.show,this.$forceUpdate()},findItemById:function(t,e){var a,n=j(t);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.id===e)return i;if(i.children&&i.children.length>0){var s=this.findItemById(i.children,e);if(s)return s}}}catch(t){n.e(t)}finally{n.f()}},findAllParent:function(t,e){var a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=Object(N.a)(n),o=this.findItemById(t,e),l=this.findItemById(t,o?o.parentId:"");return o&&(s=i()(a=[o]).call(a,Object(N.a)(n)),l&&l.parentId)?this.findAllParent(t,l?l.id:"",s):s},handleArea:function(){var t=this;if(this.detailInfoBottom.districtIds&&this.detailInfoBottom.districtIds.length>0&&this.areaOptions.length>0){var e,a,n=F()(e=this.detailInfoBottom.districtIds).call(e,function(e){return t.findAllParent(t.areaOptions,e)}),s=new T.a,o=j(n);try{for(o.s();!(a=o.n()).done;){var l,r=a.value,d=s.get(r[0].id);d||(s.set(r[0].id,r[0]),(d=r[0]).show=!1,d.subArea=[]),d.subArea=i()(l=[]).call(l,Object(N.a)(d.subArea),[p()(r).call(r,1)])}}catch(t){o.e(t)}finally{o.f()}this.areaList=Object(N.a)(M()(s).call(s))}},refresh:function(){this.getDetailInfo(),this.getDetailInfoBottom()},updateEndTime:function(t){this.endDateDialogFormVisible=!0;var e=this.detailInfoBottom.dateLimit.split("~")[1];Date.parse(e)?this.endDate=e:this.endDate=""},sureUpdateEndDate:function(t){var e,a=this;if(this.updateTimeEnd&&this.updateTimeStart){var n=this.detailInfoBottom.dateLimit.split("~")[0],s=n+"~";t&&Date.parse(new Date(n))>=Date.parse(new Date(t))?this.$message.error("开始时间不能大于或等于结束时间"):(t&&(s+=t),function(t){var e={url:"/ota/device/upgrade/conf/extend",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)}({id:this.$route.query.id,timeLimit:i()(e="".concat(this.updateTimeStart,"~")).call(e,this.updateTimeEnd),dateLimit:s.replace(/\s/g,"")}).then(function(t){a.endDateDialogFormVisible=!1,a.endDate="",a.refresh()}).catch(function(t){}))}else this.$message.error("请选择升级时间段")},sureUpdateSpeed:function(t,e){var a=this;""!==t?function(t){var e={url:"/ota/device/upgrade/conf/update",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)}({id:this.$route.query.id,netLimit:Number(t),outTimeNetLimit:Number(e)}).then(function(t){a.updateSpeedDialogFormVisible=!1,a.speed1="",a.speed2="",a.refresh()}).catch(function(t){}):this.$message.error("升级时间段网络限流不能为空!")},versionFillter:function(t){switch(t){case"1":return"应用程序";case"2":return"模型文件";case"3":return"配置文件";case"4":return"其它文件"}},getDetailInfo:function(){var t=this;(function(t){var e={url:"/ota/device/upgrade/gets",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)})({id:this.$route.query.detailId}).then(function(e){t.detailInfo=e.data,t.detailInfo.checkStatus=t.checkStatusFillter(t.detailInfo.checkStatus)}).catch(function(t){})},checkStatusFillter:function(t){switch(t){case"1":return"未上架";case"2":return"验证中";case"3":return"验证完成(已上架) ";case"4":return"已下架";case"9":return"验证失败"}},getDetailInfoBottom:function(){var t=this;(function(t){var e={url:"/ota/device/upgrade/conf/gets",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)})({id:this.$route.query.id}).then(function(e){var a=e.data.dateLimit,n=(void 0===a?"":a).split("~");n[0]=n[0]||Object(f.a)("YYYY/MM/DD",b()()),n[1]=n[1]||"不限",e.data.dateLimit=n.join(" ~ "),t.detailInfoBottom=e.data;try{var i=t.detailInfoBottom.timeLimit.split("~");t.updateTimeStart=i[0],t.updateTimeEnd=i[1]}catch(t){}t.handleArea(),t.detailInfoBottom.status=t.checkLevelStatusFillter(t.detailInfoBottom.status),t.getBottomList(),t.getBusinessList()}).catch(function(t){})},checkLevelStatusFillter:function(t){switch(t){case 1:return"升级完成";case 2:return"升级中";case 3:return"暂停";case 4:return"未执行";case 5:return"升级失败";case 6:return"任务回滚"}},getBottomList:function(){var t=this,e="";this.formInline.area&&this.formInline.area.length>0&&(e=this.formInline.area[this.formInline.area.length-1]),function(t){var e={url:"/ota/device/upgrade/revert/page",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)}({upgradeConfId:this.detailInfoBottom.id,rowsOfPage:this.query.pageSize,currentPage:this.query.pageIndex,status:this.formInline.status,deviceCode:this.formInline.deviceCode,deviceName:this.formInline.name,districtPath:e,businessId:this.formInline.businessId}).then(function(e){var a;t.pageTotal=e.data.totalRows,t.tableData=e.data.datas,F()(a=t.tableData).call(a,function(e){e.status=t.listStatusFillter(e.status),e.lastUpdateTime=t.getTime(Number(e.lastUpdateTime),"long"),e.errorMsg=null==e.errorMsg?"-":e.errorMsg,e.address=null==e.address?"-":e.address})}).catch(function(t){})},listStatusFillter:function(t){switch(t){case 1:return"成功";case 2:return"执行中";case 3:return"队列中";case 4:return"升级失败"}},handlePageChange:function(t){this.query.pageIndex=t,this.getBottomList()},removeFlag:function(t,e,a){var n=this;this.$confirm("是否确认将"+a+"踢出下载队列?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){(function(t){var e={url:"/ota/device/upgrade/revert/queue/remove",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t};return u.b.post(e)})({revertId:t,deviceCode:e}).then(function(t){n.getBottomList(),n.$message({type:"success",message:"踢出成功!"})}).catch(function(t){})}).catch(function(){})},reset:function(){},onSubmit:function(){},getTime:function(t,e){var a="";return"long"==e?(a=new Date(t)).getFullYear()+"-"+(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-"+(a.getDate()<10?"0"+a.getDate():a.getDate())+" "+(a.getHours()<10?"0"+a.getHours():a.getHours())+":"+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes())+":"+(a.getSeconds()<10?"0"+a.getSeconds():a.getSeconds()):"short"==e?(a=new Date(t)).getFullYear()+"-"+(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-"+(a.getDate()<10?"0"+a.getDate():a.getDate()):"time"==e?((a=new Date(t)).getHours()<10?"0"+a.getHours():a.getHours())+":"+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes()):"day"==e?((a=new Date(t)).getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-"+(a.getDate()<10?"0"+a.getDate():a.getDate())+" "+(a.getHours()<10?"0"+a.getHours():a.getHours())+":"+(a.getMinutes()<10?"0"+a.getMinutes():a.getMinutes()):void 0}}},"data-v-4b33b07f",!1,void 0,!1,void 0,void 0,void 0);e.default=q}});