app.d5bb9e89.js 35 KB

12
  1. (function(t){function e(e){for(var i,o,n=e[0],l=e[1],c=e[2],u=0,h=[];u<n.length;u++)o=n[u],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&h.push(s[o][0]),s[o]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i]);d&&d(e);while(h.length)h.shift()();return r.push.apply(r,c||[]),a()}function a(){for(var t,e=0;e<r.length;e++){for(var a=r[e],i=!0,n=1;n<a.length;n++){var l=a[n];0!==s[l]&&(i=!1)}i&&(r.splice(e--,1),t=o(o.s=a[0]))}return t}var i={},s={app:0},r=[];function o(e){if(i[e])return i[e].exports;var a=i[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=i,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(a,i,function(e){return t[e]}.bind(null,i));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var n=window["webpackJsonp"]=window["webpackJsonp"]||[],l=n.push.bind(n);n.push=e,n=n.slice();for(var c=0;c<n.length;c++)e(n[c]);var d=l;r.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("cd49")},"11da":function(t,e,a){"use strict";a("b4d1")},"1b9b":function(t,e,a){"use strict";a("8913")},"20e8":function(t,e,a){"use strict";a("a192")},2770:function(t,e,a){},"2e0d":function(t,e,a){"use strict";a("4089")},3427:function(t,e,a){},4089:function(t,e,a){},4629:function(t,e,a){},"6b8b":function(t,e,a){},"73bb":function(t,e,a){t.exports=a.p+"img/map.4f69c582.png"},7984:function(t,e,a){},"7be5":function(t,e,a){"use strict";a("bf8d")},"7d6b":function(t,e,a){"use strict";a("6b8b")},8913:function(t,e,a){},a192:function(t,e,a){},afc8:function(t,e,a){},b0e2:function(t,e,a){"use strict";a("2770")},b3e0:function(t,e,a){"use strict";a("7984")},b4d1:function(t,e,a){},bf8d:function(t,e,a){},cd49:function(t,e,a){"use strict";a.r(e);var i=a("7a23");function s(t,e,a,s,r,o){const n=Object(i["p"])("entry");return Object(i["j"])(),Object(i["c"])(n)}const r=Object(i["t"])("data-v-6d845e96");Object(i["l"])("data-v-6d845e96");const o={class:"container flex screen"},n={class:"container-content flex-1 overflow row"},l={class:"container-left overflow"},c={class:"flex-1 overflow container-center"},d={class:"container-right overflow"};Object(i["k"])();const u=r((t,e,a,s,u,h)=>{const b=Object(i["p"])("view-header"),f=Object(i["p"])("layout-frame"),m=Object(i["p"])("view-map");return Object(i["j"])(),Object(i["c"])("section",o,[Object(i["f"])("section",{class:["screen flex entry",{"entry-animate":t.draw}]},[Object(i["f"])(b,{lastUpdateTime:t.lastUpdateTime},null,8,["lastUpdateTime"]),Object(i["f"])("article",n,[Object(i["f"])("aside",l,[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(u.componentsData,(e,a)=>(Object(i["j"])(),Object(i["c"])("section",{class:"container-left-item",key:"container-item-"+a},[Object(i["f"])(f,{title:e.label},{default:r(()=>[e.component?(Object(i["j"])(),Object(i["c"])(Object(i["q"])(e.component),{key:0,data:t.data[e.key]},null,8,["data"])):Object(i["d"])("",!0)]),_:2},1032,["title"])]))),128))]),Object(i["f"])("aside",c,[Object(i["f"])(f,{title:"总数据分析",color:"rgba(0, 21, 86, 0.2)"},{default:r(()=>[Object(i["f"])(m,{data:t.data[u.keyTypeMain]},null,8,["data"])]),_:1})]),Object(i["f"])("aside",d,[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(u.scrollsData,(e,a)=>(Object(i["j"])(),Object(i["c"])("section",{class:"container-right-item",key:"container-item-"+a},[Object(i["f"])(f,{title:e.label+(t.data[e.key]&&t.data[e.key].total?"("+t.data[e.key].total+")":"")},{default:r(()=>[e.component?(Object(i["j"])(),Object(i["c"])(Object(i["q"])(e.component),{key:0,data:t.data[e.key]&&t.data[e.key].data||[],tableData:e.tableData},null,8,["data","tableData"])):Object(i["d"])("",!0)]),_:2},1032,["title"])]))),128))])])],2)])}),h=Object(i["t"])("data-v-8ea178c0");Object(i["l"])("data-v-8ea178c0");const b={class:"view-header relative"},f={key:0,class:"view-header-footer absolute rowACenter"},m={class:"flex-1"};Object(i["k"])();const p=h((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("header",b,[t.lastUpdateTime?(Object(i["j"])(),Object(i["c"])("div",f,[Object(i["f"])("div",m,Object(i["r"])(r.nowTime),1),Object(i["f"])("div",null,"最新生成分析数据时间:"+Object(i["r"])(t.lastUpdateTime),1)])):Object(i["d"])("",!0)])));var v;(function(t){t["Y"]="Y",t["M"]="M",t["D"]="D",t["h"]="h",t["m"]="m",t["s"]="s",t["W"]="W",t["w"]="w"})(v||(v={}));const g=["天","一","二","三","四","五","六"],j={handle:{[v.Y]:"getFullYear",[v.M]:"getMonth",[v.D]:"getDate",[v.h]:"getHours",[v.m]:"getMinutes",[v.s]:"getSeconds",[v.W]:"getDay",[v.w]:"getDay"},format:{[v.M]:1,[v.W]:function(t){return g[t]}},test:/YYYY|M{1,2}|D{1,2}|h{1,2}|m{1,2}|s{1,2}|W|w/g};var y=function(t,e){if(!e)return e;"number"===typeof t||"string"===typeof t&&/\d+/.test(t)?(t=t.toString(),t.length<=10&&(t+="000"),t=new Date(parseInt(t))):"string"===typeof t&&(t=new Date(t.replace(/-/,"/")));let a={};if("string"===typeof e)return O(t,e,a);if(e instanceof Array)return e.map(e=>O(t,e,a));if("object"===typeof e){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=O(t,e[s],a));return i}return""};const O=function(t,e,a){return e.replace(j.test,(function(e){let i=e[0];if(void 0===a[i]){let s=t[j.handle[i]](),r=j.format[i];r&&("function"===typeof r?s=r(s):s+=r),2===e.length&&(s=s>=10?s:"0"+s),void 0===a[i]&&(a[i]=s.toString())}return a[i]}))};var w={dateFormat:y},x={lastUpdateTime:{type:String,default:""}},k={name:"view-header",props:x,data(){return{nowTime:""}},methods:{updateNowTime(){let t=new Date;this.nowTime=w.dateFormat(t,"YYYY年MM月DD日 周W hh:mm"),this.look=setTimeout(()=>this.updateNowTime(),1e3*(60-t.getSeconds()))}},created(){this.updateNowTime()},unmounted(){clearInterval(this.look)}};a("b3e0");k.render=p,k.__scopeId="data-v-8ea178c0";var D=k,T=D;const _=Object(i["t"])("data-v-2e650d41");Object(i["l"])("data-v-2e650d41");const S={class:"screen relative",ref:"modal"},$={width:"100%",height:"100%"},M={class:"absolute frame-screen"},W={class:"title"};Object(i["k"])();const P=_((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("div",S,[(Object(i["j"])(),Object(i["c"])("svg",$,[Object(i["f"])("path",{d:r.path,style:[{"stroke-linecap":"round"},{"stroke-width":t.strokeWidth,fill:t.color,stroke:t.stroke}],class:"path"},null,12,["d"])])),Object(i["f"])("section",M,[Object(i["f"])("header",W,Object(i["r"])(t.title),1),Object(i["o"])(t.$slots,"default",{},void 0,!0)])],512)));var L={strokeWidth:{type:Number,default:1},stroke:{type:String,default:"#00B4FF"},color:{type:String,default:"#001556"},angle:{type:Number,default:10},angleWidth:{type:Number,default:150},title:{type:String,default:"民情直达"}},H={name:"layout-frame",props:L,data(){return{path:""}},mounted(){this.path=this.installPath()},methods:{installPath(){if(this.$refs.modal){let t=this.$refs.modal.offsetWidth-this.strokeWidth,e=this.$refs.modal.offsetHeight-this.strokeWidth,a=this.angle,i=this.angleWidth+a,s=this.strokeWidth;return`M${s} ${a} L${a} ${s} L${i} ${s} L${i+a} ${a} L${t-a} ${a} L${t} ${2*a} L${t} ${e-a} L${t-a} ${e} L${a} ${e} L${s} ${e-a} Z`}return""}}};a("7d6b");H.render=P,H.__scopeId="data-v-2e650d41";var N=H,q=N;const A=Object(i["t"])("data-v-5bd5b628");Object(i["l"])("data-v-5bd5b628");const Y={class:"screen overflow",ref:"echarts"};Object(i["k"])();const I=A((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("section",Y,null,512)));var R=a("313e"),F={unit(t,e){return"number"===typeof t?t:e*(parseFloat(t)/100)},unitPx(t){return"number"===typeof t?t*screen_conf.proportion:parseFloat(t)*screen_conf.proportion}},C={tooltip:{trigger:"axis"},color:["#F67A7B","#03EAF6"],textStyle:{color:"#fff"},legend:{data:["总发布","已解决"],textStyle:{color:"#fff"},icon:"circle",right:"5%",itemWidth:F.unitPx(10),itemHeight:F.unitPx(10)},grid:{left:"5%",right:"5%",bottom:"18%",top:"18%",containLabel:!0},xAxis:{type:"category",data:[],color:"#fff",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{align:"center"}},yAxis:{type:"value",axisLabel:{formatter:function(t){return t<=0?"":t}}},series:[{name:"总发布",type:"line",symbol:"none",data:[]},{name:"已解决",type:"line",symbol:"none",data:[]}]},B={data:{type:Object}},U={name:"view-line",watch:{data:{handler:"installEcharts",immediate:!0}},methods:{installEcharts(){if(!this.$refs.echarts)return;this.echarts||(this.echarts=Object(R["a"])(this.$refs.echarts));let t=!0;return this.data&&(t=!1,C.xAxis.data!==this.data.xAxis&&(C.xAxis.data=this.data.xAxis,t=!0),this.data.series.map((e,a)=>{C.series[a].data!==e&&(C.series[a].data=e,t=!0)})),this.echarts.clear(),Object(i["i"])(()=>{this.echarts.setOption(C)})}},props:B};a("1b9b");U.render=I,U.__scopeId="data-v-5bd5b628";var z=U,E=z;const J=Object(i["t"])("data-v-37fabf1a");Object(i["l"])("data-v-37fabf1a");const K={class:"screen overflow",ref:"echarts"};Object(i["k"])();const G=J((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("section",K,null,512)));var V={grid:{left:"5%",right:"5%",top:"15%",bottom:"30%"},xAxis:{type:"category",data:["信息总量","推荐数量","推送数量","阅读量"],axisLine:{show:!0,lineStyle:{color:"#053B6D"}},axisTick:{show:!1},axisLabel:{color:"#A2D4E6"},boundaryGap:!0},yAxis:{type:"value",axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},series:[{data:[],type:"bar",showBackground:!0,backgroundStyle:{color:"#0D72BB",borderRadius:F.unitPx(10)},label:{show:!0,position:"bottom",color:"#A2D4E6",offset:[0,F.unitPx(-190)]},itemStyle:{color:{x:0,y:1,x2:0,y2:0,colorStops:[{offset:0,color:"#0066CC"},{offset:1,color:"#00FFF0"}],global:!1},borderRadius:F.unitPx(10)},barWidth:F.unitPx(16)}]},Z={data:{type:Object}},Q={name:"view-bar",watch:{data:{handler:"installEcharts",immediate:!0}},methods:{installEcharts(){if(!this.data)return;if(!this.$refs.echarts)return;this.echarts||(this.echarts=Object(R["a"])(this.$refs.echarts));let t=!1;return this.data.series.map((e,a)=>{V.series[a].data!==e&&(V.series[a].data=e,t=!0)}),this.echarts.clear(),Object(i["i"])(()=>{this.echarts.setOption(V)})}},props:Z};a("7be5");Q.render=G,Q.__scopeId="data-v-37fabf1a";var X=Q,tt=X;const et=Object(i["t"])("data-v-488098b0");Object(i["l"])("data-v-488098b0");const at={class:"screen relative"},it={class:"screen overflow",ref:"echarts"},st={class:"absolute view-pie-number"},rt={class:"view-pie-label"},ot={class:"view-pie-value"};Object(i["k"])();const nt=et((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("section",at,[Object(i["f"])("section",it,null,512),Object(i["f"])("article",st,[t.data?(Object(i["j"])(!0),Object(i["c"])(i["a"],{key:0},Object(i["n"])(r.statisticsData,(e,a)=>(Object(i["j"])(),Object(i["c"])("aside",{key:"view-pie-"+a,class:["rowACenter wrap view-pie-item",{"view-pie-margin":0!==a}]},[Object(i["f"])("div",{class:"view-pie-icon",style:{backgroundColor:e.icon}},null,4),Object(i["f"])("div",rt,Object(i["r"])(e.label),1),Object(i["f"])("div",ot,Object(i["r"])(t.data[e.key]),1)],2))),128)):Object(i["d"])("",!0)])]))),lt=F.unitPx(18);var ct={legend:{data:["总发布","已解决"],textStyle:{color:"#fff"},icon:"circle",right:"5%",itemWidth:F.unitPx(10),itemHeight:F.unitPx(10)},series:[{type:"gauge",progress:{show:!0,width:lt,itemStyle:{color:{x:0,y:1,x2:0,y2:0,colorStops:[{offset:0,color:"#3ACAFF"},{offset:1,color:"#00F077"}],global:!1},borderType:"dashed"},roundCap:!0},axisLine:{lineStyle:{width:lt,color:[[1,"#053B6D"]]},show:!0},radius:"55%",center:["40%","38%"],detail:{offsetCenter:[0,0],formatter:"{value}%",show:!0,fontSize:F.unitPx(26),color:"#FFEB00",fontWeight:"normal"},data:[{value:0}],startAngle:90,endAngle:-270,splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},pointer:{show:!1},title:{show:!1}}]},dt={data:{type:Object}},ut=[{label:"全部心愿",icon:"#053B6D",key:"total"},{label:"已点亮",icon:"#1DDDBB",key:"value"}],ht={name:"view-pie",data(){return{statisticsData:ut}},watch:{data:{handler:"installEcharts",immediate:!0}},methods:{installEcharts(){if(!this.data)return;if(!this.$refs.echarts)return;this.echarts||(this.echarts=Object(R["a"])(this.$refs.echarts));let t=!1;return ct.series[0].data[0].value!==this.data.speed&&(ct.series[0].data[0].value=this.data.speed,t=!0),this.echarts.clear(),Object(i["i"])(()=>{this.echarts.setOption(ct)})}},props:dt};a("2e0d");ht.render=nt,ht.__scopeId="data-v-488098b0";var bt,ft=ht,mt=ft;(function(t){t["feelings"]="feelings",t["information"]="information",t["wish"]="wish",t["employment"]="employment",t["supply"]="supply",t["main"]="main"})(bt||(bt={}));var pt=[{label:"民情直达",component:"view-line",key:bt.feelings},{label:"信息推送",component:"view-bar",key:bt.information},{label:"微心愿",component:"view-pie",key:bt.wish}];const vt=Object(i["t"])("data-v-22e7dcb7");Object(i["l"])("data-v-22e7dcb7");const gt={class:"screen flex view-table-container overflow"},jt={class:"view-table-header rowACenter"},yt={class:"overflow flex-1 view-table-content"},Ot={class:"line-1"};Object(i["k"])();const wt=vt((t,e,a,s,r,o)=>{const n=Object(i["p"])("scroll-view");return Object(i["j"])(),Object(i["c"])("section",gt,[Object(i["f"])("div",jt,[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(t.tableData,(t,e)=>(Object(i["j"])(),Object(i["c"])("aside",{key:"table-"+e,style:o.getStyle(t)},Object(i["r"])(t.label),5))),128))]),Object(i["f"])("section",yt,[Object(i["f"])(n,{mode:r.scrollMode,ref:"scroll"},{default:vt(()=>[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(t.noticeData,(e,a)=>(Object(i["j"])(),Object(i["c"])("div",{class:"rowACenter table-item",key:"table-item-"+a},[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(t.tableData,(t,s)=>(Object(i["j"])(),Object(i["c"])("div",{key:"table-item-"+s+"-"+a,style:o.getStyle(t),class:"overflow"},[Object(i["f"])("div",Ot,Object(i["r"])(e[t.key]),1)],4))),128))]))),128))]),_:1},8,["mode"])])])});var xt={tableData:{type:Array,default:function(){return[{label:"招工内容",flex:1,align:"left"},{label:"时间",width:100,align:"center"}]}},data:{type:Array,default:function(){return[]}}};const kt=Object(i["t"])("data-v-c3d1ce1e");Object(i["l"])("data-v-c3d1ce1e");const Dt={class:"relative screen"},Tt={class:"scroll-fill",ref:"container"};Object(i["k"])();const _t=kt((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("section",Dt,[Object(i["f"])("section",{class:["scroll-view screen relative",t.scrollStyle],ref:"scroll"},[Object(i["f"])("article",Tt,[Object(i["o"])(t.$slots,"default",{},void 0,!0)],512)],2),Object(i["o"])(t.$slots,"background",{},void 0,!0)])));var St;(function(t){t["default"]="default",t["transform"]="transform"})(St||(St={}));var $t,Mt,Wt=St;(function(t){t[t["default"]=0]="default",t[t["add"]=1]="add",t[t["reduce"]=2]="reduce"})($t||($t={}));class Pt{constructor(t,e){this.id="scroll-"+(new Date).getTime()+"-"+Math.ceil(1e5*Math.random()),this.el=t,this.vm=e}get width(){return this.vm.setContainerWidth(),this.vm.containerWidth}get scrollWidth(){return this.vm.setScrollWidth(),this.vm.scrollWidth}get height(){return this.vm.setContainerHeight(),this.vm.containerHeight}get scrollHeight(){return this.vm.setScrollHeight(),this.vm.scrollHeight}get y(){return this.el.scrollTop}get x(){return this.el.scrollLeft}get horizontal(){return this.vm.horizontal}get vertical(){return!this.vm.horizontal||this.vm.auto}get bottomDistance(){return this.vm.bottomDistance||this.vm.distance}get leftDistance(){return this.vm.leftDistance||this.vm.distance}get topDistance(){return this.vm.topDistance||this.vm.distance}get rightDistance(){return this.vm.rightDistance||this.vm.distance}get useOption(){let t={};return this.vertical&&(t.y=this.y,t.number=t.y),this.horizontal&&(t.x=this.x,void 0===t.number&&(t.number=t.x)),t}}(function(t){t["liner"]="linear",t["easeIn"]="ease-in",t["easeOut"]="ease-out",t["easeInOut"]="ease-in-out",t["none"]="none"})(Mt||(Mt={}));var Lt={[Mt.liner]:function(t,e,a,i){return a*t/i+e},[Mt.easeIn]:function(t,e,a,i){return a*(t/=i)*t+e},[Mt.easeOut]:function(t,e,a,i){return-a*(t/=i)*(t-2)+e},[Mt.easeInOut]:function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e}},Ht={locks:{},scrollTo({distance:t=0,animation:e=Mt.none,duration:a=0,lock:i,callback:s,once:r=!1}){void 0===i&&(i={lock:void 0,key:"other"});let o=this.locks[i.key];if(o&&(clearInterval(o.lock),o.fail&&o.fail(o),delete this.locks[i.key]),e===Mt.none||0===a||0===t)return s&&s(t),i.success&&i.success(i);{this.locks[i.key]=i;let o=1,n=r?a:1e3/60;r&&s&&s(t),i.lock=setInterval(()=>{let l=o*n;if(r||s&&s(Lt[e](l,0,t,a)),l>=a)return clearInterval(i.lock),delete this.locks[i.key],i.success&&i.success(i);o++},n)}},getModeNumber(t,e=0,a=$t.default){switch(a){case $t.add:return e+t;case $t.reduce:return e-t;default:return t-e}},getCompatibleNumber(t,e=0,a=99999){return t<e?t=e:t>a&&(t=a),t}};class Nt extends Pt{constructor(t,e){super(t,e),this.useScroll=!1,this.scrollStatus={left:!1,right:!1,top:!1,bottom:!1},this.useScroll=this.whereOnScroll(),this.install()}install(){this.useScroll&&(this.onScroll=this.addListener("scroll",this.onScroll))}addListener(t,e){return e=e.bind(this),void 0!==this.el.addEventListener?this.el.addEventListener(t,e,{passive:!0}):this.el.attachEvent("on"+t,e,{passive:!0}),e}onScroll(){let t=this.useOption;if(void 0!==t.y){let e=this.scrollHeight,a=this.height;this.trigger(e-a-t.y,"bottom",t,"scrollTolower"),this.trigger(t.y,"top",t,"scrollToupper")}if(void 0!==t.x){let e=this.scrollWidth,a=this.width;this.trigger(e-a-t.x,"right",t,"scrollTolower",!1),this.trigger(t.x,"left",t,"scrollToupper",!1)}this.vm.$listeners.scroll&&this.vm.$emit("scroll",t)}trigger(t,e,a,i="scrollTolower",s=!0){!this.scrollStatus[e]&&t<=this[e+"Distance"]?(this.scrollStatus[e]=!0,this.vm.$emit(i,{...a,[s?"horizontal":"vertical"]:!0})):t>this[e+"Distance"]&&this.scrollStatus[e]&&(this.scrollStatus[e]=!1)}whereOnScroll(){return void 0!==this.vm.$listeners.scroll||void 0!==this.vm.$listeners.scrollTolower||void 0!==this.vm.$listeners.scrollToupper}scrollTo(t){"number"===typeof t&&(t={number:t});let e=this.useOption;void 0!==e.y&&this.scrollToTrigger("y",e,this.scrollHeight-this.height,t),void 0!==e.x&&this.scrollToTrigger("x",e,this.scrollWidth-this.width,t)}scrollToEnd(t){"number"===typeof t&&(t={duration:t});let e=t;return void 0===e.direction&&(this.vertical&&this.horizontal?(e.x=this.scrollWidth-this.width,e.y=this.scrollHeight-this.height):e.direction=this.vertical?"y":"x"),void 0!==e.direction&&(e[e.direction]="x"===e.direction?this.scrollWidth-this.width:this.scrollHeight-this.height),this.scrollTo(e)}scrollToStart(t){"number"===typeof t&&(t={duration:t});let e=t,a=this.useOption;return void 0===e.direction&&(this.vertical&&this.horizontal?(e.x=-1*a.x,e.y=-1*a.y):e.direction=this.vertical?"y":"x"),void 0!==e.direction&&(e[e.direction]=-1*a[e.direction]),this.scrollTo(e)}scrollToTrigger(t,e,a,i){let s={key:this.id+"-"+t,lock:void 0,params:i};(i.fail||i.complete)&&(s.fail=t=>{i.complete&&i.complete(!0,t.params),i.fail(t.params)}),(i.success||i.complete)&&(s.success=t=>{i.complete&&i.complete(!0,t.params),i.success&&i.success(t.params)});let r=i[t+"Mode"]||i.mode;return Ht.scrollTo({duration:i.duration||0,distance:Ht.getCompatibleNumber(Ht.getModeNumber(i[t]||i.number||0,e[t],r),-1*e[t],a),animation:i.animation||Mt.liner,callback:a=>{this.el["y"===t?"scrollTop":"scrollLeft"]=e[t]+a},lock:s})}}class qt extends Pt{constructor(t,e){super(t,e)}scrollTo(t){"number"===typeof t&&(t={number:t});let e=this.useOption;void 0!==e.y&&this.scrollToTrigger("y",e,this.scrollHeight-this.height,t),void 0!==e.x&&this.scrollToTrigger("x",e,this.scrollWidth-this.width,t)}scrollToEnd(t){"number"===typeof t&&(t={duration:t});let e=t;return void 0===e.direction&&(this.vertical&&this.horizontal?(e.x=this.scrollWidth-this.width,e.y=this.scrollHeight-this.height):e.direction=this.vertical?"y":"x"),void 0!==e.direction&&(e[e.direction]="x"===e.direction?this.scrollWidth-this.width:this.scrollHeight-this.height),this.scrollTo(e)}scrollToStart(t){"number"===typeof t&&(t={duration:t});let e=t,a=this.useOption;return void 0===e.direction&&(this.vertical&&this.horizontal?(e.x=-1*a.x,e.y=-1*a.y):e.direction=this.vertical?"y":"x"),void 0!==e.direction&&(e[e.direction]=-1*a[e.direction]),this.scrollTo(e)}scrollToTrigger(t,e,a,i){let s={key:this.id+"-"+t,lock:void 0,params:i};(i.fail||i.complete)&&(s.fail=t=>{i.complete&&i.complete(!0,t.params),i.fail&&i.fail(t.params)}),(i.success||i.complete)&&(s.success=t=>{i.complete&&i.complete(!0,t.params),i.success&&i.success(t.params)});let r=i[t+"Mode"]||i.mode;return Ht.scrollTo({duration:i.duration||0,distance:Ht.getCompatibleNumber(Ht.getModeNumber(i[t]||i.number||0,e[t],r),-1*e[t],Math.abs(a)),animation:i.animation||Mt.liner,callback:e=>{i.animation!==Mt.none&&0!==i.duration?this.el.style.transition="transform "+(i.animation||Mt.liner)+" "+i.duration+"ms":""!==this.el.style.transition&&(this.el.style.transition=""),this.vm.$nextTick(()=>this.el.style.transform="translate"+t.toUpperCase()+"("+-1*e+"px)")},lock:s,once:!0})}}var At,Yt={[Wt.default]:Nt,[Wt.transform]:qt},It={computed:{scroll(){return this.$refs.scroll},container(){return this.$refs.container},el(){switch(this.mode){case Wt.transform:return this.container;default:return this.scroll}}},methods:{setContainerHeight(){let t=this.scroll.clientHeight;t!==this.containerHeight&&(this.containerHeight=t)},setScrollHeight(){let t=this.container.scrollHeight||this.container.clientHeight;t!==this.scrollHeight&&(this.scrollHeight=t)},setContainerWidth(){let t=this.scroll.clientWidth;t!==this.containerWidth&&(this.containerWidth=t)},setScrollWidth(){let t=this.container.scrollWidth||this.container.clientWidth;t!==this.scrollWidth&&(this.scrollWidth=t)},updateScrollHeight(){return this.setContainerHeight(),this.setScrollHeight()},updateScrollWidth(){return this.setContainerWidth(),this.setScrollWidth()}},mounted(){this.horizontal||this.auto?this.updateScrollWidth():this.horizontal&&!this.auto||this.updateScrollHeight();let t=this.mode;this.useModeObject=new Yt[t](this.el,this)}},Rt={computed:{scrollStyle(){switch(this.mode){case Wt.transform:return this.getTransformStyle();default:return this.getDefaultStyle()}}},methods:{getDefaultStyle(){let t="scroll-type-"+this.scrollType;return this.auto?["overflow-y","overflow-x",t]:this.horizontal?["overflow-x",t]:["overflow-y",t]},getTransformStyle(){return["overflow"]}}},Ft={methods:{scrollTo(t){return this.useModeObject.scrollTo(t)},scrollToEnd(t){return this.useModeObject.scrollToEnd(t)},scrollToStart(t){return console.log(this.useModeObject),this.useModeObject.scrollToStart(t)}}},Ct=[It,Rt,Ft];(function(t){t["default"]="default",t["main"]="main",t["grey"]="grey",t["none"]="none"})(At||(At={}));var Bt=At,Ut={mode:{type:String,default:Wt.default},horizontal:{type:Boolean,default:!1},scrollAuto:{type:Boolean,default:!1},distance:{type:Number,default:50},topDistance:{type:Number},bottomDistance:{type:Number},leftDistance:{type:Number},rightDistance:{type:Number},scrollType:{type:String,default:Bt.none}},zt={name:"scroll-view",mixins:Ct,props:Ut};a("d620");zt.render=_t,zt.__scopeId="data-v-c3d1ce1e";var Et=zt,Jt=Et,Kt={computed:{scroll(){return this.$refs.scroll}},data(){return{noticeData:[]}},methods:{contrastNoticeData(t){if(t.length<=0)return;let e=t.map(t=>t.id).join(",");if(this.storageId!==e){if(!this.look)return this.noticeData=[...t,...t],this.storageId=e,this.queueData=void 0,Object(i["i"])(()=>this.animateTrigger());this.queueData=t}},animateTrigger(){if(this.look)return;this.$refs.scroll.setScrollHeight();let t=this.$refs.scroll.scrollHeight/2;this.look=!0,this.$refs.scroll.scrollTo({y:t,duration:30*t,complete:()=>(this.$refs.scroll.scrollToStart({duration:0}),this.look=!1,this.queueData?this.contrastNoticeData(this.queueData):Object(i["i"])(()=>this.animateTrigger()))})}},created(){this.storageNoticeData={},this.queueData=void 0,this.storageId=""},watch:{data:{handler:function(){this.contrastNoticeData(this.data)},immediate:!0}}},Gt=[Kt],Vt={name:"view-table",props:xt,mixins:Gt,data(){return{scrollMode:Wt.transform}},methods:{getStyle(t){let e={};return t.flex?e.flex=t.flex:e.width=t.width?F.unitPx(t.width)+"px":"auto",e["text-align"]=t.align||"center",e}},components:{scrollView:Jt}};a("d257");Vt.render=wt,Vt.__scopeId="data-v-22e7dcb7";var Zt=Vt,Qt=Zt,Xt=[{label:"招工就业",component:"view-table",key:"employment",tableData:[{label:"招工内容",flex:1,align:"left",key:"title"},{label:"时间",width:100,align:"center",key:"format"}]},{label:"供应需求",component:"view-table",key:"supply",tableData:[{label:"供应/需求",flex:1,align:"left",key:"title"},{label:"时间",width:120,align:"center",key:"format"}]}],te=a("73bb"),ee=a.n(te);const ae=Object(i["t"])("data-v-8e5dbb94");Object(i["l"])("data-v-8e5dbb94");const ie={class:"screen center relative view-map-padding"},se={key:0,class:"absolute view-map-label-container"},re={class:"screen center view-map-label-background"},oe={class:"view-map-number lin"},ne=Object(i["f"])("span",null,"个",-1),le={class:"view-map-content"},ce=Object(i["f"])("div",{class:"view-map-line"},null,-1),de={class:"view-map-content-item"},ue=Object(i["f"])("div",{class:"view-map-line"},null,-1),he={key:1,class:"view-map-container relative"},be=Object(i["f"])("div",{class:"view-map-spot screen relative"},null,-1),fe={class:"absolute view-map-label"},me=Object(i["f"])("div",{class:"absolute center view-map-animate-wrap view-map-animate"},[Object(i["f"])("div",{class:"view-map-animate-children"})],-1),pe=Object(i["f"])("div",{class:"absolute center view-map-animate-wrap view-map-animate",style:{"animation-delay":".4s"}},[Object(i["f"])("div",{class:"view-map-animate-children"})],-1),ve={x:"0px",y:"0px",viewBox:"0 0 357 721",class:"screen",style:{"enable-background":"new 0 0 357 721"},"xml:space":"preserve"},ge=Object(i["f"])("g",null,[Object(i["f"])("image",{style:{overflow:"visible"},class:"screen",width:"357",height:"721","xlink:href":ee.a})],-1);Object(i["k"])();const je=ae((t,e,a,s,r,o)=>(Object(i["j"])(),Object(i["c"])("section",ie,[t.data?(Object(i["j"])(),Object(i["c"])("section",se,[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(r.labelData,(e,a)=>(Object(i["j"])(),Object(i["c"])("aside",{key:"view-map-label-"+a},[Object(i["f"])("div",re,[Object(i["f"])("div",oe,[Object(i["e"])(Object(i["r"])(t.data[e.key]),1),ne]),Object(i["f"])("div",le,[ce,Object(i["f"])("div",de,Object(i["r"])(e.label),1),ue])])]))),128))])):Object(i["d"])("",!0),t.data?(Object(i["j"])(),Object(i["c"])("section",he,[(Object(i["j"])(!0),Object(i["c"])(i["a"],null,Object(i["n"])(t.data.data,(t,e)=>(Object(i["j"])(),Object(i["c"])(i["a"],null,[r.layoutData[e]?(Object(i["j"])(),Object(i["c"])("div",{class:["absolute view-map-dot-div",{"view-map-dot-div-hover":r.hoverIndex===e}],key:"div-dot-"+e,style:{top:r.layoutData[e].top+"px",left:r.layoutData[e].left+"px",width:r.layoutData[e].width+"px",height:r.layoutData[e].width+"px"}},[be,Object(i["f"])("div",fe,Object(i["r"])(t.name)+":"+Object(i["r"])(t.number)+"人",1),me,pe],6)):Object(i["d"])("",!0)],64))),256)),(Object(i["j"])(),Object(i["c"])("svg",ve,[ge,t.data?(Object(i["j"])(!0),Object(i["c"])(i["a"],{key:0},Object(i["n"])(t.data.data,(t,e)=>(Object(i["j"])(),Object(i["c"])("g",{key:"path-"+e,class:"view-map-dot-parent"},[t.lonlat?(Object(i["j"])(),Object(i["c"])(Object(i["q"])(t.lonlat.name),Object(i["h"])({key:0,class:"view-map-dot"},t.lonlat.attrs),null,16)):Object(i["d"])("",!0)]))),128)):Object(i["d"])("",!0)]))])):Object(i["d"])("",!0)])));var ye={data:{type:Object},duration:{type:Number,default:1e4}},Oe=[{label:"党支部数量",key:"total"},{label:"党员数量",key:"value"}],we={name:"view-map",data(){return{layoutData:[],labelData:Oe,hoverIndex:-1}},watch:{data:{handler:"installLayoutData",immediate:!0}},props:ye,methods:{installLayoutData(){let t=JSON.stringify(this.data);if(t!==this.storageData){this.storageData=t;let e=[];return Object(i["i"])(()=>{let t=document.getElementsByClassName("view-map-dot");for(let a=0,i=t.length;a<i;a++){let i=t[a].getBBox();e.push({top:F.unitPx(i.y),left:F.unitPx(i.x),width:F.unitPx(i.width),height:F.unitPx(i.height)})}e.length>0&&(this.layoutData=e,this.installRandom())})}},installRandom(){if(void 0===this.look)return this.triggerHoverRanDom()},triggerHoverRanDom(){this.hoverRanDom(),this.look=setTimeout(()=>this.triggerHoverRanDom(),this.duration)},hoverRanDom(){if(this.layoutData.length<=0)return;let t=Math.floor(Math.random()*this.layoutData.length);if(this.hoverIndex===t&&this.layoutData.length>1)return this.hoverRanDom();this.hoverIndex=t}},unmounted(){clearTimeout(this.look)}};a("e005"),a("11da");we.render=je,we.__scopeId="data-v-8e5dbb94";var xe,ke,De=we,Te=De;(function(t){t[t["front"]=0]="front",t[t["after"]=1]="after"})(xe||(xe={})),function(t){t[t["success"]=0]="success",t[t["fail"]=1]="fail"}(ke||(ke={}));class _e{}var Se,$e={baseApiURL:"api/",baseURL:"https://dangjian.lanmaonet.com/"},Me=$e,We={addBaseURL(t,e=Me.baseURL){return t?(t.indexOf("data:")<0&&t.indexOf("http")<0&&(t=e+t),t):t}};(function(t){t[t["front"]=0]="front",t[t["after"]=1]="after",t[t["auto"]=2]="auto"})(Se||(Se={}));class Pe extends _e{constructor(){super(...arguments),this.__status=Se.auto,this.order=[]}page({requestData:t}){t.page&&(t.data=t.data||{},t.data["page"]=t.page.page,t.data["limit"]=t.page.pageSize)}status({requestData:t,result:e}){if(t.status)return t.status(void 0===e)}mode({requestData:t}){t.mode&&Me.mode[t.mode]&&(t.url=We.addBaseURL(t.url,Me.mode[t.mode].baseURL+Me.mode[t.mode].baseApiURL))}oddNumbers({requestData:t}){if(t.oddNumbers){t.data=t.data||{};let e="";for(let t=0;t<7;t++)e+=Math.floor(10*Math.random());let a=w.dateFormat(new Date,"YYYYMMDD")+"12345"+e;t.sneakData?t.data[t.sneakData]["bizSeqNo"]=a:t.data["bizSeqNo"]=a}}sneakData({requestData:t}){t.sneakData&&(t.data={[t.sneakData]:t.data})}inspect(t){let e=this.getOrderKeys(t.requestData),a=t.status;for(let i=0,s=e.length;i<s;i++){if(!t.next)return;{let s=this[e[i]];if(s){let r=this["__"+e[i]]||Se.front;switch(a){case xe.front:(r===Se.front||r===Se.auto)&&s(t);break;case xe.after:(r===Se.after||r===Se.auto)&&s(t);break}}}}}getOrderKeys(t){let e=Object.keys(t);if(this.order.length>0){let t=[];return this.order.map(a=>{let i=e.indexOf(a);i>=0&&(t.push(a),e.splice(i,1))}),t.concat(e)}return e}}class Le extends _e{static success(t){return t.resolve(t.responseData)}static fail(t){return t.reject(t.responseData)}inspect(t){return t.result===ke.success?Le.success(t):Le.fail(t)}}let He=new Pe;var Ne={[xe.front]:[He],[xe.after]:[He,new Le]},qe=function(t){t.next=!0,t.exit=function(t){return this.next=!1,this.reject({code:0,msg:t,data:null})};for(let a=0,i=Ne[t.status].length;a<i;a++){if(!t.next)break;Ne[t.status][a].inspect(t)}let e=t.next;return t=null,e},Ae=a("bc3a"),Ye=a.n(Ae);const Ie={baseURL:Me.baseURL+Me.baseApiURL,method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},responseType:"json"},Re=Ye.a.create(Ie);function Fe(t){return new Promise((e,a)=>{if(qe({status:xe.front,requestData:t,resolve:e,reject:a})){if((!t.headers||"application/json"!==t.headers["content-type"])&&t.data){let e=[];for(let a in t.data)t.data.hasOwnProperty(a)&&e.push(a+"="+t.data[a]);t.data=e.join("&")}Re.request(t).then(i=>qe({status:xe.after,result:ke.success,responseData:i.data,requestData:t,resolve:e,reject:a})).catch(i=>qe({status:xe.after,result:ke.fail,responseData:{status:i.response&&i.response.status||-1,msg:i.code,data:i},requestData:t,resolve:e,reject:a}))}})}Fe.all=function(t,e){return new Promise((a,i)=>{e&&qe({status:xe.front,requestData:e,resolve:a,reject:i}),Promise.all(t).then(t=>qe({status:xe.after,requestData:e,responseData:t,resolve:a,reject:i})).catch(t=>qe({status:xe.after,requestData:e,responseData:{status:t.response&&t.response.status||-1,msg:t.code,data:t},resolve:a,reject:i}))})},Fe.polling=function(t,e=5e3){let a;a="number"===typeof e?{duration:e}:e;let i={options:a,callback:t,count:0,time:0};return e=null,t=null,i.options.wait?Fe.__asyncPollingRunning(i):Fe.__pollingRunning(i)?i.time=setInterval(()=>{Fe.__pollingRunning(i)||(i=null)},i.options.duration):i=null,i},Fe.__asyncPollingRunning=function(t){t.time=setTimeout(()=>{Fe.__pollingRunning(t).then(e=>{e?Fe.__asyncPollingRunning(t):(t=null,Fe.clearPolling(t))}).catch(e=>{t=null,Fe.clearPolling(t)})},t.options.duration)},Fe.__pollingRunning=function(t){return!0===t.options.wait?new Promise((e,a)=>{t.callback(t.count).then(()=>(t.count++,t.options.max&&t.count>t.options.max?(Fe.clearPolling(t),e(!1)):e(!0))).catch(t=>a(t))}):(t.callback(t.count),t.count++,!(t.options.max&&t.count>t.options.max)||(Fe.clearPolling(t),!1))},Fe.clearPolling=function(t){return void 0!==t&&(t.options.wait?clearTimeout(t.time):clearInterval(t.time),Object.keys(t).map(e=>{t[e]=null}),t=null,!0)};let Ce=void 0;var Be={[bt.feelings]:function(t){return{xAxis:t.minqing_month||[],series:[t.minqing_all_num||[],t.minqing_status2_num||[]]}},[bt.information]:function(t){let e=[t.news_all_num,t.news_intro_num,t.news_msg_num,t.news_read_num];return e.push(e.reduce((function(t,e){return t+e}))),{series:[e]}},[bt.wish]:function(t){return{speed:Math.floor(t.xinyuan_status2_num/t.xinyuan_num*100),total:t.xinyuan_num,value:t.xinyuan_status2_num}},[bt.employment]:function(t){let e=t.job_list||[];return{data:e.map(t=>(t.format=w.dateFormat(t.createtime,"YYYY-MM-DD"),t)),total:t.gongxu_num}},[bt.supply]:function(t){let e=t.xuqiu_list||[];e.map(t=>{t.id=t.id+"-xuqiu_list"});let a=t.gongying_list||[];return a.map(t=>{t.id=t.id+"-gongying_list"}),e=[...e,...a],{data:e.map(t=>(t.format=w.dateFormat(t.createtime,"YYYY-MM-DD"),t)),total:t.gongxu_num}},[bt.main]:function(t){let e={value:t.party_user_num,total:t.party_num};return void 0!==Ce&&Ce.value===e.value&&Ce.total===e.total||(Ce=e,Ce.data=t.party_list.map(t=>{try{t.lonlat=JSON.parse(t.lonlat.replace(/'/g,'"'))}catch(e){t.lonlat=""}return t})),Ce}},Ue={getData(t){let e={};for(let a in Be)Be.hasOwnProperty(a)&&(e[a]=Be[a](t));return e}},ze={data(){return{data:{},lastUpdateTime:"",draw:!1}},created(){this.requestNoticeLook=Fe.polling(()=>{Fe({url:"baseconfig/showall"}).then(t=>{if(1===t.code){let e=t.data||{};if(this.lastUpdateTime=w.dateFormat(new Date,"YYYY/MM/DD hh:mm"),this.data=Ue.getData(e),!this.draw)return Object(i["i"])(()=>{this.draw=!0})}})},3e4)},mounted(){window.onresize=()=>{clearTimeout(this.look),this.look=setTimeout(()=>{this.draw=!1,window.location.reload()},500)}}},Ee=[ze],Je={name:"entry",data(){return{componentsData:pt,scrollsData:Xt,keyTypeMain:bt.main}},components:{viewHeader:T,layoutFrame:q,viewLine:E,viewBar:tt,viewPie:mt,viewTable:Qt,viewMap:Te},mixins:Ee};a("20e8");Je.render=u,Je.__scopeId="data-v-6d845e96";var Ke=Je,Ge=Ke,Ve={components:{entry:Ge}};a("b0e2");Ve.render=s;var Ze=Ve,Qe=a("5502"),Xe=Object(Qe["a"])({state:{},mutations:{},actions:{},modules:{}});Object(i["b"])(Ze).use(Xe).mount("#app")},d257:function(t,e,a){"use strict";a("3427")},d620:function(t,e,a){"use strict";a("afc8")},e005:function(t,e,a){"use strict";a("4629")}});
  2. //# sourceMappingURL=app.d5bb9e89.js.map