(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68c91555"],{"0ba4":function(e,t,a){},"3ca3":function(e,t,a){"use strict";var i=a("6547").charAt,n=a("69f3"),r=a("7dd0"),o="String Iterator",s=n.set,l=n.getterFor(o);r(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(this),a=t.string,n=t.index;return n>=a.length?{value:void 0,done:!0}:(e=i(a,n),t.index+=e.length,{value:e,done:!1})}))},"4df4":function(e,t,a){"use strict";var i=a("0366"),n=a("7b0b"),r=a("9bdd"),o=a("e95a"),s=a("50c4"),l=a("8418"),c=a("35a1");e.exports=function(e){var t,a,p,d,u,m,h=n(e),f="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,b=void 0!==g,y=c(h),_=0;if(b&&(g=i(g,v>2?arguments[2]:void 0,2)),void 0==y||f==Array&&o(y))for(t=s(h.length),a=new f(t);t>_;_++)m=b?g(h[_],_):h[_],l(a,_,m);else for(d=y.call(h),u=d.next,a=new f;!(p=u.call(d)).done;_++)m=b?r(d,g,[p.value,_],!0):p.value,l(a,_,m);return a.length=_,a}},"7edd":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAA4CAYAAABzPZE8AAAAAXNSR0IArs4c6QAAAb5JREFUWAntWcFKw0AQnd1UCyoIBUH0KEihF6WlIBUVb4JoBcU/6B8IHnuV3rz4F9JPEEGEYkAQRAVPonjyFPAg6TgbnAhhK7VNd3PYuUx2Jux7eTOZwEaAxhqNxtjr+0cdhahTuoIAc4A4pbk1lZBI7rK9e7AXArQIdCGZG9Xa442bzaacmJ456SKeUqzAcRM+JqEIIOKRCdAkRlSOqASI58mkqbVUTRj1gClEDU5OvQUUN9aEGg4gf15DXc5YTBJSxRhaDyAZDaIeSVNhOcpJ2O9DqHJYN0eCS+CUyJQSOWbzX7+xVoOVahk8L/4Qx1uEYQjXHR8uLq/i2F8XA/dEtbykJaDAFDGV79cGJtHxb0E9sc5UXOX7NbG1s0+T264NrESatB0JVtMpkSkl3MQcuhxuYrKEaXo3J1hNp0SmlHATc+hyuInJEqbp3ZxgNZ0Sv0oIEfDClpd0rvxmC5xxVU/c8MKWlwKxbQucceX8bKENQjxzwIb3fN/vFoulFzofOLRBQGFGZz1Pj/cPi8XSJK1rNojEw6q6XDoWQrRskMjWjzhWQJVmc331LAg+76hhv0idPPk85cf5nrT9N4/tje51Bm0gAAAAAElFTkSuQmCC"},9923:function(e,t,a){"use strict";(function(e){var i=a("5530"),n=a("ae8c");t["a"]={data:function(){return{scroll_time:null,screen:"",searchType:"1"}},props:["sideBarList","projectId","roadId","sideBarListIsOpen","projectSelectFun","roadSelectFun","sideBarIsOn","sideBarType","reportType","sideBarCompanyList","projectAll"],computed:Object(i["a"])({},Object(n["b"])({version:"version"})),mounted:function(){},methods:{click1:function(e){this.sideBarListIsOpen(e)},click2:function(e,t){this.projectSelectFun(e,t)},click3:function(){function t(a){0!=e(".screenEN").length?0==a?e(".screenEN input").attr("placeholder","输入关键字按下回车键搜索"):e(".screenEN input").attr("placeholder","Enter keywords Search by Enter"):setTimeout((function(){t(a)}),100)}this.sideBarIsOn(),t(this.version)},click4:function(){this.projectAll()},click5:function(e,t,a){console.log(e,t,a,"--------------------"),this.roadSelectFun(e,t,a)},searchTypeChange:function(){this.sideBarCompanyList(this.screen,this.searchType)},screenChange:function(e){this.sideBarCompanyList(e,this.searchType)},userCompanyList:function(){this.sideBarCompanyList(this.screen,this.searchType)}},watch:{sideBarType:function(t){var a=this;"on"==t&&0!=this.projectId&&(e(".sideBar_project_box .sideBar_road_select").offset()?e(".sideBar .sideBar_box").animate({scrollTop:e(".sideBar_project_box .sideBar_road_select").offset().top-250+e(".sideBar .sideBar_box").scrollTop()}):e(".sideBar .sideBar_box").animate({scrollTop:e("#sideBar_projectId_"+a.projectId).offset().top-250+e(".sideBar .sideBar_box").scrollTop()}))}}}}).call(this,a("a336"))},"9a34":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sideBar_box_new"},["on"==e.sideBarType?i("div",{staticClass:"sideBar_bg",on:{click:function(t){return e.click3()}}}):e._e(),i("div",{staticClass:"sideBar"},["on"==e.sideBarType?i("div",{staticStyle:{"line-height":"60px",cursor:"pointer"}},[i("el-input",{staticClass:"screen screenEN",attrs:{placeholder:0==e.version?"输入关键字按下回车键搜索":"Input key press return key search",clearable:""},on:{change:e.screenChange},model:{value:e.screen,callback:function(t){e.screen=t},expression:"screen"}},[i("i",{staticClass:"scree-icon el-icon-search",attrs:{slot:"prefix"},on:{click:e.userCompanyList},slot:"prefix"}),i("el-select",{staticClass:"search_type",attrs:{slot:"append",placeholder:"请选择"},on:{change:e.searchTypeChange},slot:"append",model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[i("el-option",{attrs:{label:0==e.version?"项目":"project",value:"1"}}),i("el-option",{attrs:{label:0==e.version?"公司":"company",value:"0"}})],1)],1)],1):e._e(),i("div",{staticClass:"sideBar_box scroll_show"},[e.projectAll?i("div",{staticClass:"sideBar_list"},[i("p",{class:{sideBar_project_select:0==e.projectId},staticStyle:{"padding-bottom":"0px"},on:{click:function(t){return e.click4()}}},[e._v(e._s(0==e.version?"全部项目":"All projects"))])]):e._e(),e._l(e.sideBarList,(function(t){return i("div",{key:t.id,staticClass:"sideBar_list"},[i("p",{on:{click:function(a){return e.click1(t)}}},[i("i",{staticClass:"dian"}),i("span",{staticClass:"company_name",class:{company_name_EN:1==e.version},attrs:{title:t.name}},[e._v(e._s(t.name))]),i("i",{staticClass:"el-icon-caret-top",style:{transform:"收起"==t.type||"Collapse"==t.type?"rotate(180deg)":""}})]),"收起"==t.type||"Collapse"==t.type?i("div",{staticClass:"sideBar_project_box"},e._l(t.project_list,(function(a){return i("div",{key:a.id,staticClass:"sideBar_project",on:{click:function(i){return e.click2(a,t.project_list)}}},[i("div",{staticClass:"sideBar_project_text",class:{sideBar_project_select:e.projectId==a.id&&e.projectId}},[i("i",{staticClass:"dian"}),i("span",{attrs:{title:a.projectname,id:"sideBar_projectId_"+a.id}},[e._v(e._s(a.projectname)+" ("+e._s(a.lampcount)+")")]),i("i",{staticClass:"el-icon-caret-top xiabiao",style:{transform:a.isOpen?"rotate(180deg)":""}})]),a.isOpen?e._l(a.roadList,(function(n){return i("div",{key:n.id,staticClass:"sideBar_road_text",class:{sideBar_road_select:e.roadId==n.value&&e.roadId},on:{click:function(i){return i.stopPropagation(),e.click5(n,a,t)}}},[i("span",[e._v(e._s(n.name)+" ("+e._s(n.lampcount)+")")])])})):e._e()],2)})),0):e._e()])})),0==e.sideBarList.length&&0==e.version?i("p",{staticStyle:{"text-align":"center","font-size":"16px","font-family":"PingFangSC-Medium",color:"#666666","margin-top":"20px"}},[e._v("无相关项目,请重新输入关键字")]):e._e(),0==e.sideBarList.length&&1==e.version?i("p",{staticStyle:{"text-align":"center","font-size":"16px","font-family":"PingFangSC-Medium",color:"#666666","margin-top":"20px"}},[e._v("No related items, please re-enter keywords")]):e._e()],2),i("div",{staticClass:"sideBar_button",class:{is_disabled:e.reportType&&"table"!=e.reportType&&"off"==e.sideBarType},on:{click:function(t){return e.click3()}}},[i("img",{attrs:{src:a("cf07"),height:"56",width:"34"}})])])])},n=[],r=a("9923"),o=r["a"],s=(a("f2c0"),a("2877")),l=Object(s["a"])(o,i,n,!1,null,null,null);t["a"]=l.exports},a630:function(e,t,a){var i=a("23e7"),n=a("4df4"),r=a("1c7e"),o=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:o},{from:n})},acc1:function(e,t,a){},adaa:function(e,t,a){"use strict";(function(e){var i=a("b85c"),n=a("5530"),r=a("ae8c"),o=a("9a34"),s=a("a417"),l=a("7e21");t["a"]={data:function(){return{keyword:"",dateTime:"",startDate:"",endDate:"",alarmType:"0",alarmStatus:"-1",alarmTypeList:[],repairman:0,projectNav:[],roadId:"",projectId:"",companyId:"",lampId:"",projectSelect:"",sideBarType:"off",alarmNavList:[{name:"告警信息"},{name:"历史告警"},{name:"巡检设置"}],alarmNavListEN:[{name:"Alarm"},{name:"Historical alarm"},{name:"Inspection setup"}],alarmNav:"告警信息",tableList:[],multipleSelection:[],alarmTableList:[{prop:"project",label:"项目名称"},{prop:"number",label:"报警路灯"},{prop:"stralarmtype",label:"报警事件"},{prop:"statusStr",label:"是否已处理"},{prop:"updatetime",label:"更新时间"}],alarmTableListEN:[{prop:"project",label:"Project name"},{prop:"number",label:"Alarm lamp"},{prop:"stralarmtype",label:"Alarm event"},{prop:"statusStr",label:"whether processed"},{prop:"updatetime",label:"Update time"}],patrolTableList:[{prop:"project_name",label:"项目名称"},{prop:"network_name",label:"网络名称"},{prop:"number",label:"路灯编号"},{prop:"patroltype",label:"巡检命令"},{prop:"patrolinterval",label:"巡检间隔时间(min)"},{prop:"updatetime",label:"参数设置时间"}],patrolTableListEN:[{prop:"project_name",label:"Project name"},{prop:"network_name",label:"Network name"},{prop:"number",label:"Lamp Number"},{prop:"patroltype",label:"Patrol order"},{prop:"patrolinterval",label:"Inspection interval time(min)"},{prop:"updatetime",label:"Parameter setting time"}],tableData:[],currentPage:1,pageSize:20,total:0,rightSideBarType:"off",projectList:[],inspectionSetupDialog:!1,inspectionSetupType:"",inspectionSetupform:{switch:"",interval:"",updatetime:""},patrolOrderList:[],loading:{table:!1,inspectionSetupSave:!1,detailsDetailsKeep:!1,exportExcel:!1,operatorTableData:!1,schedulingInformationData:!1,printing:!1},detailsDetailsDialog:!1,detailsDetailsData:{},itionsForm:{},itionsDialog:!1,recordForm:{},recordDialog:!1,operatorTableData:[],operatorTableList:[{prop:"number",label:"维修人员ID"},{prop:"name",label:"维修人员姓名"},{prop:"telephone",label:"手机号码"},{prop:"email",label:"邮箱"},{prop:"department",label:"所属部门"}],operatorTableListEN:[{prop:"number",label:"Maintenance Person ID"},{prop:"name",label:"Maintenance personnel name"},{prop:"telephone",label:"cellphone number"},{prop:"email",label:"mailbox"},{prop:"department",label:"Department"}],operatorCurrentPage:1,operatorTotal:0,alarmInformationId:"",schedulingInformationDialog:!1,schedulingInformationData:[],schedulingInformationList:[{prop:"name",label:"维修人员名称"},{prop:"repair_hitch",label:"故障信息"},{prop:"repair_path",label:"维修路段"},{prop:"repair_solution",label:"维修方案"},{prop:"repair_time",label:"维修故障时间"}],schedulingInformationListEN:[{prop:"name",label:"Maintenance personnel name"},{prop:"repair_hitch",label:"accident details"},{prop:"repair_path",label:"Repair section"},{prop:"repair_solution",label:"maintenance proposal"},{prop:"repair_time",label:"Update time"}],schedulingInformationPage:1,schedulingInformationTotal:0,showOverflowTooltip:!0}},components:{sideBarNew:o["a"]},computed:Object(n["a"])({},Object(r["b"])({token:"token",username:"username",client_key:"client_key",projectsId:"projectsId",version:"version",privilege:"privilege",role:"role"})),mounted:function(){1==this.version&&(this.alarmNav="Alarm"),this.getProjectNav("默认"),this.nearRepairList(),this.alarmTypeListFun(),this.patrolOrderList=[{value:"1",label:0==this.version?"开":"on"},{value:"0",label:0==this.version?"关":"off"}]},methods:{handleSelectionChange:function(e){this.multipleSelection=e},refresh:function(){"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(1,(function(e){console.log(e)})):this.patrol_list(1,(function(e){console.log(e)}))},alarmTypeListFun:function(){var e=this;s["a"].ajax_post(l["a"].alarm.alarmTypeList,{username:this.username,client_key:this.client_key,token:this.token},{},(function(t){e.alarmTypeList=t.data}),this)},sideBarCompanyList:function(e,t){var a=this;s["a"].ajax_post(l["a"].device.projectNav,{username:this.username,client_key:this.client_key,token:this.token,searchType:t,keyword:e},{},(function(e){for(var t in a.projectNav=e.data,e.data)if(1==a.version?a.$set(e.data[t],"type","Unfold"):a.$set(e.data[t],"type","展开"),e.data[t].project_list){var n,r=Object(i["a"])(e.data[t].project_list);try{for(r.s();!(n=r.n()).done;){var o=n.value;a.$set(o,"companyId",e.data[t].id)}}catch(s){r.e(s)}finally{r.f()}e.data[t].id==a.companyId&&(1==a.version?a.$set(e.data[t],"type","Collapse"):a.$set(e.data[t],"type","收起"))}}),this)},inspectionSetupdown:function(e){"Enter"==e.key&&this.inspectionSetupSave(this.lampId)},BatchSetup:function(){if(this.multipleSelection.length>0){for(var e in this.inspectionSetupDialog=!0,this.inspectionSetupType="PLSZ",this.inspectionSetupform)this.inspectionSetupform[e]="";this.inspectionSetupform.switch="1"}else this.$message({showClose:!0,message:0==this.version?"请先选中灯控":"Please select the light control",type:"warning"})},inspectionSetupSave:function(e){var t=this,a="";if("PLSZ"==this.inspectionSetupType){var n,r=Object(i["a"])(this.multipleSelection);try{for(r.s();!(n=r.n()).done;){var o=n.value;""==a?a=o.id:a+=","+o.id}}catch(c){r.e(c)}finally{r.f()}}else a=e;this.loading.inspectionSetupSave=!0,s["a"].ajax_post(l["a"].alarm.patrolPost,{username:this.username,client_key:this.client_key,token:this.token,type:"lamp",value:a,switch:this.inspectionSetupform.switch,interval:this.inspectionSetupform.interval},{},(function(){t.patrol_list(t.currentPage,(function(){}),0),t.loading.inspectionSetupSave=!1,t.inspectionSetupDialog=!1}),this,(function(){t.loading.inspectionSetupSave=!1,t.inspectionSetupDialog=!1}))},printing:function(){var t=this,a="";"告警信息"!=this.alarmNav&&"Alarm"!=this.alarmNav||(a=0),"历史告警"!=this.alarmNav&&"Historical alarm"!=this.alarmNav||(a=1),"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav||(a=2),this.loading.printing=!0,2!=a?(s["a"].ajax_post(l["a"].alarm.alarmGet,{username:this.username,client_key:this.client_key,token:this.token,projectid:this.projectId,keyword:this.keyword,startDate:this.startDate,endDate:this.endDate,alarmtype:this.alarmType,status:this.alarmStatus,type:a,download:0,page:(this.currentPage-1)*this.pageSize,count:200,print:1},{},(function(a){t.loading.printing=!1,1==t.version?t.tableList=t.alarmTableListEN:t.tableList=t.alarmTableList,t.tableData=a.data.list.history_list,t.loading.table=!1;var n,r=(t.currentPage-1)*t.pageSize+1,o=Object(i["a"])(t.tableData);try{for(o.s();!(n=o.n()).done;){var s=n.value;s.synchronizationLoading=!1,s.GL_index=r,r++}}catch(c){o.e(c)}finally{o.f()}t.showOverflowTooltip=!1,e(".el-table").css({width:"1250px",borderBottom:"1px solid #ebeef5",zoom:"0.83"}),t.$refs.elTable.doLayout();var l=t;t.$nextTick((function(){e(".el-table").print({globalStyles:!0,mediaPrint:!1,iframe:!0,deferred:e.Deferred().done((function(){e(".el-table").css({width:"100%",borderBottom:"",zoom:"1"}),l.showOverflowTooltip=!0,l.$refs.elTable.doLayout(),l.alarmGet(l.currentPage,(function(e){console.log(e)}))}))})}))}),this),this.$refs.elTable.doLayout()):s["a"].ajax_post(l["a"].alarm.patrol_list,{username:this.username,client_key:this.client_key,token:this.token,keyword:this.keyword,projectid:this.projectId,download:0,page:(this.currentPage-1)*this.pageSize,count:200,print:1},{},(function(a){t.loading.printing=!1,1==t.version?t.tableList=t.patrolTableListEN:t.tableList=t.patrolTableList,t.tableData=a.data.patrol_list;var n,r=(t.currentPage-1)*t.pageSize+1,o=Object(i["a"])(t.tableData);try{for(o.s();!(n=o.n()).done;){var s=n.value;s.GL_index=r,r++,"1"==s.patroltype?"0"==t.version?s.patroltype="开":s.patroltype="on":"0"==s.patroltype&&("0"==t.version?s.patroltype="关":s.patroltype="off")}}catch(c){o.e(c)}finally{o.f()}t.loading.table=!1,t.showOverflowTooltip=!1,e(".el-table").css({width:"1250px",borderBottom:"1px solid #ebeef5",zoom:"0.83"}),t.$refs.elTable.doLayout();var l=t;t.$nextTick((function(){e(".el-table").print({globalStyles:!0,mediaPrint:!1,iframe:!0,deferred:e.Deferred().done((function(){e(".el-table").css({width:"100%",borderBottom:"",zoom:"1"}),l.showOverflowTooltip=!0,l.$refs.elTable.doLayout(),l.patrol_list(l.currentPage,(function(e){console.log(e)}))}))})}))}),this)},nearRepairList:function(){var e=this;s["a"].ajax_post(l["a"].alarm.nearRepairList,{username:this.username,client_key:this.client_key,token:this.token},{},(function(t){e.repairman=t.data.total,e.projectList=t.data.repair_list}),this)},exportExcel:function(){var t=this;"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(this.currentPage,(function(a){t.loading.exportExcel=!1;var i=e("
");i.attr("action",a.data.path),e(document.body).append(i),i.submit()}),1):this.patrol_list(this.currentPage,(function(a){t.loading.exportExcel=!1;var i=e("");i.attr("action",a.data.path),e(document.body).append(i),i.submit()}),1)},search:function(){"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(1,(function(e){console.log(e)})):this.patrol_list(1,(function(){}))},patrol_list:function(e,t,a){var n=this,r="";a?(r=a,this.loading.exportExcel=!0):(r=0,this.loading.table=!0),1==this.version?this.tableList=this.patrolTableListEN:this.tableList=this.patrolTableList,s["a"].ajax_post(l["a"].alarm.patrol_list,{username:this.username,client_key:this.client_key,token:this.token,keyword:this.keyword,projectid:this.projectId,download:r,page:e,count:this.pageSize,section:this.roadId},{},(function(r){if(t){if(!a){n.currentPage=e,n.total=r.data.total*n.pageSize,n.tableData=r.data.patrol_list;var o,s=(n.currentPage-1)*n.pageSize+1,l=Object(i["a"])(n.tableData);try{for(l.s();!(o=l.n()).done;){var c=o.value;c.GL_index=s,s++,"1"==c.patroltype?"0"==n.version?c.patroltype="开":c.patroltype="on":"0"==c.patroltype&&("0"==n.version?c.patroltype="关":c.patroltype="off")}}catch(p){l.e(p)}finally{l.f()}n.loading.table=!1}t(r)}}),this),this.$refs.elTable.doLayout()},alarmGet:function(e,t,a){var n=this,r="";"告警信息"!=this.alarmNav&&"Alarm"!=this.alarmNav||(r=0),"历史告警"!=this.alarmNav&&"Historical alarm"!=this.alarmNav||(r=1);var o="";a?(o=a,this.loading.exportExcel=!0):(o=0,this.loading.table=!0),1==this.version?this.tableList=this.alarmTableListEN:this.tableList=this.alarmTableList,s["a"].ajax_post(l["a"].alarm.alarmGet,{username:this.username,client_key:this.client_key,token:this.token,projectid:this.projectId,keyword:this.keyword,startDate:this.startDate,endDate:this.endDate,alarmtype:this.alarmType,status:this.alarmStatus,type:r,download:o,page:e,count:this.pageSize,section:this.roadId},{},(function(r){if(t){if(!a){n.currentPage=e,n.total=r.data.list.total*n.pageSize,n.tableData=r.data.list.history_list,n.loading.table=!1;var o,s=(n.currentPage-1)*n.pageSize+1,l=Object(i["a"])(n.tableData);try{for(l.s();!(o=l.n()).done;){var c=o.value;c.GL_index=s,s++}}catch(p){l.e(p)}finally{l.f()}}t(r)}}),this)},getProjectNav:function(e){var t=this;s["a"].ajax_post(l["a"].device.projectNav,{username:this.username,client_key:this.client_key,token:this.token},{},(function(a){for(var n in t.projectNav=a.data,a.data){if(1==t.version?t.$set(a.data[n],"type","Unfold"):t.$set(a.data[n],"type","展开"),a.data[n].project_list){var r,o=Object(i["a"])(a.data[n].project_list);try{for(o.s();!(r=o.n()).done;){var s=r.value;t.$set(s,"companyId",a.data[n].id)}}catch(l){o.e(l)}finally{o.f()}}"默认"==e&&0==n&&(t.projectId=0,t.alarmGet(1,(function(){})))}}),this)},sideBarIsOn:function(){"on"==this.sideBarType?(this.sideBarType="off",document.getElementsByClassName("sideBar")[0]&&document.getElementsByClassName("sideBar")[0].setAttribute("style","width: 0px ;transition:all 0.6s;")):(this.sideBarType="on",document.getElementsByClassName("sideBar")[0]&&document.getElementsByClassName("sideBar")[0].setAttribute("style","width: 300px ;transition:all 0.6s;"))},sideBarListIsOpen:function(e){"收起"==e.type?e.type="展开":"展开"==e.type&&(e.type="收起"),1==this.version&&("Collapse"==e.type?e.type="Unfold":e.type="Collapse")},projectSelectFun:function(e){this.companyId=e.companyId,this.projectId=e.id;var t=window.localStorage;t.setItem("projectId",e.id),t.setItem("companyId",e.companyId),e.isOpen?this.$set(e,"isOpen",!1):(this.$set(e,"isOpen",!0),this.sectionNavGet(this.projectId,e)),this.roadId="","巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(1,(function(){})):this.patrol_list(1,(function(){}))},roadSelectFun:function(e,t,a){var i=window.localStorage;a.id!=this.companyId&&(i.setItem("companyId",a.id),this.companyId=a.id),t.id!=this.projectId&&(i.setItem("projectId",e.id),this.projectId=t.id),this.roadId=e.value,"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(1,(function(){})):this.patrol_list(1,(function(){}))},sectionNavGet:function(e,t){var a=this;console.log(e,t),s["a"].ajax_post(l["a"].gisMap.section_nav,{username:this.username,client_key:this.client_key,token:this.token,projectid:e},{},(function(e){a.$set(t,"roadList",e.data.list),console.log(e)}),this)},rightSideBarIsOn:function(){"on"==this.rightSideBarType?(this.rightSideBarType="off",document.getElementsByClassName("right_sidebar")[0]&&document.getElementsByClassName("right_sidebar")[0].setAttribute("style","width: 0px ;transition:all 0.6s;")):(this.rightSideBarType="on",document.getElementsByClassName("right_sidebar")[0]&&document.getElementsByClassName("right_sidebar")[0].setAttribute("style","width: 470px ;transition:all 0.6s;"))},alarmNavFun:function(e){this.alarmNav=e,"告警信息"!=e&&"Alarm"!=e||this.alarmGet(1,(function(){})),"历史告警"!=e&&"Historical alarm"!=e||this.alarmGet(1,(function(){})),"巡检设置"!=e&&"Inspection setup"!=e||this.patrol_list(1,(function(){}))},tableRowClassName:function(e){var t=e.rowIndex;return t%2==0?"row_bg":""},handleSizeChange:function(e){this.pageSize=e,"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(this.currentPage,(function(){})):this.patrol_list(this.currentPage,(function(){}))},handleCurrentChange:function(e){"巡检设置"!=this.alarmNav&&"Inspection setup"!=this.alarmNav?this.alarmGet(e,(function(){})):this.patrol_list(e,(function(){}))},operatorCurrentChange:function(e){this.operatorTableDataGet(this.alarmInformationId,e)},schedulingInformationChange:function(e){this.alarmRepairInfoFun(this.alarmInformationId,e)},tableOperationfun1:function(e){var t=this;this.alarmInformationId=e.id,0==e.status?s["a"].ajax_post(l["a"].alarm.alarmSet,{username:this.username,client_key:this.client_key,token:this.token,ids:e.id,status:1},{},(function(e){t.$message({showClose:!0,message:e.msg,type:"success"}),t.alarmGet(t.currentPage,(function(){}))}),this):this.operatorTableDataGet(e.id,1)},operatorTableDataGet:function(e,t){var a=this;this.loading.operatorTableData=!0,s["a"].ajax_post(l["a"].alarm.repairUser,{username:this.username,client_key:this.client_key,token:this.token,alarmid:e,page:t,count:16},{},(function(e){a.itionsDialog=!0,a.loading.operatorTableData=!1,a.operatorTableData=e.data.list,a.operatorTotal=16*e.data.total,a.operatorCurrentPage=t;var n,r=16*(a.operatorCurrentPage-1)+1,o=Object(i["a"])(a.operatorTableData);try{for(o.s();!(n=o.n()).done;){var s=n.value;s.GL_index=r,r++}}catch(l){o.e(l)}finally{o.f()}}),this)},tableOperationfun2:function(e){var t=this;for(var a in this.inspectionSetupform)this.inspectionSetupform[a]="";this.inspectionSetupform.switch="1","巡检设置"==this.alarmNav||"Inspection setup"==this.alarmNav?(this.lampId=e.id,this.inspectionSetupform["interval"]=e["patrolinterval"],this.inspectionSetupform["updatetime"]=e["updatetime"],"开"==e["patroltype"]||"on"==e["patroltype"]?this.inspectionSetupform["switch"]="1":"关"!=e["patroltype"]&&"off"!=e["patroltype"]||(this.inspectionSetupform["switch"]="0"),this.inspectionSetupDialog=!0,this.inspectionSetupType="SZ"):(this.alarmInformationId=e.id,0==e.status?this.faultInfo(e.lampid,(function(e){t.detailsDetailsData=e.data,t.detailsDetailsData.userid="",t.detailsDetailsDialog=!0})):this.alarmRepairInfoFun(e.id,1))},alarmRepairInfoFun:function(e,t){var a=this;this.loading.schedulingInformationData=!0,s["a"].ajax_post(l["a"].alarm.alarmRepairInfo,{username:this.username,client_key:this.client_key,token:this.token,alarmid:e,page:t,count:16},{},(function(e){a.schedulingInformationDialog=!0,a.loading.schedulingInformationData=!1,a.schedulingInformationData=e.data.list,a.schedulingInformationTotal=16*e.data.total,a.schedulingInformationPage=t;var n,r=16*(a.schedulingInformationPage-1)+1,o=Object(i["a"])(a.schedulingInformationData);try{for(o.s();!(n=o.n()).done;){var s=n.value;s.GL_index=r,r++}}catch(l){o.e(l)}finally{o.f()}}),this)},detailsDetailsKeydown:function(e){"Enter"==e.key&&this.detailsDetailsKeep()},detailsDetailsKeep:function(){var e=this;this.detailsDetailsDialog=!1,s["a"].ajax_post(l["a"].gisMap.repairDispatch,{username:this.username,client_key:this.client_key,token:this.token,alarmid:this.detailsDetailsData.alarmid,userid:this.detailsDetailsData.userid},{},(function(t){e.$message({showClose:!0,message:t.msg,type:"success"}),e.alarmGet(e.currentPage,(function(){})),e.detailsDetailsDialog=!1,e.loading.detailsDetailsKeep=!1}),this,(function(){e.loading.detailsDetailsKeep=!1}))},faultInfo:function(e,t){s["a"].ajax_post(l["a"].gisMap.faultInfo,{username:this.username,client_key:this.client_key,token:this.token,lampid:e},{},(function(e){t&&t(e)}),this)},tableOperationfun3:function(e){var t=this;"巡检设置"==this.alarmNav||"Inspection setup"==this.alarmNav?null==e.updatetime?this.$message({showClose:!0,message:0==this.version?"该路灯尚未设置":"The street lamp has not been set up",type:"warning"}):(this.lampId=e.id,this.inspectionSetupform["interval"]=e["patrolinterval"],this.inspectionSetupform["updatetime"]=e["updatetime"],"开"==e["patroltype"]||"on"==e["patroltype"]?this.inspectionSetupform["switch"]="1":"关"!=e["patroltype"]&&"off"!=e["patroltype"]||(this.inspectionSetupform["switch"]="0"),this.inspectionSetupDialog=!0,this.inspectionSetupType="XQ"):this.$confirm(0==this.version?"此操作将永久删除该灯控, 是否继续?":"This operation will permanently delete the light control and continue?",0==this.version?"提示":"prompt",{confirmButtonText:0==this.version?"确定":"determine",cancelButtonText:0==this.version?"取消":"cancel",type:"warning"}).then((function(){s["a"].ajax_post(l["a"].alarm.alarmDel,{username:t.username,client_key:t.client_key,token:t.token,lamp_ids:e.lampid},{},(function(e){t.$message({showClose:!0,message:e.msg,type:"success"}),t.alarmGet(t.currentPage,(function(){}))}),t)})).catch((function(){t.$message({type:"info",message:0==t.version?"已取消删除":"Canceled Del"})}))},tableOperationfun4:function(e){var t=this;if(!e.synchronizationLoading){for(var a in console.log(e,this.tableData),this.tableData)this.tableData[a].id==e.id&&this.$set(this.tableData[a],"synchronizationLoading",!0);s["a"].ajax_post(l["a"].alarm.setPatrolCmd,{username:this.username,client_key:this.client_key,token:this.token,id:e.id},{},(function(e){for(var a in t.$message({showClose:!0,message:e.msg,type:"success"}),console.log(e),t.tableData)t.tableData[a].id==e.data.id&&t.$set(t.tableData[a],"synchronizationLoading",!1)}),this,(function(e){for(var a in t.$message({showClose:!0,message:e.msg,type:"warning"}),t.tableData)t.tableData[a].id==e.data.id&&t.$set(t.tableData[a],"synchronizationLoading",!1)}))}},routerLink:function(e,t){if(t){var a=window.localStorage,n=t.lampid;a.setItem("videoId",n)}for(var r=[{key:"2",val:"/GISMap"},{key:"3",val:"/projectManagement"},{key:"7",val:"/alarmMaintenance"},{key:"7",val:"/repairPersonnel"},{key:"7",val:"/maintenanceRecord"},{key:"7",val:"/streetLightInformation"},{key:"12",val:"/historicalData"},{key:"53",val:"/videoSurveillance"},{key:"53",val:"/monitoringDetails"},{key:"55",val:"/weatherMonitor"},{key:"15",val:"/operationLog"},{key:"60",val:"/grouping"},{key:"60",val:"/addGrouping"},{key:"6",val:"/strategy"},{key:"55",val:"/weatherMonitor"},{key:"55",val:"/monitorDetails"},{key:"55",val:"/monitoringContrast"}],o=!1,s=0,l=r;s