var X=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var V=(e,t,s)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,J=(e,t)=>{for(var s in t||(t={}))se.call(t,s)&&V(e,s,t[s]);if(B)for(var s of B(t))oe.call(t,s)&&V(e,s,t[s]);return e},W=(e,t)=>ee(e,te(t));import{_ as S,o as i,e as h,f as o,W as z,F as q,C as F,a1 as w,O as b,m as d,H as p,q as v,s as x,t as u,n as g,D as P,p as C,d as ae,r as ie,j as ne,l as le,Q as re,P as ce,v as L,x as T,U as M,a5 as N,E as H,N as de,ad as ue,ae as pe}from"./index.9ed4dad3.js";import{W as he}from"./index.0c6b7683.js";import{_ as _e}from"./index.vue_vue_type_style_index_0_lang.a228535f.js";import{a as A}from"./util.77197788.js";import{v as E}from"./index.e99c69ef.js";import{c as G,a as ve}from"./operation.7d8ad074.js";import{R as me}from"./index.90ebc319.js";import{F as ye,_ as fe}from"./module-header-icon4.21c0cacb.js";import"./roadtitbg.9e7e2808.js";const ge={props:{boxbg:{Type:String,default:"rgba(177, 212, 242, 0.05)"},bordercolor:{Type:String,default:"rgba(222, 242, 254, 0.1)"},linebg:{Type:String,default:"linear-gradient(90deg, #6097C6, #FFFFFF)"},percvalue:{Type:String,default:0},decimvalue:{Type:Number,default:0}}};function be(e,t,s,c,a,n){return i(),h("div",{class:"progress-pool",style:z({background:s.boxbg,bordercolor:s.bordercolor})},[o("div",{class:"progress-pool-line",style:z({background:s.linebg,width:s.percvalue})},null,4),o("div",{class:"pro-pool-seat-out",style:z({width:s.percvalue})},[(i(!0),h(q,null,F(Math.ceil(25*s.decimvalue),(l,y)=>(i(),h("div",{key:y,class:"pro-pool-seat"}))),128))],4)],4)}var O=S(ge,[["render",be],["__scopeId","data-v-288787e6"]]);const xe="/http-server-base/publish/quota-v1",$=`/bizapi1${xe}`;function De(e){return w.get(`${$}/serviceareaSalesum`,{params:e})}function j(e){return w.get(`${$}/serviceareaCyCssum`,{params:e})}function Se(e){return w.get(`${$}/serviceareaSaleMonth`,{params:e})}function ke(e){return w.get(`${$}/serviceareaSaleType`,{params:e})}function we(e){return w.get(`${$}/serviceareaBaseinfo`,{params:e})}function $e(e){return w.get(`${$}/serviceareaVideo`,{params:e})}function Ie(e){return w.get(`${$}/oilSaleRanking`,{params:e})}function Ce(e){return w.get(`${$}/serviceareaVansum`,{params:e})}function qe(e){return w.get(`${$}/serviceareaFlow`,{params:e})}const Fe={components:{progressPool:O,vueSeamlessScroll:E},data(){return{list:[],activeType:"",typeList:[{label:"\u5168\u90E8\u4E1A\u6001",value:""},{label:"\u9910\u996E",value:"CY"},{label:"\u8D85\u5E02",value:"CS"},{label:"\u5176\u4ED6",value:"QT"}],query:{level:"0",dimension:"",timemode:"month",timeflag:b(new Date).format("yyyyMM"),storeclass:"",orderby:"amount"}}},computed:{getAppDate(){return b(this.$store.state.appDate).format("yyyyMM")},selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){},methods:{formatThousand:A,async getData(){const e=await De(this.query);this.list=e.msgContent,this.list.forEach(t=>{this.query.orderby=="amount"?t.decimvalue=(t.saleAmount/t.saleAmountSum).toFixed(2):t.decimvalue=(t.billCount/t.billCountSum).toFixed(2),t.percvalue=Math.round(t.decimvalue*100)+"%"})},changeStoreclass(e){this.getData()},orderby(){this.query.orderby=this.query.orderby=="amount"?"count":"amount",this.query.storeclass="",this.getData()}}},Le={style:{"font-size":"12px"}},Te={class:"type-select"},Re={key:0,class:"serve-md-out"},ze={class:"serve-md"},Ae={class:"cell-text1"},Pe={class:"cell-text2"},Me={key:0,class:"cell-text3"},Ne={key:1,class:"cell-text3"},Ee={class:"cell-text4"},Oe={class:"cell-text5"};function Ue(e,t,s,c,a,n){const l=d("el-option"),y=d("el-select"),f=d("progress-pool"),k=d("vue-seamless-scroll"),r=d("Empty"),_=d("modulen");return i(),p(_,null,{title:v(()=>[x(" \u670D\u52A1\u533A"+u(a.query.orderby=="amount"?"\u9500\u552E\u6392\u884C":"\u5BA2\u6D41\u91CF\u6392\u884C")+" ",1),o("span",Le,"\uFF08 "+u(a.query.orderby=="amount"?"\u5143":"\u4EBA")+" \uFF09",1),o("span",{class:"title-samll",onClick:t[0]||(t[0]=(...m)=>n.orderby&&n.orderby(...m))},u(a.query.orderby=="amount"?"\u5BA2\u6D41\u91CF\u6392\u884C":"\u9500\u552E\u6392\u884C"),1)]),end:v(()=>[o("div",Te,[g(y,{modelValue:a.query.storeclass,"onUpdate:modelValue":t[1]||(t[1]=m=>a.query.storeclass=m),placeholder:"\u9009\u62E9\u4E1A\u6001",size:"mini","popper-append-to-body":!1,onChange:n.changeStoreclass},{default:v(()=>[(i(!0),h(q,null,F(a.typeList,m=>(i(),p(l,{key:m.value,label:m.label,value:m.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),default:v(()=>[a.list.length>0?(i(),h("div",Re,[a.list.length?(i(),p(k,{key:0,data:a.list},{default:v(()=>[o("div",ze,[(i(!0),h(q,null,F(a.list,(m,D)=>(i(),h("div",{class:P(["ranke-cell","ranke-cell"+(D+1)]),key:D},[o("div",Ae,u(D<9?"0"+(D+1):D+1),1),o("div",Pe,u(m.areaName),1),a.query.orderby=="amount"?(i(),h("div",Me,u(n.formatThousand(m.saleAmount)),1)):(i(),h("div",Ne,u(n.formatThousand(m.billCount)),1)),o("div",Ee,[D===0?(i(),p(f,{key:0,boxbg:"rgba(255, 206, 90, 0.05)",bordercolor:"rgba(255, 206, 90, 0.1)",linebg:"linear-gradient(90deg, #ff7e00, #ffb400)",percvalue:m.percvalue,decimvalue:m.decimvalue},null,8,["percvalue","decimvalue"])):D===1?(i(),p(f,{key:1,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(38, 222, 255, 0.1)",linebg:"linear-gradient(90deg, #098BA2, #1FC9E8)",percvalue:m.percvalue,decimvalue:m.decimvalue},null,8,["percvalue","decimvalue"])):D===2?(i(),p(f,{key:2,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(17, 146, 255, 0.1)",linebg:"linear-gradient(90deg, #046AC1, #1192FF)",percvalue:m.percvalue,decimvalue:m.decimvalue},null,8,["percvalue","decimvalue"])):(i(),p(f,{key:3,percvalue:m.percvalue,decimvalue:m.decimvalue},null,8,["percvalue","decimvalue"]))]),o("div",Oe,u(m.percvalue),1)],2))),128))])]),_:1},8,["data"])):C("",!0)])):(i(),p(r,{key:1}))]),_:1})}var Be=S(Fe,[["render",Ue],["__scopeId","data-v-6d3c2e65"]]);const Ve=ae({__name:"ectRing",props:{options:{type:Object,required:!0},default:{type:Number}},setup(e,{emit:t}){const s=e,c=ie(null);let a=null;const n=()=>a&&a.resize();return ne(()=>{window.removeEventListener("resize",n)}),le(()=>s.options,async()=>{await re(),!a&&c.value&&(a=ce.init(c.value),window.addEventListener("resize",n),a.on("click",l=>t("ectCheck",l)),a.on("legendselectchanged",l=>t("ectLegendChange",l))),a&&a.setOption(s.options,!0),setTimeout(()=>{let l=0;a.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:0}),a.on("mouseover",y=>{y.componentType==="series"&&l!==y.dataIndex&&(a.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:y.dataIndex}),a.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:l}),l=y.dataIndex)})},500)},{immediate:!0,deep:!0}),(l,y)=>(i(),h("div",{class:"absolute inset-0",ref_key:"elm",ref:c},null,512))}}),Je={components:{ectRing:Ve},data(){return{number:"",ectOpts:{},opDataType:[],opDataNum:[],query:{level:"0",dimension:"",timemode:"month",timeflag:b(new Date).format("yyyyMM")}}},computed:{getAppDate(){return b(this.$store.state.appDate).format("yyyyMM")},selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){},methods:{async getData(){const e=await ke(this.query),t=this;t.opDataType=[],t.opDataNum=[],e.msgContent.forEach((s,c)=>{t.opDataType.push(s.className),t.opDataNum.push({name:s.className,value:s.saleCount,percvalue:Math.round((s.saleCount/s.saleCountSum).toFixed(2)*100)+"%"})}),this.getCharts()},getCharts(){this.ectOpts={graphic:{type:"text",left:"center",top:"40%",style:{text:"\u8D44\u4EA7\u603B\u6570",textAlign:"center",fill:"#333",fontSize:14}},legend:[{orient:"vertical",itemGap:10,formatter:function(e){return e},top:"10%",bottom:"10%",right:"1%",textStyle:{width:30,color:"#fff"},data:this.opDataType}],tooltip:{trigger:"item",show:!0,formatter:function(e){var t=`
\u9500\u552E\u7C7B\u522B
${e.data.name}\uFF1A${e.data.value} \u5143
`;return t}},color:["#4999FF","#81E80A","#98A2A6","#FFCE5A","#FFFFFF","#2ED67C","#F5A071","#A646FF","#FF5757","#00DDCC","#6774BC"],series:[{name:"\u9500\u552E\u7C7B\u522B",legendHoverLink:!1,type:"pie",radius:["55%","65%"],center:["25%","50%"],emphasis:{label:{show:!0,formatter:function(e){return["{a|"+e.data.percvalue+"}","","{b|"+e.data.name+"}"].join(`
`)},rich:{a:{color:"#fff",lineHeight:30,fontSize:36,fontWeight:800,marginTop:10,fontFamily:"DinNextRegular"},b:{color:"#fff",fontSize:16,height:20}}}},label:{show:!1,position:"center"},labelLine:{show:!1},itemStyle:{borderColor:"rgba(28, 46, 61, 0.5)",borderWidth:5},data:this.opDataNum}]}}}},We={key:0,class:"sales-category-ex"},He={class:"ectbox"},je=o("div",{class:"ectbg"},null,-1);function Qe(e,t,s,c,a,n){const l=d("ectRing"),y=d("Empty"),f=d("modulen");return i(),p(f,null,{title:v(()=>[x("\u7C7B\u522B\u9500\u552E\u5360\u6BD4")]),end:v(()=>[]),default:v(()=>[a.opDataNum.length>0?(i(),h("div",We,[o("div",He,[g(l,{options:a.ectOpts},null,8,["options"])]),je])):(i(),p(y,{key:1}))]),_:1})}var Ge=S(Je,[["render",Qe]]);const Ye={data(){return{query:{level:"0",dimension:"",timemode:"month",timeflag:b(new Date).format("yyyyMM")},total:0,totalrq:0,bl:0,sy:0}},computed:{getAppDate(){return b(this.$store.state.appDate).format("yyyyMM")},selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){},methods:{formatThousand:A,async getData(){var t,s;const e=await qe(this.query);this.total=(t=e.msgContent[0])==null?void 0:t.totalAll,this.totalrq=(s=e.msgContent[0])==null?void 0:s.totalVan,this.total>0?(this.bl=(this.totalrq/this.total*100).toFixed(2),this.sy=((this.total-this.totalrq)/this.total*100).toFixed(2)):(this.bl=0,this.sy=100)}}},Y=e=>(L("data-v-a4b688c0"),e=e(),T(),e),Ze={class:"car-flow-ex"},Ke={class:"car-flow-cell"},Xe={class:"c-f-text1"},et={class:"c-f-text1"},tt={class:"c-f-lineout"},st={class:"car-flow-cell"},ot={class:"c-f-text2"},at=Y(()=>o("div",null,"\u603B\u8F66\u6D41\u91CF",-1)),it=Y(()=>o("div",{class:"car-flow-cell"},[o("div",{class:"fgx-left"}),o("div",{class:"fgx-right"})],-1));function nt(e,t,s,c,a,n){const l=d("modulen");return i(),p(l,null,{title:v(()=>[x("\u5165\u670D\u52A1\u533A\u8F66\u6D41\u91CF\u5360\u6BD4")]),end:v(()=>[]),default:v(()=>[o("div",Ze,[o("div",Ke,[o("div",null,[x(" [ "),o("span",Xe,u(n.formatThousand(a.totalrq)),1),x(" \u8F86 ] ")]),o("div",null,[x(" [ "),o("span",et,u(n.formatThousand(a.total)),1),x(" \u8F86 ] ")])]),o("div",tt,[o("div",{class:"c-f-line-left",style:z({width:a.bl+"%"})},null,4),o("div",{class:"c-f-line-right",style:z({width:a.sy+"%"})},null,4)]),o("div",st,[o("div",null,[x(" \u5165\u533A\u8F66\u6D41\u91CF "),o("span",ot,u(a.bl)+"%",1)]),at]),it])]),_:1})}var lt=S(Ye,[["render",nt],["__scopeId","data-v-a4b688c0"]]);let rt=100,Q={"0x12f900003":"\u4EC5\u56DE\u653E\u652F\u6301\u8BE5\u529F\u80FD","0x12f900004":"\u666E\u901A\u6A21\u5F0F\u4E0D\u652F\u6301\u8BE5\u529F\u80FD","0x12f900005":"\u9AD8\u7EA7\u6A21\u5F0F\u4E0D\u652F\u6301\u8BE5\u529F\u80FD","0x12f900006":"\u64AD\u653E\u5E93\u62A5\u9519","0x12f900007":"Decoder.js\u52A0\u8F7D\u5931\u8D25","0x12f910000":"websocket\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u6838\u5BF9\u53D6\u6D41URL","0x12f910010":"\u53D6\u6D41\u5931\u8D25","0x12f910011":"\u6D41\u4E2D\u65AD","0x12f910014":"\u6CA1\u6709\u97F3\u9891\u6570\u636E","0x12f910015":"\u672A\u627E\u5230\u5BF9\u5E94websocket","0x12f910016":"websocket\u4E0D\u5728\u8FDE\u63A5\u72B6\u6001","0x12f910017":"\u4E0D\u652F\u6301\u667A\u80FD\u4FE1\u606F\u5C55\u793A","0x12f910020":"\u5355\u5E27\u56DE\u653E\u65F6\u4E0D\u80FD\u6682\u505C","0x12f910021":"\u5DF2\u662F\u6700\u5927\u500D\u901F","0x12f910022":"\u5DF2\u662F\u6700\u5C0F\u500D\u901F","0x12f920000":"\u50A8\u5B58\u7A7A\u95F4\u914D\u989D\u5931\u8D25","0x12f920001":"\u8BF7\u6C42\u6587\u4EF6\u7CFB\u7EDF\u5931\u8D25","0x12f920002":"\u83B7\u53D6\u6587\u4EF6\u5931\u8D25","0x12f920003":"\u521B\u5EFAwriter\u5931\u8D25","0x12f920004":"\u5199\u6570\u636E\u5931\u8D25","0x12f930000":"\u5185\u5B58\u4E0D\u8DB3","0x12f950000":"\u91C7\u96C6\u97F3\u9891\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u5728\u975Ehttps/localhost\u57DF\u4E0B\u4F7F\u7528\u5BF9\u8BB2\u5BFC\u81F4","0x12f950001":"\u5BF9\u8BB2\u4E0D\u652F\u6301\u8FD9\u79CD\u97F3\u9891\u7F16\u7801\u683C\u5F0F","0x02200404":"\u53D6\u6D41\u5931\u8D25"};var ct={props:{url:{type:String,required:!0},autoPlay:{type:Boolean,default:!0},size:{type:String,default:"s"},code:{type:String,default:""}},data(){return{loading:!1,player:null,elId:"",msg:"",pause:!0,showVideo:!0,videoUrl:"ws://183.64.175.153:559/openUrl/8A8Yzwk"}},watch:{url(e,t){console.log(82,e),this.videoUrl=e,this.stopVideo(),this.createPlayer(),console.log("url\u6709\u53D8\u5316\u554A\u554A\u554A\u554A")}},created(){this.elId=`playWnd_${rt++}`},mounted(){this.createPlayer()},beforeUnmount(){this.stopVideo()},methods:{createPlayer(){const{elId:e,autoPlay:t}=this;this.player=new window.JSPlugin({szId:e,szBasePath:"/",openDebug:!0,oStyle:{borderSelect:"none"}}),this.player.JS_SetWindowControlCallback({pluginErrorHandler:(s,c,a)=>{this.msg=Q[c]?Q[c]:`\u9519\u8BEF\u7801\uFF1A${c}`,this.playStop(),this.showVideo=!1,setTimeout(()=>{this.reloadUrl()},1e3)},performanceLack:()=>{console.log("\u6027\u80FD\u4E0D\u8DB3")}}),t&&this.play()},async reloadUrl(){this.showVideo=!0;const e=await G(this.code);e.data&&(this.videoUrl=e.data,this.createPlayer())},play(){let{player:e,videoUrl:t}=this;if(console.log(153,t),!t){this.msg="\u89C6\u9891\u52A0\u8F7D\u5931\u8D25";return}this.loading=!0,this.player.JS_Play(t,{playURL:t},0).then(s=>{this.pause=!1,this.loading=!1},s=>{console.error(s),this.pause=!0,this.loading=!1})},playPause(){this.pause?this.play():this.playStop()},playStop(){this.loading&&(this.loading=!1),this.player&&this.player.JS_Stop().then(()=>{this.pause=!0},e=>{console.error(e)})},stopVideo(){this.playStop(),this.msg="",this.player=null},fullScreen(){this.player.JS_FullScreenDisplay(!0).then(()=>{console.log("wholeFullScreen success")},e=>{console.error(e)})}}};const dt=e=>(L("data-v-2f6534c2"),e=e(),T(),e),ut={class:"container"},pt={key:0},ht=["id"],_t={class:"control"},vt={class:"loading"},mt=dt(()=>o("span",null,"\u89C6\u9891\u52A0\u8F7D\u4E2D..",-1)),yt=[mt];function ft(e,t,s,c,a,n){return i(),h("div",ut,[a.showVideo?(i(),h("div",pt,[o("div",{id:a.elId,class:"videocont"},null,8,ht)])):C("",!0),M(o("div",_t,[o("i",{class:P(a.pause?"el-icon-video-play":"el-icon-video-pause"),onClick:t[0]||(t[0]=H((...l)=>n.playPause&&n.playPause(...l),["stop"]))},null,2),o("i",{class:"el-icon-full-screen",onClick:t[1]||(t[1]=H((...l)=>n.fullScreen&&n.fullScreen(...l),["stop"]))})],512),[[N,s.url&&!a.loading]]),M(o("div",vt,yt,512),[[N,a.loading]])])}var gt=S(ct,[["render",ft],["__scopeId","data-v-2f6534c2"]]);const bt={components:{videoPlayerList:gt},data(){return{activeName:"0",tabList:[{label:"\u6F7C\u5357\u670D\u52A1\u533A",name:"tn"}],videoList:[],query:{dimension:"",level:""}}},computed:{selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){},methods:{async getData(){const e=await $e(this.query);let t=[];e.msgContent.forEach((s,c)=>{t.filter(n=>n.unitName==s.unitName).length>0?t.forEach(n=>{n.unitName==s.unitName&&n.videolist.push({videoId:s.videoId,videoName:s.videoName})}):(s.videolist=[],s.videolist.push({videoId:s.videoId,videoName:s.videoName}),t.push(s))}),this.tabList=t,this.getVideo(this.tabList[0].videolist)},handleClick(e){this.getVideo(this.tabList[e.index].videolist)},getVideo(e){this.videoList=[];const t=this;e.forEach(async(s,c)=>{if(c<2){const a=await G(s.videoId);a&&a.success&&a.data&&t.videoList.push({url:a.data,name:s.videoName,code:s.videoId})}})}}},xt={class:"ex-dideo-cont"},Dt={class:"ex-tab-top"},St={class:"ex-moniter-out"},kt={class:"ex-mo-til"},wt={class:"ex-mo-cont"};function $t(e,t,s,c,a,n){const l=d("el-tab-pane"),y=d("el-tabs"),f=d("videoPlayerList"),k=d("modulen");return i(),p(k,null,{title:v(()=>[x("\u89C6\u9891\u76D1\u63A7")]),end:v(()=>[]),default:v(()=>[o("div",xt,[o("div",Dt,[g(y,{modelValue:a.activeName,"onUpdate:modelValue":t[0]||(t[0]=r=>a.activeName=r),onTabClick:n.handleClick},{default:v(()=>[(i(!0),h(q,null,F(a.tabList,(r,_)=>(i(),p(l,{key:_,label:r.unitName},null,8,["label"]))),128))]),_:1},8,["modelValue","onTabClick"])]),o("div",St,[(i(!0),h(q,null,F(a.videoList,(r,_)=>(i(),h("div",{class:"ex-mo-item",key:_},[o("div",kt,u(r.name),1),o("div",wt,[g(f,{url:r.url,code:r.code},null,8,["url","code"])])]))),128))])])]),_:1})}var It=S(bt,[["render",$t],["__scopeId","data-v-2380e9b5"]]);const Ct={components:{progressPool:O,vueSeamlessScroll:E},data(){return{query:{level:0,dimension:"",timeflag:""},list:[]}},computed:{selectRoad(){return this.$store.state.road.selectRoadId},getDate(){return this.query.timeflag=b(this.$store.state.appDate).format("yyyyMM"),b(this.$store.state.appDate).format("yyyyMM")}},watch:{selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()},getDate(e){console.log(101,e),this.query.timeflag=b(e).format("yyyyMM"),this.getData()}},mounted(){this.getData()},methods:{formatThousand:A,async getData(){console.log("109\u6CB9\u54C1",this.query);const e=await Ie(this.query);this.list=e.msgContent,this.list.forEach(t=>{t.percvalue=(t.saleAmountProportion*100).toFixed(2)+"%"})}}},qt=e=>(L("data-v-1cf0452c"),e=e(),T(),e),Ft=qt(()=>o("span",{style:{"font-size":"12px"}},"\uFF08 \u4E07\u5143 \uFF09",-1)),Lt={key:0,class:"serve-md-out"},Tt={class:"serve-md"},Rt={class:"cell-text1"},zt={class:"cell-text1-bg"},At={class:"cell-text2"},Pt={class:"cell-text3"},Mt={class:"cell-text4"},Nt={class:"cell-text5"};function Et(e,t,s,c,a,n){const l=d("progress-pool"),y=d("vue-seamless-scroll"),f=d("Empty"),k=d("modulen");return i(),p(k,null,{title:v(()=>[x(" \u6CB9\u54C1\u9500\u552E\u6570\u636E\u6392\u884C "),Ft]),end:v(()=>[]),default:v(()=>[a.list.length>0?(i(),h("div",Lt,[a.list.length?(i(),p(y,{key:0,data:a.list},{default:v(()=>[o("div",Tt,[(i(!0),h(q,null,F(a.list,(r,_)=>(i(),h("div",{class:P(["ranke-cell","ranke-cell"+(_+1)]),key:_},[o("div",Rt,[o("div",zt,u(_<9?"0"+(_+1):_+1),1)]),o("div",At,u(r.areaName),1),o("div",Pt,u(n.formatThousand(r.saleAmount)),1),o("div",Mt,[_===0?(i(),p(l,{key:0,boxbg:"rgba(255, 206, 90, 0.05)",bordercolor:"rgba(255, 206, 90, 0.1)",linebg:"linear-gradient(90deg, #ff7e00, #ffb400)",percvalue:r.percvalue,decimvalue:r.saleAmountProportion},null,8,["percvalue","decimvalue"])):_===1?(i(),p(l,{key:1,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(38, 222, 255, 0.1)",linebg:"linear-gradient(90deg, #098BA2, #1FC9E8)",percvalue:r.percvalue,decimvalue:r.saleAmountProportion},null,8,["percvalue","decimvalue"])):_===2?(i(),p(l,{key:2,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(17, 146, 255, 0.1)",linebg:"linear-gradient(90deg, #046AC1, #1192FF)",percvalue:r.percvalue,decimvalue:r.saleAmountProportion},null,8,["percvalue","decimvalue"])):(i(),p(l,{key:3,percvalue:r.percvalue,decimvalue:r.saleAmountProportion},null,8,["percvalue","decimvalue"]))]),o("div",Nt,u(r.percvalue),1)],2))),128))])]),_:1},8,["data"])):C("",!0)])):(i(),p(f,{key:1}))]),_:1})}var Ot=S(Ct,[["render",Et],["__scopeId","data-v-1cf0452c"]]);const Ut={components:{progressPool:O,vueSeamlessScroll:E},data(){return{list:[],query:{level:"0",dimension:"",timemode:"month",timeflag:b(new Date).subtract(1,"month").format("yyyyMM"),ptype:"1"}}},computed:{getAppDate(){return this.query.timeflag=b(this.$store.state.appDate).format("yyyyMM"),b(this.$store.state.appDate).format("yyyyMM")},selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){this.getData()},methods:{formatThousand:A,async getData(){console.log("111\u670D\u52A1\u533A",this.query);const e=await Ce(this.query);this.list=e.msgContent,this.list.forEach(t=>{t.decimvalue=(t.cnt/t.total).toFixed(2),t.percvalue=Math.round(t.decimvalue*100)+"%"})},orderby(){this.query.ptype=this.query.ptype=="1"?"2":"1",this.getData()}}},Bt=e=>(L("data-v-a778769c"),e=e(),T(),e),Vt=Bt(()=>o("span",{style:{"font-size":"12px"}},"\uFF08 \u8F86 \uFF09",-1)),Jt={key:0,class:"serve-md-out",id:"servemdout"},Wt={class:"serve-md"},Ht={class:"cell-text1"},jt={class:"cell-text2"},Qt={class:"cell-text3"},Gt={class:"cell-text4"},Yt={class:"cell-text5"};function Zt(e,t,s,c,a,n){const l=d("progress-pool"),y=d("vue-seamless-scroll"),f=d("Empty"),k=d("modulen");return i(),p(k,null,{title:v(()=>[x(" \u670D\u52A1\u533A"+u(a.query.ptype=="1"?"\u5BA2\u8F66":"\u8D27\u8F66")+"\u6D41\u91CF\u6392\u884C ",1),Vt,o("span",{class:"title-samll",onClick:t[0]||(t[0]=(...r)=>n.orderby&&n.orderby(...r))},u(a.query.ptype=="1"?"\u8D27\u8F66":"\u5BA2\u8F66")+"\u6D41\u91CF\u6392\u884C",1)]),end:v(()=>[]),default:v(()=>[a.list.length>0?(i(),h("div",Jt,[a.list.length?(i(),p(y,{key:0,data:a.list},{default:v(()=>[o("div",Wt,[(i(!0),h(q,null,F(a.list,(r,_)=>(i(),h("div",{class:P(["ranke-cell","ranke-cell"+(_+1)]),key:_},[o("div",Ht,u(_<9?"0"+(_+1):_+1),1),o("div",jt,u(r.saname),1),o("div",Qt,u(n.formatThousand(r.cnt)),1),o("div",Gt,[_===0?(i(),p(l,{key:0,boxbg:"rgba(255, 206, 90, 0.05)",bordercolor:"rgba(255, 206, 90, 0.1)",linebg:"linear-gradient(90deg, #ff7e00, #ffb400)",percvalue:r.percvalue,decimvalue:r.decimvalue},null,8,["percvalue","decimvalue"])):_===1?(i(),p(l,{key:1,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(38, 222, 255, 0.1)",linebg:"linear-gradient(90deg, #098BA2, #1FC9E8)",percvalue:r.percvalue,decimvalue:r.decimvalue},null,8,["percvalue","decimvalue"])):_===2?(i(),p(l,{key:2,boxbg:"rgba(34, 212, 243, 0.05)",bordercolor:"rgba(17, 146, 255, 0.1)",linebg:"linear-gradient(90deg, #046AC1, #1192FF)",percvalue:r.percvalue,decimvalue:r.decimvalue},null,8,["percvalue","decimvalue"])):(i(),p(l,{key:3,percvalue:r.percvalue,decimvalue:r.decimvalue},null,8,["percvalue","decimvalue"]))]),o("div",Yt,u(r.percvalue),1)],2))),128))])]),_:1},8,["data"])):C("",!0)])):(i(),p(f,{key:1}))]),_:1})}var Kt=S(Ut,[["render",Zt],["__scopeId","data-v-a778769c"]]);const Xt={data(){return{query:{level:"0",dimension:"",timemode:"month",timeflag:b(new Date).format("yyyyMM")},infoData:{bycs:"",zrcs:"",bycy:"",zrcy:"",ze:""}}},computed:{getAppDate(){return b(this.$store.state.appDate).format("yyyyMM")},selectRoad(){return this.$store.state.road.selectRoadId}},watch:{getAppDate(e){this.query.timeflag=e,this.getData()},selectRoad(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getData()}},mounted(){},methods:{formatThousand:A,async getData(){var n;const e=await Se(this.query);this.infoData.ze=(n=e.msgContent[0])==null?void 0:n.saleAmountSum;const t=await j(this.query);t.msgContent.length>0?t.msgContent.forEach(l=>{l.storeClass=="\u8D85\u5E02"&&(this.infoData.bycs=l.saleAmountSum),l.storeClass=="\u9910\u996E"&&(this.infoData.bycy=l.saleAmountSum)}):(this.infoData.bycs="-",this.infoData.bycy="-");const s=Object.assign({},this.query);s.timemode="day";let c=new Date().getDate()-1;c=c>9?c:"0"+c,s.timeflag=this.query.timeflag+c;const a=await j(s);a.msgContent.length>0?a.msgContent.forEach(l=>{l.storeClass=="\u8D85\u5E02"&&(this.infoData.zrcs=l.saleAmountSum||"-"),l.storeClass=="\u9910\u996E"&&(this.infoData.zrcy=l.saleAmountSum||"-")}):(this.infoData.zrcs="-",this.infoData.zrcy="-")}}},I=e=>(L("data-v-1520039c"),e=e(),T(),e),es={class:"center-reven-model"},ts=I(()=>o("div",{class:"reve-text1"},"\u672C\u6708\u8D85\u5E02",-1)),ss={class:"reve-text2"},os=I(()=>o("span",{class:"reve-text2-unit"},"\u4E07\u5143",-1)),as={class:"reve-text3"},is=I(()=>o("span",{class:"eve-text3-l"},"\u6628\u65E5",-1)),ns={class:"eve-text3-r"},ls={class:"center-text"},rs=I(()=>o("div",{class:"center-text-unit1"},"\u603B\u8425\u6536\u989D",-1)),cs=I(()=>o("span",{class:"center-text-unit"},"\u4E07\u5143",-1)),ds=I(()=>o("div",{class:"reve-text1"},"\u672C\u6708\u9910\u996E",-1)),us={class:"reve-text2"},ps=I(()=>o("span",{class:"reve-text2-unit"},"\u4E07\u5143",-1)),hs={class:"reve-text3"},_s=I(()=>o("span",{class:"eve-text3-l"},"\u6628\u65E5",-1)),vs={class:"eve-text3-r"};function ms(e,t,s,c,a,n){return i(),h("div",es,[o("div",null,[ts,o("div",ss,[o("span",null,u(n.formatThousand(a.infoData.bycs)),1),os]),o("div",as,[is,o("span",ns,u(n.formatThousand(a.infoData.zrcs)||"-"),1)])]),o("div",ls,[rs,o("span",null,[x(u(n.formatThousand(a.infoData.ze))+" ",1),cs])]),o("div",null,[ds,o("div",us,[o("span",null,u(n.formatThousand(a.infoData.bycy)),1),ps]),o("div",hs,[_s,o("span",vs,u(n.formatThousand(a.infoData.zrcy)||"-"),1)])])])}var ys=S(Xt,[["render",ms],["__scopeId","data-v-1520039c"]]);const fs={components:{WayFilter:he,centerRevenue:ys,serveSaleRanking:Be,salesCategory:Ge,carsectionFlow:lt,videoMonitor:It,oilsSaleRanking:Ot,serveFlowRanking:Kt,GisMap:_e,RoadStatus:me},computed:W(J({},de({map:e=>e.map.map,config:e=>e.map.config,boundaryLineFace:e=>e.map.boundaryLineFace})),{selectRoadId(){return this.$store.state.road.selectRoadId}}),watch:{map(){this.map.setZoom(5.2);const e=JSON.parse(localStorage.getItem("mapCLkmz"));this.map.setLayoutProperty(e.ROUTE,"visibility","none"),this.getServePoint(),this.popup=new minemap.Popup({closeButton:!1,offset:[0,0]});const t=this.$refs.custimgpup;this.popup.setDOMContent(t).setLngLat([0,0]).addTo(this.map)},selectRoadId(e){const t=this.$store.state.road.selectLevel,s=e?e[t-1]:"";this.query.level=t,this.query.dimension=s,this.getChangeRoads(e[0]),this.getServePoint()}},data(){return{mapConfig:{},center:[106.55,29.57],provinceMarker:[{zb:[107.569855,30.367095],id:"CQ",zoom:6.5},{zb:[102.928995,30.52487],id:"SC",zoom:5.4},{zb:[101.593103,25.353375],id:"YN",zoom:5.5},{zb:[106.641243,27.10797],id:"GZ",zoom:6.3},{zb:[117.229929,32.325398],id:"AH",zoom:6}],popup:null,query:{level:0,dimension:""},popInfoData:{},isOver:!1,pupShowText:"",statusText:"\u5C55\u5F00",custpup:!1}},created(){this.$store.dispatch("map/getMapConfig")},mounted(){},methods:{getChangeRoads(e){if(!!this.map)if(e)this.provinceClick(e);else{this.map.setZoom(5.2),this.map.setCenter([104.07751,28.55365]),this.boundaryLineFace.forEach(s=>{this.map.setLayoutProperty(s.layerIdl,"visibility","visible"),this.map.setLayoutProperty(s.layerIdf,"visibility","visible")});const t=JSON.parse(localStorage.getItem("mapCLkmz"));this.map.setLayoutProperty(t.ROUTE,"visibility","visible")}},provinceClick(e){this.provinceMarker.forEach(s=>{e===s.id&&this.$nextTick(()=>{this.map.flyTo({center:s.zb,zoom:s.zoom})})}),this.boundaryLineFace.forEach(s=>{const c=e==s.code?"visible":"none";this.map.setLayoutProperty(s.layerIdl,"visibility",c),this.map.setLayoutProperty(s.layerIdf,"visibility",c)});const t=JSON.parse(localStorage.getItem("mapCLkmz"));this.map.setLayoutProperty(t.ROUTE,"visibility","none")},handleLoad(e){this.$store.commit("map/setMap",e.map),this.getChangeRoads(this.selectRoadId[0])},async getServePoint(){this.map&&this.map.getLayer("servepagepoint")&&(this.map.removeSource("servePointSource"),this.map.removeLayer("servepagepoint"),this.map.removeImage("servepage"));let e=[];(await ue(this.query)).msgContent.forEach(s=>{e.push({id:s.id,name:s.areaName,pegk:s.pegk,type:"\u670D\u52A1\u533A",longitude:s.lng,latitude:s.lat})}),this.reorgData(e)},reorgData(e){const t={type:"FeatureCollection",features:[]};e.forEach((s,c)=>{if(s.longitude&&s.latitude){const a=JSON.stringify(s);s.areaName||s.supplyName||s.pointName,t.features.push({geometry:{type:"Point",coordinates:[s.longitude,s.latitude]},properties:{title:s.name,kind:s.id,itemcont:a},type:"Feature"})}}),this.addSource(t)},addSource(e){let{map:t}=this;const s=this;t&&(t.addSource("servePointSource",{type:"geojson",data:e}),t.loadImage(ye,function(c,a){if(c)throw c;t.addImage("servepage",a),t.addLayer({id:"servepagepoint",type:"symbol",source:"servePointSource",filter:["!has","point_count"],layout:{"icon-image":"servepage","icon-size":1}})}),t.on("mouseenter","servepagepoint",function(c){var a=t.queryRenderedFeatures(c.point,{layers:["servepagepoint"]});if(console.log(a),a.length>0){const n=JSON.parse(a[0].properties.itemcont);s.getPointInfo(n)}}),t.on("mouseleave","servepagepoint",function(){s.custpup=!0}))},async getPointInfo(e){const t=await we({serviceareaid:e.id});this.popInfoData=t.msgContent[0],this.popInfoData.baseinfo&&this.popInfoData.baseinfo.length>78?(this.popInfoData.subBaseinfo=this.popInfoData.baseinfo.substring(0,70)+"...",this.isOver=!0,this.pupShowText=this.popInfoData.subBaseinfo,this.statusText="\u5C55\u5F00"):(this.isOver=!1,this.pupShowText=this.popInfoData.baseinfo);const s=this.$refs.custimgpup;this.popup.setDOMContent(s).setLngLat([e.longitude,e.latitude]).addTo(this.map)},colsePupwin(){this.popup.setLngLat([0,0]).addTo(this.map)},changeStatus(){this.statusText=="\u5C55\u5F00"?(this.pupShowText=this.popInfoData.baseinfo,this.statusText="\u6536\u8D77"):(this.pupShowText=this.popInfoData.subBaseinfo,this.statusText="\u5C55\u5F00")},toPath(){ve().then(e=>{const{data:t}=e;!t||window.open(`http://183.64.175.153:21080/servicearea/index.html#/cqHome?tokenKey=${t}`)})}}},U=e=>(L("data-v-516482fe"),e=e(),T(),e),gs={class:"w-full h-full expressway-index"},bs=U(()=>o("span",null,null,-1)),xs={class:"chargselect"},Ds={class:"left-t"},Ss={class:"left-c"},ks={class:"left-b"},ws={class:"center-reve"},$s={class:"right-t"},Is={class:"right-c"},Cs={class:"right-b"},qs={class:"cust-img-pup",ref:"custimgpup"},Fs={class:"cust-img-pup-tit"},Ls={class:"cust-img-pup-tit-l"},Ts=U(()=>o("img",{src:fe},null,-1)),Rs=pe('
',1),zs=U(()=>o("i",{class:"el-icon-close"},null,-1)),As=[zs],Ps={class:"cust-img-pup-cont"},Ms={class:"cust-img-pup-imgs"},Ns=["src"],Es=["src"],Os={class:"road"};function Us(e,t,s,c,a,n){const l=d("gis-map"),y=d("way-filter"),f=d("serve-sale-ranking"),k=d("sales-category"),r=d("carsection-flow"),_=d("center-revenue"),m=d("video-monitor"),D=d("oils-sale-ranking"),Z=d("serve-flow-ranking"),K=d("RoadStatus");return i(),h("div",gs,[o("div",{class:"charglink",onClick:t[0]||(t[0]=(...R)=>n.toPath&&n.toPath(...R))},"\u667A\u6167\u670D\u52A1\u533A"),o("div",null,[g(l,{config:e.config,onLoad:n.handleLoad},{default:v(()=>[bs]),_:1},8,["config","onLoad"])]),o("div",xs,[g(y)]),o("div",Ds,[g(f)]),o("div",Ss,[g(k)]),o("div",ks,[g(r)]),o("div",ws,[g(_)]),o("div",$s,[g(m)]),o("div",Is,[g(D)]),o("div",Cs,[g(Z)]),M(o("div",qs,[o("div",Fs,[o("div",Ls,[Ts,o("span",null,u(a.popInfoData.areaName),1),Rs]),o("div",{class:"cust-img-pup-tit-r",onClick:t[1]||(t[1]=(...R)=>n.colsePupwin&&n.colsePupwin(...R))},As)]),o("div",Ps,[o("div",null,[x(u(a.pupShowText)+" ",1),a.isOver?(i(),h("span",{key:0,class:"cust-img-pup-fold",onClick:t[2]||(t[2]=(...R)=>n.changeStatus&&n.changeStatus(...R))},u(a.statusText)+u(a.statusText=="\u5C55\u5F00"?">>":"<<"),1)):C("",!0)])]),o("div",Ms,[a.popInfoData.pictureAerial?(i(),h("img",{key:0,src:a.popInfoData.pictureAerial},null,8,Ns)):C("",!0),a.popInfoData.pictureFront?(i(),h("img",{key:1,src:a.popInfoData.pictureFront},null,8,Es)):C("",!0)])],512),[[N,a.custpup]]),o("div",Os,[g(K)])])}var Ks=S(fs,[["render",Us],["__scopeId","data-v-516482fe"]]);export{Ks as default};