You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ocr-web/dist/js/chunk-0560ef2d.935a1cad.js

1 line
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0560ef2d","chunk-7d3149f5","chunk-7da2a23c","chunk-7887c426","chunk-782652f9","chunk-e859b6ec","chunk-2d0ba365"],{"0147":function(t,e,a){"use strict";a("f1f1")},"1ded":function(t,e,a){"use strict";a("9ab8")},2764:function(t,e,a){},2898:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"}},[a("div",{staticClass:"chart"},[a("div",{staticClass:"bar",staticStyle:{width:"100%",height:"100%"},attrs:{id:"task_status"}})])])}],r=a("ca00"),o=a("0fea"),s={name:"taskStatus",props:{queryData:{type:Object,default:function(){return{}}},dataType:{type:String},timeQuery:{type:Array}},data:function(){return{chartInfo:null,queryParam:{time:"1",userid:""},datatask:[],url:{taskSuccessInfo:"/smb/index/taskData"},option:{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{show:!0,data:["应完成","已完成","任务","完成度"],bottom:12},grid:{top:"40",bottom:"40",left:"40",right:"40",containLabel:!0},xAxis:{type:"category",data:[],axisTick:{alignWithLabel:!0}},yAxis:{type:"value"},series:[{name:"应完成",data:[],type:"bar",top:10,itemStyle:{color:"#16e6b4"}},{name:"已完成",data:[],type:"bar",top:10,itemStyle:{color:"#b0f6e5"}},{name:"任务",data:[],type:"line",top:10,itemStyle:{color:"#05a8f0"}},{name:"完成度",data:[],type:"bar",top:10,itemStyle:{color:"#b0f6e5"}}]}}},created:function(){var t=this;window.addEventListener("resize",Object(r["m"])((function(){t.chartInfo.resize()}))),this.initData(),this.handleQuery()},watch:{chartInfo:function(t,e){t&&t.resize()},dataType:{handler:function(t){this.getTaskSuccessInfo()},immediate:!1,deep:!0},timeQuery:{handler:function(t){this.getTaskSuccessInfo()},immediate:!1,deep:!0}},methods:{initData:function(){var t=this;this.$nextTick((function(){var e=document.getElementById("task_status");t.chartInfo=t.echarts.init(e),t.chartInfo.setOption(t.option)}))},getTaskSuccessInfo:function(){var t=this,e={dataType:this.dataType,platformType:this.queryData.platform||"",userId:this.queryData.userid||"",orgCode:this.queryData.orgTree||"",post:this.queryData.position||"",startTime:this.timeQuery?this.timeQuery[0].format("YYYY-MM-DD"):"",endTime:this.timeQuery?this.timeQuery[1].format("YYYY-MM-DD"):""};Object(o["i"])(this.url.taskSuccessInfo,e).then((function(e){if(e.success){t.datatask=e.result;var a=e.result,i=a.complete,n=a.incomplete,r=a.days,o=a.all,s=a.progress;t.option.series[0].data=i,t.option.series[1].data=n,t.option.series[2].data=o,t.option.series[3].data=s,t.option.xAxis.data=r,t.initData()}}))},handleQuery:function(){this.getTaskSuccessInfo()},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0}}},c=s,u=(a("692b"),a("2877")),d=Object(u["a"])(c,i,n,!1,null,"654b0bad",null);e["default"]=d.exports},"2f3a":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")},n=[],r=(a("35f3"),a("ca00"),a("c010"),a("0fea"),a("2898"),a("bdeb"),a("d4e4"),a("fec1"),a("a01e"),a("4ec3"),{name:"Analysis",components:{},data:function(){return{}},created:function(){},mounted:function(){},methods:{}}),o=r,s=(a("1ded"),a("2877")),c=Object(s["a"])(o,i,n,!1,null,"450370b0",null);e["default"]=c.exports},"35f3":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",[a("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:t.id}})])},n=[],r={name:"charts",props:{id:{type:String},dataX:{type:Array},dataY:{type:Array},smooth:{type:Boolean,default:!1},title:{type:String,default:"标题"}},watch:{dataY:{handler:function(t,e){this.initLine()},deep:!0}},data:function(){return{loading:!1,chartInfo:null}},mounted:function(){var t=this;this.loading=!0,this.dataX&&this.initLine(),window.addEventListener("resize",(function(){t.chartInfo.resize()}),!0)},methods:{initLine:function(){var t=[],e=this.dataY;e.forEach((function(e){t.push({name:e.title,type:e.type,data:e.data})})),this.chartInfo=this.echarts.init(document.getElementById(this.id)),this.chartInfo.setOption({legend:{show:!0,data:["已完成","未完成"],orient:"vertical",right:30},grid:{top:60,bottom:60,left:70,right:130},tooltip:{show:!0,trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,axisTick:{alignWithLabel:!0},axisLine:{show:!0,lineStyle:{color:"rgba(85,85,85,0.2)"}},axisLabel:{textStyle:{color:"rgba(85,85,85,0.5)",fontSize:14}},data:this.dataX},yAxis:{type:"value",axisLabel:{textStyle:{color:"rgba(85,85,85,0.5)",fontSize:14}},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(85,85,85,0.2)"}},splitLine:{show:!0,lineStyle:{color:"rgba(85,85,85,0.2)"}}},series:t},!0),e&&(this.loading=!1)}}},o=r,s=a("2877"),c=Object(s["a"])(o,i,n,!1,null,"023e0746",null);e["default"]=c.exports},"58cf":function(t,e,a){"use strict";a("2764")},"692b":function(t,e,a){"use strict";a("d29d")},"9ab8":function(t,e,a){},a01e: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("j-modal",{attrs:{okButtonProps:{class:{"jee-hidden":!0}},title:t.cardInfo.title,visible:t.visible,width:t.width,cancelText:"关闭",fullscreen:""},on:{cancel:t.handleCancel}},[1===t.cardInfo.type?a("task-status",{ref:"taskStatus",attrs:{dataType:t.queryForm.dataType,queryData:t.queryForm}}):t._e(),2===t.cardInfo.type?a("ConsumptionRanking",{ref:"ConsumptionRanking",attrs:{queryData:t.queryForm,rangeDate:t.queryForm.rangeDate}}):t._e(),3===t.cardInfo.type?a("ComparisonTrend",{ref:"ComparisonTrend",attrs:{queryData:t.queryForm,time:t.queryForm.time}}):t._e(),4===t.cardInfo.type?a("ConsumptionTrend",{ref:"ConsumptionTrend",attrs:{dayType:t.queryForm.dayType,queryData:t.queryForm,rangeTime:t.queryForm.rangeTime,userType:t.queryForm.userType}}):t._e()],1)},n=[],r=a("2898"),o=a("bdeb"),s=a("d4e4"),c=a("fec1"),u={name:"ScaleModal",components:{taskStatus:r["default"],ConsumptionRanking:o["default"],ComparisonTrend:s["default"],ConsumptionTrend:c["default"]},props:{},data:function(){return{title:"",width:800,visible:!1,disableSubmit:!1,cardInfo:{},queryForm:{}}},methods:{handleCancel:function(){this.visible=!1,this.cardInfo={},this.$emit("cancel")},open:function(t,e){var a=this;switch(this.visible=!0,this.cardInfo=t,this.queryForm=e,this.cardInfo.type){case 1:this.$nextTick((function(){a.$refs.taskStatus.handleQuery()}));break;case 2:this.$nextTick((function(){a.$refs.ConsumptionRanking.handleQuery()}));break;case 3:this.$nextTick((function(){a.$refs.ComparisonTrend.handleQuery()}));break;case 4:this.$nextTick((function(){a.$refs.ConsumptionTrend.handleQuery()}));break}}}},d=u,l=a("2877"),h=Object(l["a"])(d,i,n,!1,null,null,null);e["default"]=h.exports},bdeb:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"}},[a("div",{staticClass:"chart"},[a("div",{staticClass:"bar",staticStyle:{width:"100%",height:"100%"},attrs:{id:"ConsumptionRanking"}})])])}],r=a("ca00"),o=a("0fea"),s={name:"ConsumptionRanking",props:{queryData:{type:Object,default:function(){return{}}},rangeDate:{type:Array}},watch:{chartInfo:function(t,e){t&&t.resize()},rangeDate:{handler:function(t){this.getDayCompareList()},immediate:!1,deep:!0}},created:function(){var t=this;window.addEventListener("resize",Object(r["m"])((function(){t.chartInfo.resize()}))),this.initData(),this.handleQuery()},data:function(){return{chartInfo:null,queryParam:{},option:{legend:{show:!0,data:[],bottom:12},grid:{top:"30",bottom:"40",left:"40",right:"40",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]},urlApi:{dayCompare:"/smb/index/dayCompare"}}},methods:{initData:function(){var t=this;this.$nextTick((function(){var e=document.getElementById("ConsumptionRanking");t.chartInfo=t.echarts.init(e),t.chartInfo.setOption(t.option)}))},getDayCompareList:function(){var t=this;this.option.series=[],this.option.legend.data=[];var e={startTime:this.rangeDate?this.rangeDate[0].format("YYYY-MM-DD"):"",endTime:this.rangeDate?this.rangeDate[1].format("YYYY-MM-DD"):"",platformType:this.queryData.platform||"",userId:this.queryData.userid||"",orgCode:this.queryData.orgTree||"",post:this.queryData.position||""};Object(o["i"])(this.urlApi.dayCompare,e).then((function(e){if(e.success){var a=e.result,i=a.datas,n=a.days;i.forEach((function(e){var a={name:e.title,data:e.data,type:"line",itemStyle:{color:"#80c6e1"},label:{show:!0,position:"top"}};t.option.legend.data.push(e.title),t.option.series.push(a)})),t.option.xAxis.data=n,t.initData()}}))},handleQuery:function(){this.getDayCompareList()}}},c=s,u=(a("f899"),a("2877")),d=Object(u["a"])(c,i,n,!1,null,"b9882e12",null);e["default"]=d.exports},d29d:function(t,e,a){},d4e4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"}},[a("div",{staticClass:"chart"},[a("div",{staticClass:"bar",staticStyle:{width:"100%",height:"100%"},attrs:{id:"ComparisonTrend"}})])])}],r=a("ca00"),o=a("0fea"),s={name:"index",props:{queryData:{type:Object,default:function(){return{}}},time:{type:Object}},watch:{chartInfo:function(t,e){t&&t.resize()},time:{handler:function(t){this.getHourCompareList()},immediate:!1,deep:!0}},data:function(){return{chartInfo:null,queryParam:{},option:{legend:{show:!0,data:["今日","昨日"],bottom:12},grid:{top:"30",bottom:"40",left:"40",right:"40",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[{name:"今日",data:[],type:"line",itemStyle:{color:"#96daf9"},label:{show:!0,position:"top"}},{name:"昨日",data:[],type:"line",itemStyle:{color:"#99f20d"},label:{show:!0,position:"top"}}]},urlApi:{hourCompare:"/smb/index/hourCompare"},dataSource:{columns:[],dataList:[{title:"今天"},{title:"昨天"}]}}},created:function(){var t=this;this.initData(),window.addEventListener("resize",Object(r["m"])((function(){t.chartInfo.resize()}))),this.handleQuery()},methods:{initData:function(){var t=this;this.$nextTick((function(){var e=document.getElementById("ComparisonTrend");t.chartInfo=t.echarts.init(e),t.chartInfo.setOption(t.option)}))},getHourCompareList:function(){var t=this,e={hour:this.time?this.time.format("HH"):"",platformType:this.queryData.platform||"",userId:this.queryData.userid||"",orgCode:this.queryData.orgTree||"",post:this.queryData.position||""};Object(o["i"])(this.urlApi.hourCompare,e).then((function(e){if(e.success){var a=e.result,i=a.datas,n=a.days;t.option.series[0].data=i.today,t.option.series[1].data=i.yesterday,t.option.xAxis.data=n,t.initData(),t.dataSource.columns=[{dataIndex:"title",title:""}],n.forEach((function(e,a){var i={dataIndex:"date"+a,title:e+"时"};t.dataSource.columns.push(i)})),i.today.forEach((function(e,a){t.dataSource.dataList[0]["date"+a]=e})),i.yesterday.forEach((function(e,a){t.dataSource.dataList[1]["date"+a]=e}))}}))},handleQuery:function(){this.getHourCompareList()}}},c=s,u=(a("0147"),a("2877")),d=Object(u["a"])(c,i,n,!1,null,"8e90227c",null);e["default"]=d.exports},e835:function(t,e,a){},f1f1:function(t,e,a){},f899:function(t,e,a){"use strict";a("e835")},fec1:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"}},[a("div",{staticClass:"chart"},[a("div",{staticClass:"bar",staticStyle:{width:"100%",height:"100%"},attrs:{id:"ConsumptionTrend"}})])])}],r=a("ca00"),o=a("0fea"),s=a("4ec3");function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){d(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function d(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"ConsumptionTrend",props:{queryData:{type:Object,default:function(){return{}}},dayType:{type:String},rangeTime:{type:Array},userType:{type:String}},data:function(){return{chartInfo:null,queryParam:{userType:""},option:{legend:{show:!0,data:["广告主","二代"],bottom:12},grid:{top:"30",bottom:"40",left:"40",right:"40",containLabel:!0},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[{name:"广告主",data:[],type:"line",itemStyle:{color:"#96daf9"},label:{show:!0,position:"top"}},{name:"二代",data:[],type:"line",itemStyle:{color:"#99f20d"},label:{show:!0,position:"top"}}]},platformList:[],urlApi:{userCount:"/smb/index/userCount"},dataSource:{columns:[],dataList:[{},{}]}}},created:function(){var t=this;this.initData(),window.onresize=Object(r["m"])((function(){t.chartInfo.resize()})),this.getDictCode()},watch:{chartInfo:function(t,e){t&&t.resize()},dayType:{handler:function(t){this.getUserCountList()},immediate:!1,deep:!0},rangeTime:{handler:function(t){this.getUserCountList()},immediate:!1,deep:!0},userType:{handler:function(t){this.getUserCountList()},immediate:!1,deep:!0}},methods:{initData:function(){var t=this;this.$nextTick((function(){var e=document.getElementById("ConsumptionTrend");t.chartInfo=t.echarts.init(e),t.chartInfo.setOption(t.option)}))},getUserCountList:function(){var t=this,e={dayType:this.dayType,startTime:this.rangeTime?this.rangeTime[0].format("YYYY-MM-DD"):"",endTime:this.rangeTime?this.rangeTime[1].format("YYYY-MM-DD"):"",userType:this.userType,platformType:this.queryData.platform||"",userId:this.queryData.userid||"",orgCode:this.queryData.orgTree||"",post:this.queryData.position||""};Object(o["i"])(this.urlApi.userCount,e).then((function(e){if(e.success){var a=e.result,i=a.advertiserList,n=a.agentList,r=a.days;t.option.series[0].data=i,t.option.series[1].data=n,t.option.xAxis.data=r,t.initData(),t.dataSource.columns=r.map((function(t,e){return{dataIndex:"date"+e,title:t}})),i.forEach((function(e,a){t.dataSource.dataList[0]["date"+a]=e})),n.forEach((function(e,a){t.dataSource.dataList[1]["date"+a]=e}))}}))},getDictCode:function(){var t=Object(s["t"])("account_category");this.platformList=t.map((function(t){return u(u({},t),{},{value:t.value})})),this.queryParam.userType=this.platformList[0].value,this.getUserCountList()},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},handleQuery:function(){this.getUserCountList()}}},h=l,f=(a("58cf"),a("2877")),p=Object(f["a"])(h,i,n,!1,null,"3ab9a1bc",null);e["default"]=p.exports}}]);