Files
starRiverProperty/frontend/dashboard-front/js/chunk-6c2589de.f1f7b48d.js
反编译工作区 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
25 KiB
JavaScript

(window["webpackJsonp_"]=window["webpackJsonp_"]||[]).push([["chunk-6c2589de"],{"00d2":function(t,e,a){},"13a0":function(t,e,a){"use strict";var i=a("b811"),s=a.n(i);s.a},"1d47":function(t,e,a){},"2f03":function(t,e,a){t.exports={elInputWidth:"200px",elInputNumberWidth:"200px",elTextareaWidth:"300px",elSelectWidth:"200px",appHeaderBg:"#014051",appIconBg:"#6758f3",appIconColor:"#fff",appIconSize:"30px",appNameColor:"#fff",appNameSize:"30px"}},"4a68":function(t,e,a){},"4e43":function(t,e,a){},"68e5":function(t,e,a){"use strict";var i=a("4e43"),s=a.n(i);s.a},6941:function(t,e,a){},7663:function(t,e,a){"use strict";var i=a("a508"),s=a.n(i);s.a},8140:function(t,e,a){"use strict";var i=a("00d2"),s=a.n(i);s.a},"958e":function(t,e,a){"use strict";var i=a("4a68"),s=a.n(i);s.a},a508:function(t,e,a){},b286:function(t,e,a){"use strict";var i=a("f250"),s=a.n(i);s.a},b811:function(t,e,a){},bd36:function(t,e,a){},c025:function(t,e,a){t.exports=a.p+"img/no-auth.3ad1d43c.svg"},c7dc:function(t,e,a){"use strict";var i=a("1d47"),s=a.n(i);s.a},c937:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dash-container"},[a("div",{staticClass:"dash-top"},[a("div",{ref:"dashMap",staticClass:"dash-map"},[t.showMap?a("qz-map",{ref:"qzMap",attrs:{id:"mapId",mapInitinalOptions:t.mapInitinalOptions,showAll:!0,busId:t.mapProps.busId,screenWidth:this.mapWidth,screenHeight:this.mapHeight,service:t.Server,autoFitView:!0,showPlayer:!1,limit:[1,4],customMarkerInfoWindow:t.devicePopperComponent},on:{pointsUpdated:t.setFitView,markerClick:t.markerClick,mapClick:t.picMapClick,picMapClick:t.picMapClick},scopedSlots:t._u([{key:"icon",fn:function(e){return[t.markerClickIds.indexOf(e.data.id)>-1?a("device-popper",{attrs:{item:e.data}}):t._e()]}}],null,!1,1505099826)}):t._e()],1),a("div",{staticClass:"dash-top-right"},[a("dash-board-card",{staticClass:"dash-message",attrs:{title:t.messageCenter,nameApp:t.messageName}}),a("dash-board-card",{staticClass:"dash-app",attrs:{title:this.appright[0].code,nameApp:this.appright[0].name}})],1)]),a("div",{staticClass:"app-card-list"},t._l(this.totalList,(function(t,e){return a("DashBoardCard",{key:e,staticClass:"app-card-single",attrs:{title:t.code,nameApp:t.name}})})),1)])},s=[],n=(a("4de4"),a("c975"),a("a434"),a("b0c0"),a("b64b"),a("d4ec")),o=a("bee2"),r=a("262e"),c=a("2caf"),l=a("9ab4"),h=a("60a3"),d=a("0613"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dash-app-card"},[this.titleList.includes(this.type)?a("div",{staticClass:"card-title"},[t._v(" "+t._s(t.nameApp)+" ")]):t._e(),t._t("content"),"flow"===this.type?a("flow-app"):t._e(),"access-control"===this.type?a("work-app"):t._e(),"message-center"===this.type?a("message-app"):t._e(),"alarm-app"===this.type?a("monitor-app"):t._e(),"smart-attendance"===this.type?a("attendence-app"):t._e(),this.titleList.includes(this.type)?t._e():a("app-place",{staticClass:"no-auth-style"})],2)},p=[],m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-content"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0!==this.dataFlow.length&&0!==this.flowChartData.hour.length||0!==this.flowChartData.customerFlow.length,expression:"\n this.dataFlow.length !== 0 && this.flowChartData.hour.length !== 0 ||\n this.flowChartData.customerFlow.length !== 0\n "}],staticClass:"chart-inner-content"},[a("div",{staticClass:"linetop-container"},t._l(this.dataFlow,(function(e,i){return a("div",{key:i,staticClass:"linetop-news"},[a("div",{staticClass:"linetop-title"},[t._v(t._s(e.itemTitle))]),a("div",{staticClass:"linetop-number"},[2===i?a("div",{class:[t.contrastFlag>0?t.lineSquareMore:t.lineSquareLess]},[a("span",{staticClass:"line-square-content"})]):t._e(),t._v(" "+t._s(e.itemNumber)),"较昨日"===e.itemTitle&&0!==e.itemNumber?a("span",[t._v("%")]):t._e()])])})),0),a("div",{ref:"flowChartRef",staticClass:"line-top"})]),this.dataFlow&&0!==this.dataFlow.length&&this.flowChartData.hour&&0!==this.flowChartData.hour.length&&0!==this.flowChartData.customerFlow.length&&this.flowChartData.customerFlow?t._e():a("qz-no-data")],1)},f=[],v=(a("a9e3"),a("2909")),g=a("313e"),C=a.n(g),b=(a("ef97"),a("627c"),a("007d"),a("eec4")),w=a.n(b),k=function(t,e,a,i,s,n,o){var r=C.a.init(t),c=w()({strategy:"scroll",callOnAdd:!0});c.listenTo(t,(function(){C.a.init(t).resize()}));var l={tooltip:{trigger:"axis",axisPointer:{animation:!0}},legend:{orient:"horizontal",bottom:"5",align:"auto",left:"40",icon:"circle",x:"center",itemWidth:7,textStyle:{color:"#000",fontSize:12,padding:[0,0,0,5]},data:e},dataZoom:s,grid:{containLabel:!0,left:"3%",right:"3.2%",x:5,y:10,x2:5,y2:n,borderWidth:.1},xAxis:{type:"category",axisLine:{lineStyle:{color:"#44546F"}},axisTick:{lineStyle:{color:"#44546F"}},axisLabel:{color:"#44546F",fontSize:12},splitLine:{lineStyle:{color:"#44546F"}},data:a},yAxis:{type:"value",minInterval:1,min:o,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#44546F",fontSize:12}},series:i};return r.setOption(l),r},y=function(t,e,a){var i=C.a.init(t),s=w()({strategy:"scroll",callOnAdd:!0});s.listenTo(t,(function(){C.a.init(t).resize()}));var n=t.offsetWidth-5,o=t.offsetHeight-5,r=.44*o/2,c=100*(.3-r/n)+"%",l={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)",extraCssText:"z-index: 9999"},color:["#5B8FF9","#647697","#1AC887"],legend:{orient:"horizontal",bottom:"10",left:"80",icon:"circle",itemWidth:8,textStyle:{color:"#000",fontSize:12,padding:[0,0,0,5]},data:e},graphic:{elements:[{type:"group",left:c,top:"33%",children:[{type:"circle",shape:{r:r},style:{fill:"#fff"}},{type:"text"}]}]},series:a};return i.setOption(l),i},D=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.flowChartLengend=["人数类型"],t.flowSend={Authorization:!0},t.contrastFlag=0,t.sendFlowData={Authorization:!0},t.dataFlow=[],t.dataZoom=[{type:"slider",show:!0,xAxisIndex:[0],left:"9.5%",right:"7.4%",bottom:32,start:0,height:10,backgroundColor:"#E3F0FF",end:100,fontSize:6}],t.flowChartData={hour:[],customerFlow:[]},t.dataFlowObtain={data:{todayCustomerFlow:Number,yestodayCustomerFlow:Number,growthRate:Number}},t.chartPosition=50,t.minValueY=0,t.lineChartTop="lineTop",t.lineSquareMore="lineSquareMore",t.lineSquareLess="lineSquareLess",t.flowSeries=[{name:"人数类型",seriesName:"时间",type:"line",showAllSymbol:!0,color:{colorStops:[{offset:0,color:"#5B8FF9"},{offset:1,color:"#5B8FF9"}]},data:t.flowChartData.customerFlow}],t}return Object(o["a"])(a,[{key:"getFlow",value:function(t){var e=this;this.service.getFlowData(t).then((function(t){t.success?(e.dataFlow.push({itemTitle:"今日客流",itemNumber:t.data.todayCustomerFlow}),e.dataFlow.push({itemTitle:"昨日同期",itemNumber:t.data.yestodayCustomerFlow}),e.dataFlow.push({itemTitle:"较昨日",itemNumber:t.data.growthRate}),e.contrastFlag=e.dataFlow[2].itemNumber):console.log("获取数据失败")}))}},{key:"getFlowContrast",value:function(t){var e=this;this.service.getFlowChartData(t).then((function(t){if(t.success){for(var a=t.data,i=0;i<a.length;i++)e.flowChartData.hour.push(a[i].hour),e.flowChartData.customerFlow.push(a[i].customerFlow);var s=Math.max.apply(Math,Object(v["a"])(e.flowChartData.customerFlow));e.minValueY=0===s?5:0,e.$nextTick((function(){e.setChart()}))}else console.log("数据获取失败")})).catch((function(t){}))}},{key:"setChart",value:function(){k(this.$refs.flowChartRef,this.flowChartLengend,this.flowChartData.hour,this.flowSeries,this.dataZoom,this.chartPosition,this.minValueY)}},{key:"created",value:function(){this.getFlow(this.sendFlowData),this.getFlowContrast(this.flowSend)}},{key:"mounted",value:function(){}}]),a}(h["c"]);D=l["a"]([Object(h["a"])({components:{}})],D);var O=D,_=O,S=(a("b286"),a("2877")),F=Object(S["a"])(_,m,f,!1,null,"4506afb8",null),M=F.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-content"},[this.dataWorkReceive&&0!==this.dataWorkReceive.length?a("div",{staticClass:"chart-inner-content"},[a("div",{staticClass:"news-container"},t._l(this.dataWorkReceive,(function(e,i){return a("div",{key:i,staticClass:"left-line-news"},[a("span",{staticClass:"new-title"},[t._v(t._s(e.itemTitle))]),a("span",{staticClass:"new-number"},[t._v(t._s(e.itemNumber))])])})),0),a("div",{ref:"workChartRef",staticClass:"line-left"})]):t._e(),this.dataWorkReceive&&0!==this.dataWorkReceive.length?t._e():a("qz-no-data")],1)},T=[],j=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.workSend={Authorization:!0},t.workChartLengend=["通行人数","识别人数"],t.dataWorkReceive=[],t.dataZoom=[],t.worChartData={dataDays:[],dataOpen:[],dataRecog:[]},t.chartPosition=40,t.minValueY=0,t.lineChartLeft="lineLeft",t.workSeries=[{name:"通行人数",seriesName:"时间",type:"line",color:{colorStops:[{offset:0,color:"#1AC887"},{offset:1,color:"#1AC887"}]},data:t.worChartData.dataOpen},{name:"识别人数",seriesName:"时间",type:"line",color:{colorStops:[{offset:0,color:"#5B8FF9"},{offset:1,color:"#5B8FF9"}]},data:t.worChartData.dataRecog}],t}return Object(o["a"])(a,[{key:"getWork",value:function(t){var e=this;this.service.getWorkData(t).then((function(t){if(t.success){for(var a=t.data.daysFlows,i=0;i<a.length;i++)e.worChartData.dataDays.push(a[i].days),e.worChartData.dataOpen.push(a[i].openDoorFlow),e.worChartData.dataRecog.push(a[i].recogFlow);var s=Math.max.apply(Math,Object(v["a"])(e.worChartData.dataOpen)),n=Math.max.apply(Math,Object(v["a"])(e.worChartData.dataRecog));e.minValueY=0===s&&0===n?5:0,e.dataWorkReceive.push({itemTitle:"今日通行人数",itemNumber:t.data.todayOpenDoorFlow},{itemTitle:"今日识别人数",itemNumber:t.data.todayRecogFlow}),e.$nextTick((function(){e.setChart()}))}else console.log("获取数据失败")}))}},{key:"setChart",value:function(){k(this.$refs.workChartRef,this.workChartLengend,this.worChartData.dataDays,this.workSeries,this.dataZoom,this.chartPosition,this.minValueY)}},{key:"created",value:function(){this.getWork(this.workSend)}}]),a}(h["c"]);j=l["a"]([Object(h["a"])({components:{}})],j);var x=j,I=x,N=(a("e7cc5"),Object(S["a"])(I,L,T,!1,null,"33842fca",null)),R=N.exports,A=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-content"},[this.notReadNumber>=0&&0!==this.dataMessage.length?a("div",{staticClass:"not-read"},[t._v(" "+t._s(this.notReadNumber)+"条信息未读 ")]):t._e(),this.notReadNumber>=0&&this.dataMessage&&0!==this.dataMessage.length?a("div",{staticClass:"click-more"},[a("a",{staticClass:"more-news",attrs:{href:"javascript:void(0);"},on:{click:t.watchMore}},[t._v("更多消息")]),a("a",{attrs:{href:""}},[a("svg-icon",{staticClass:"read-icon",attrs:{name:t.clickDrag}})],1)]):t._e(),this.dataMessage&&0!==this.dataMessage.length?a("div",{staticClass:"messageTop"},t._l(this.dataMessage,(function(e,i){return a("div",{key:i,staticClass:"messageChild",on:{click:function(a){return t.jumpTargetUrl(e.itemId,e.itemUrl)}}},[a("div",{staticClass:"svg-alert"},[a("svg-icon",{attrs:{name:t.alertblue}})],1),a("a",{staticClass:"message-content"},[t._v("【"+t._s(e.itemTitle)+"】"+t._s(e.itemContent))])])})),0):t._e(),this.dataMessage&&0!==this.dataMessage.length?t._e():a("qz-no-data")],1)},z=[],$=(a("9911"),function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.clickDrag="clickDrag",t.empty="empty",t.alertblue="alertblue",t.dataMessage=[],t.notReadNumber=-1,t.alarmMapBoardData=[],t.messageIds=[],t.listMock=[],t.messageSend={Authorization:!0},t}return Object(o["a"])(a,[{key:"watchMore",value:function(){window.history.pushState({},"message","/sub-front_message#/message/index")}},{key:"getMessageData",value:function(t){var e=this;this.messageIds=[],this.service.getMessageCenter(t).then((function(t){if(t.success){e.notReadNumber=Number(t.data.messageUnReadCount)||-1;for(var a=t.data.msgInfos,i=0;i<a.length;i++)e.dataMessage.push({itemId:a[i].messageId,itemType:a[i].msgType,itemTitle:a[i].msgTypeDesc,itemContent:a[i].msgContent,itemUrl:a[i].link})}else console.log("获取数据失败")}))}},{key:"jumpTargetUrl",value:function(t,e){this.messageIds.push(t),this.service.sendReadedMessage({messageIds:this.messageIds}).then((function(t){t.success?window.open(e):console.log("获取数据失败")}))}},{key:"created",value:function(){this.getMessageData(this.messageSend)}}]),a}(h["c"]));$=l["a"]([Object(h["a"])({})],$);var W=$,q=W,P=(a("f4b5"),Object(S["a"])(q,A,z,!1,null,"72214e2a",null)),V=P.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-content"},[0!==this.monitorListData.monitorSelect.length&&0!==this.monitorChartData.dataDate.length?a("div",{staticClass:"chart-inner-content"},[a("div",{staticClass:"monitor-select-content"},[a("div",{staticClass:"monitor-select-title"},[t._v("切换布控类型")]),a("el-select",{staticClass:"monitor-select",attrs:{size:"small"},model:{value:t.monitorSelectValue,callback:function(e){t.monitorSelectValue=e},expression:"monitorSelectValue"}},t._l(this.monitorListData.monitorSelect,(function(e,i){return a("el-option",{key:i,attrs:{value:e.name},nativeOn:{click:function(a){return t.typeChange(e.value)}}})})),1)],1),a("div",{ref:"monitorChartRef",staticClass:"monitor-card"})]):t._e(),this.monitorListData.monitorSelect&&this.monitorChartData.dataDate&&0!==this.monitorListData.monitorSelect.length&&0!==this.monitorChartData.dataDate.length?t._e():a("qz-no-data")],1)},E=[],Y=(a("d3b7"),function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.MonitorContent="MonitorApp",t.monitorChartLengend=["报警人数"],t.monitorSelectValue="",t.monitorChartSend={startTime:0,endTime:0,controlTaskCode:"STRANGER"},t.monitorListSend={Authorization:!0},t.monitorChartData={dataDate:[],dataRecog:[]},t.chartPosition=40,t.minValueY=0,t.dataZoom=[],t.monitorListData={monitorSelect:[]},t.monitorSeries=[{name:"报警人数",seriesName:"时间",type:"line",color:{colorStops:[{offset:0,color:"#5B8FF9"},{offset:1,color:"#5B8FF9"}]},data:t.monitorChartData.dataRecog}],t.pageCharts=null,t}return Object(o["a"])(a,[{key:"getTimeParam",value:function(){var t=Math.round(new Date((new Date).toLocaleDateString()).getTime()-5184e5),e=Math.round(new Date((new Date).toLocaleDateString()).getTime()+864e5-1);this.monitorChartSend.startTime=t,this.monitorChartSend.endTime=e}},{key:"typeChange",value:function(t){var e=this;this.getTimeParam(),this.monitorChartSend.controlTaskCode=t,this.getMonitor(this.monitorChartSend).then((function(){e.$nextTick((function(){0!==e.monitorListData.monitorSelect.length&&0!==e.monitorChartData.dataDate.length&&e.setChart()}))}))}},{key:"getMonitorList",value:function(t){var e=this;this.service.getMonitorListData(t).then((function(t){if(t.success){for(var a=t.data,i=0;i<a.length;i++)e.monitorListData.monitorSelect.push({name:a[i].controlTaskName,value:a[i].controlTaskCode});t.data&&0!==t.data.length&&(e.monitorSelectValue=t.data[0].controlTaskName,e.monitorChartSend.controlTaskCode=t.data[0].controlTaskCode,e.getMonitor(e.monitorChartSend).then((function(){e.$nextTick((function(){0!==e.monitorListData.monitorSelect.length&&0!==e.monitorChartData.dataDate.length&&e.setChart()}))})))}else console.log("获取数据失败")}))}},{key:"getMonitor",value:function(t){var e=this;return new Promise((function(a){e.service.getMonitorChartData(t).then((function(t){if(t.success){var i=t.data;e.monitorChartData.dataDate=[],e.monitorChartData.dataRecog=[];for(var s=0;s<i.length;s++)e.monitorChartData.dataDate.push(i[s].recordTime),e.monitorChartData.dataRecog.push(i[s].recordNum);var n=Math.max.apply(Math,Object(v["a"])(e.monitorChartData.dataRecog));e.minValueY=0===n?5:0,e.monitorSeries[0].data=e.monitorChartData.dataRecog,a()}else console.log("获取数据失败")}))}))}},{key:"setChart",value:function(){this.pageCharts&&this.pageCharts.dispose(),this.pageCharts=k(this.$refs.monitorChartRef,this.monitorChartLengend,this.monitorChartData.dataDate,this.monitorSeries,this.dataZoom,this.chartPosition,this.minValueY)}},{key:"created",value:function(){this.getTimeParam(),this.getMonitorList(this.monitorListSend)}}]),a}(h["c"]));Y=l["a"]([Object(h["a"])({components:{}})],Y);var Z=Y,H=Z,U=(a("c7dc"),Object(S["a"])(H,B,E,!1,null,"ef667396",null)),G=U.exports,J=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-content"},[this.attendenceFlag&&0!==this.attendenceFlag.length?a("div",{staticClass:"chart-inner-content"},[a("div",{staticClass:"attend-news-container"},t._l(this.dataAttendence,(function(e,i){return a("div",{key:i,staticClass:"attend-news-content"},[a("span",{staticClass:"news-title"},[t._v(t._s(e.name))]),a("br"),a("span",{staticClass:"news-number"},[t._v(t._s(e.value))])])})),0),a("div",{ref:"attendenceChartRef",staticClass:"attend-chart"})]):t._e(),this.attendenceFlag&&0!==this.attendenceFlag.length?t._e():a("qz-no-data")],1)},Q=[],K=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.pieChart="pieChartBottom",t.attendSend={startTime:0,endTime:0,Authorization:!0},t.timeStart="",t.dataAttendence=[{value:0,name:"正常考勤"},{value:0,name:"早退人数"},{value:0,name:"迟到人数"}],t.attendenceFlag=[],t.attendenceSeries=[{name:"考勤统计",type:"pie",radius:["60%","80%"],avoidLabelOverlap:!1,center:["30%","44%"],left:100,label:{normal:{show:!1,position:"center"}},data:t.dataAttendence}],t.attendencerChartLengend=["正常考勤","迟到人数","早退人数"],t}return Object(o["a"])(a,[{key:"getTimeParam",value:function(){var t=Math.round(new Date((new Date).toLocaleDateString()).getTime()),e=Math.round(new Date((new Date).toLocaleDateString()).getTime()+864e5-1);this.attendSend.startTime=t,this.attendSend.endTime=e}},{key:"getAttendence",value:function(t){var e=this;this.service.getAttendencetData(t).then((function(t){t.success?(e.dataAttendence[0].value=t.data.normalNum,e.dataAttendence[1].value=t.data.earlyNum,e.dataAttendence[2].value=t.data.lateNum,e.attendenceFlag.push(t.data.normalNum),e.attendenceFlag.push(t.data.earlyNum),e.attendenceFlag.push(t.data.lateNum),e.$nextTick((function(){e.setChart()}))):console.log("获取数据失败")}))}},{key:"setChart",value:function(){y(this.$refs.attendenceChartRef,this.attendencerChartLengend,this.attendenceSeries)}},{key:"created",value:function(){this.getTimeParam(),this.getAttendence(this.attendSend)}}]),a}(h["c"]);K=l["a"]([Object(h["a"])({components:{}})],K);var X=K,tt=X,et=(a("8140"),Object(S["a"])(tt,J,Q,!1,null,"16f7176d",null)),at=et.exports,it=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},st=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chart-content"},[i("img",{attrs:{src:a("c025"),alt:""}}),i("span",{staticClass:"no-auth-text"},[t._v("更多数据看板模板请联系管理员获取")])])}],nt=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.pieChart="pieChartBottom",t.attendSend={startTime:"1593273600000",endTime:"1593532799000"},t}return a}(h["c"]);nt=l["a"]([Object(h["a"])({components:{}})],nt);var ot=nt,rt=ot,ct=(a("13a0"),Object(S["a"])(rt,it,st,!1,null,"08d6ce44",null)),lt=ct.exports,ht=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.titleList=["flow","access-control","message-center","alarm-app","smart-attendance"],t}return Object(o["a"])(a,[{key:"created",value:function(){this.type=this.title}}]),a}(h["c"]);l["a"]([Object(h["b"])({default:"",type:String})],ht.prototype,"title",void 0),l["a"]([Object(h["b"])({default:"",type:String})],ht.prototype,"nameApp",void 0),ht=l["a"]([Object(h["a"])({components:{FlowApp:M,WorkApp:R,MessageApp:V,MonitorApp:G,AttendenceApp:at,AppPlace:lt}})],ht);var dt=ht,ut=dt,pt=(a("68e5"),Object(S["a"])(ut,u,p,!1,null,"08ad2689",null)),mt=pt.exports,ft=a("f5ea"),vt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"device-status",class:{"gis-device-status":t.isGisMapType}},[a("span",{staticClass:"el-tooltip__popper is-dark custom-position"},[t._v(t._s(t.currentData.deviceName||"-"))]),a("span",{staticClass:"device-title"},[t._v(t._s(t.currentData.deviceName||"-"))]),0===t.currentData.status&&2===t.currentData.onlineStatus?a("span",{staticClass:"device-circle device-circle-online"}):t._e(),0===t.currentData.status&&3===t.currentData.onlineStatus?a("span",{staticClass:"device-circle device-circle-offline"}):t._e(),1===t.currentData.status?a("span",{staticClass:"device-circle device-circle-disable"}):t._e(),0===t.currentData.status&&2===t.currentData.onlineStatus?a("span",{staticClass:"line-state online-state"},[t._v("在线")]):t._e(),0===t.currentData.status&&3===t.currentData.onlineStatus?a("span",{staticClass:"line-state offline-state"},[t._v("离线")]):t._e(),1===t.currentData.status?a("span",{staticClass:"line-state disable-state"},[t._v("禁用")]):t._e()])},gt=[],Ct=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.currentData={},t.isGisMapType=!1,t}return Object(o["a"])(a,[{key:"created",value:function(){}},{key:"mounted",value:function(){if(this.point&&0!=Object.keys(this.point).length?this.isGisMapType=!0:this.isGisMapType=!1,this.point)for(var t in this.point.data)this.$set(this.currentData,t,this.point.data[t]);if(this.item)for(var e in this.item)this.$set(this.currentData,e,this.item[e])}}]),a}(h["c"]);l["a"]([Object(h["b"])()],Ct.prototype,"point",void 0),l["a"]([Object(h["b"])()],Ct.prototype,"item",void 0),Ct=l["a"]([Object(h["a"])({name:"DevicePopper",components:{}})],Ct);var bt=Ct,wt=bt,kt=(a("958e"),Object(S["a"])(wt,vt,gt,!1,null,"845abc36",null)),yt=kt.exports,Dt=a("103b"),Ot=function(t){Object(r["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(n["a"])(this,a),t=e.apply(this,arguments),t.devicePopperComponent=yt,t.messageCenter="message-center",t.messageName="消息中心",t.businessId=t.$store.state.user.userInfo.businessId,t.Server=Dt["a"],t.appright=[],t.totalList=[],t.appReceiveList=[],t.filterName=[],t.lengthTotalLack=0,t.showMap=!1,t.standardAppList=[{name:"客流统计",code:"flow"},{name:"门禁",code:"access-control"},{name:"考勤",code:"smart-attendance"},{name:"区域布控",code:"alarm-app"}],t.appListOperation=[],t.mapWidth="",t.mapHeight="",t.mapProps={busId:t.businessId,mapInitinalOptions:{zoom:4},points:[],alarms:[]},t.mapInitinalOptions={zoom:4},t.markerClickIds=[],t.popperOptions={boundary:""},t}return Object(o["a"])(a,[{key:"setFitView",value:function(){var t=this;this.$nextTick((function(){t.$refs.qzMap&&t.$refs.qzMap.setFitView()}))}},{key:"getMapWidth",value:function(){var t=this;this.$refs.dashMap;this.mapHeight="666px",this.mapWidth="100%",this.$nextTick((function(){t.showMap=!0,t.$nextTick((function(){t.popperOptions.boundary=t.$refs.dashMap}))}))}},{key:"operation",value:function(t){var e=this;this.appListCalc();for(var a=0;a<this.appReceiveList.length;a++)this.filterName.push(this.appReceiveList[a].code);if("no-authorition"!==this.filterName[0]){if(this.totalList=t.filter((function(t){return-1!==e.filterName.indexOf(t.code)})),this.totalList.length<4){this.lengthTotalLack=4-this.totalList.length;for(var i=0;i<this.lengthTotalLack;i++)this.totalList.push({code:"no-authorition",name:""})}}else{this.lengthTotalLack=4-this.totalList.length;for(var s=0;s<this.lengthTotalLack;s++)this.totalList.push({code:"no-authorition",name:""})}this.appright.push(this.totalList.shift())}},{key:"appListCalc",value:function(){if(this.appListOperation=d["a"].state.global.appList,this.appListOperation.length&&0!==this.appListOperation.length)for(var t=0;t<this.appListOperation.length;t++)this.appReceiveList.push({name:this.appListOperation[t].name,code:this.appListOperation[t].serviceCode});else this.appReceiveList.push({name:"",code:"no-authorition"});return this.appReceiveList}},{key:"markerClick",value:function(t){this.$refs.qzMap&&this.$refs.qzMap.clearInfoWindow&&this.$refs.qzMap.clearInfoWindow();var e={};if(t.point&&t.point.data?e=t.point.data:t.data&&(e=t.data),e&&Object.keys(e).length>0)if(e.id&&this.markerClickIds.indexOf(e.id)>-1){var a=this.markerClickIds.indexOf(e.id);this.markerClickIds.splice(a,1)}else e.id&&-1===this.markerClickIds.indexOf(e.id)&&this.markerClickIds.push(e.id)}},{key:"picMapClick",value:function(){this.$refs.qzMap&&this.$refs.qzMap.clearInfoWindow&&this.$refs.qzMap.clearInfoWindow(),this.$set(this,"markerClickIds",[])}},{key:"created",value:function(){this.operation(this.standardAppList),this.$refs.qzMap&&this.$refs.qzMap.clearInfoWindow&&this.$refs.qzMap.clearInfoWindow()}},{key:"mounted",value:function(){var t=this;this.$nextTick((function(){t.getMapWidth()}))}}]),a}(h["c"]);l["a"]([Object(h["b"])({default:"",type:String})],Ot.prototype,"busId",void 0),Ot=l["a"]([Object(h["a"])({components:{DashBoardCard:mt,QzMap:ft["a"],DevicePopper:yt}})],Ot);var _t=Ot,St=_t,Ft=(a("f712"),a("7663"),Object(S["a"])(St,i,s,!1,null,"77a7f254",null));e["default"]=Ft.exports},e7cc5:function(t,e,a){"use strict";var i=a("bd36"),s=a.n(i);s.a},f250:function(t,e,a){},f4b5:function(t,e,a){"use strict";var i=a("6941"),s=a.n(i);s.a},f712:function(t,e,a){"use strict";var i=a("2f03"),s=a.n(i);s.a}}]);