bi/views/dist/static/js/chunk-a195d3aa.05cbd9d2.js
2025-05-22 16:27:39 +08:00

1 line
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a195d3aa"],{"61e7":function(t,e,n){},"6a6f":function(t,e,n){"use strict";n("c3b8")},"815e":function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return u})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"p",(function(){return w})),n.d(e,"o",(function(){return g})),n.d(e,"n",(function(){return y}));var a=n("b775"),r="/api/pannel/";function i(t){return Object(a["a"])({url:r+"ReportTableList",method:"post",data:t})}function o(t){return Object(a["a"])({url:r+"DeleteReportTableByID",method:"post",data:t})}function s(t){return Object(a["a"])({url:r+"AddReportTable",method:"post",data:t})}function l(t){return Object(a["a"])({url:r+"FindNameCount",method:"post",data:t})}function c(t){return Object(a["a"])({url:r+"FindRtById",method:"post",data:t})}function u(t){return Object(a["a"])({url:r+"GetPannelList",method:"post",data:t})}function p(t){return Object(a["a"])({url:r+"NewDir",method:"post",data:t})}function d(t){return Object(a["a"])({url:r+"NewPannel",method:"post",data:t})}function f(t){return Object(a["a"])({url:r+"Rename",method:"post",data:t})}function h(t){return Object(a["a"])({url:r+"MovePannel2Dir",method:"post",data:t})}function m(t){return Object(a["a"])({url:r+"DeletePannel",method:"post",data:t})}function b(t){return Object(a["a"])({url:r+"DeleteDir",method:"post",data:t})}function v(t){return Object(a["a"])({url:r+"CopyPannel",method:"post",data:t})}function w(t){return Object(a["a"])({url:r+"UpdatePannelRt",method:"post",data:t})}function g(t){return Object(a["a"])({url:r+"UpdatePannelManager",method:"post",data:t})}function y(t){return Object(a["a"])({url:r+"RtListByAppid",method:"post",data:t})}},"94b0":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return p})),n.d(e,"a",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return m}));var a=n("b775"),r="/api/analysis/";function i(t){return Object(a["a"])({url:r+"GetConfigs",method:"post",data:t})}function o(t){return Object(a["a"])({url:r+"LoadPropQuotas",method:"post",data:t})}function s(t){return Object(a["a"])({url:r+"GetValues",method:"post",data:t})}function l(t){return Object(a["a"])({url:r+"FunnelList",method:"post",data:t})}function c(t){return Object(a["a"])({url:r+"RetentionList",method:"post",data:t})}function u(t){return Object(a["a"])({url:r+"TraceList",method:"post",data:t})}function p(t){return Object(a["a"])({url:r+"UserAttrList",method:"post",data:t})}function d(t){return Object(a["a"])({url:r+"EventList",method:"post",data:t})}function f(t){return Object(a["a"])({url:r+"UserList",method:"post",data:t})}function h(t){return Object(a["a"])({url:r+"UserEventDetailList",method:"post",data:t})}function m(t){return Object(a["a"])({url:r+"UserEventCountList",method:"post",data:t})}},a42f:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[n("div",{staticClass:"content_xwl"},[n("div",{staticClass:"header_xwl",staticStyle:{background:"white"}},[n("div",{staticClass:"root_xwl"},[n("div",{staticClass:"main_xwl"},[n("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"right"}},[n("template",{slot:"title"},[n("span",[t._v("以某段时间做过步骤1的用户为样本查看窗口期内指定步骤下用户的转化情况")])]),t._v(" "),n("span",{staticClass:"title_xwl",staticStyle:{color:"#202d3f"}},[t._v("  漏斗分析 "),n("a-icon",{attrs:{type:"question-circle"}}),t._v(" "),""!=t.reportTableName?[t._v("\n "+t._s(t.reportTableName)+"\n ")]:t._e()],2)],2)],1),t._v(" "),n("div",{staticClass:"actions_xwl"},[n("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v("以页面格式下载全量数据")])]),t._v(" "),n("a-button",{staticClass:"actions_xwl_btn",attrs:{type:"link",icon:"download"},on:{click:t.download}})],2),t._v(" "),n("report-table-list",{attrs:{rt_type:Number(3)}})],1)])]),t._v(" "),n("split-pane",{attrs:{"min-percent":0,"default-percent":22,split:"vertical"},on:{resize:t.onResize}},[n("template",{slot:"paneL"},[n("div",{staticStyle:{height:"100%",width:"100%",display:"inline-block","vertical-align":"top",background:"white"},attrs:{id:"scollL"}},[n("div",{staticStyle:{width:"100%",height:"calc(100% - 140px)","overflow-x":"hidden","overflow-y":"auto"}},[n("div",{staticStyle:{width:"100%","padding-bottom":"8px","border-bottom":"1px solid #f0f2f5"}},[n("div",{staticStyle:{"line-height":"18px","font-weight":"bolder","font-size":"13px",padding:"10px 16px 12px"}},[t._v("\n 漏斗步骤\n ")]),t._v(" "),n("div",{staticClass:"xwl_main"},[n("draggable",{attrs:{handle:".drageTag","chosen-class":"chosen",animation:"1000"},model:{value:t.form.zhibiaoArr,callback:function(e){t.$set(t.form,"zhibiaoArr",e)},expression:"form.zhibiaoArr"}},t._l(t.form.zhibiaoArr,(function(e,a){return n("div",{directives:[{name:"drag",rawName:"v-drag"}]},[n("div",{staticClass:"row___xwl",staticStyle:{padding:"10px"}},[n("el-row",[n("el-col",{attrs:{span:2}},[n("el-tag",{staticClass:"drageTag",attrs:{type:"warning"}},[t._v(t._s(a+1))])],1),t._v(" "),n("el-col",{attrs:{span:18}},[n("el-row",{staticClass:"zhibiao",attrs:{span:15}},[n("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"topLeft"}},[n("template",{slot:"title"},[n("span",[t._v("点击修改指标名称")])]),t._v(" "),n("a-input",{ref:("getFocus"+a).toString(),refInFor:!0,staticClass:"eventNameDisplayInput",attrs:{placeholder:"请输入...",autofocus:"autofocus","allow-clear":""},on:{change:function(e){return t.getFocus1("getFocus"+a)}},model:{value:t.form.zhibiaoArr[a].eventNameDisplay,callback:function(e){t.$set(t.form.zhibiaoArr[a],"eventNameDisplay",e)},expression:"form.zhibiaoArr[index].eventNameDisplay"}})],2)],1),t._v(" "),n("el-row",{staticStyle:{"padding-top":"5px"},attrs:{span:6}},[n("a-select",{staticStyle:{width:"75%"},attrs:{"dropdown-match-select-width":"","show-search":"","default-active-first-option":""},on:{change:function(e){return t.changeEventNameDisplay(a)}},model:{value:t.form.zhibiaoArr[a].eventName,callback:function(e){t.$set(t.form.zhibiaoArr[a],"eventName",e)},expression:"form.zhibiaoArr[index].eventName"}},t._l(t.metaEventList,(function(e,a,r){return n("a-select-option",{key:r,attrs:{value:e.event_name}},[t._v("\n "+t._s(""==e.show_name?e.event_name:e.show_name)+"\n ")])})),1)],1)],1),t._v(" "),n("el-col",{attrs:{span:4}},[n("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v("插入漏斗步骤")])]),t._v(" "),n("a-button",{staticClass:"right_icon",staticStyle:{"margin-left":"4px"},attrs:{type:"link",icon:"copy"},on:{click:function(e){return t.copyZhibiao(a)}}})],2),t._v(" "),a>=2?n("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v("删除指标")])]),t._v(" "),n("a-button",{staticClass:"right_icon",staticStyle:{"margin-left":"4px"},attrs:{type:"link",icon:"delete"},nativeOn:{click:function(e){return t.form.zhibiaoArr.splice(a,1)}}})],2):t._e()],1)],1),t._v(" "),n("div",{staticClass:"filters_xwl"},[n("filter-where",{attrs:{"table-typ":"2","data-type-map":t.attrMap,options:t.eventAttrOptions},model:{value:t.form.zhibiaoArr[a].relation,callback:function(e){t.$set(t.form.zhibiaoArr[a],"relation",e)},expression:"form.zhibiaoArr[index].relation"}})],1)],1)])})),0)],1),t._v(" "),t.form.zhibiaoArr.length<30?n("div",{staticStyle:{"margin-top":"4px",padding:"0 12px"}},[n("span",{staticClass:"footadd___2D4YB",on:{click:function(e){return t.addZhibiao()}}},[n("a-icon",{attrs:{type:"plus"}}),t._v("\n 添加步骤指标\n ")],1)]):t._e()]),t._v(" "),n("div",{staticStyle:{width:"100%","padding-bottom":"8px","border-bottom":"1px solid #f0f2f5"}},[n("div",{staticStyle:{"line-height":"18px","font-weight":"bolder","font-size":"13px",padding:"10px 16px 10px"}},[t._v("\n 全局筛选事件维度\n ")]),t._v(" "),n("filter-where",{attrs:{"data-type-map":t.attrMap,"table-typ":"2",options:t.eventAttrOptions},model:{value:t.form.whereFilter,callback:function(e){t.$set(t.form,"whereFilter",e)},expression:"form.whereFilter"}})],1),t._v(" "),n("div",{staticStyle:{width:"100%","padding-bottom":"8px","border-bottom":"1px solid #f0f2f5"}},[n("div",{staticStyle:{"line-height":"18px","font-weight":"bolder","font-size":"13px",padding:"10px 16px 10px"}},[t._v("\n 全局筛选用户维度\n ")]),t._v(" "),n("filter-where",{attrs:{"data-type-map":t.attrMap,"table-typ":"1",options:t.userAttrOptions},model:{value:t.form.whereFilterByUser,callback:function(e){t.$set(t.form,"whereFilterByUser",e)},expression:"form.whereFilterByUser"}})],1),t._v(" "),n("div",{staticStyle:{width:"100%","padding-bottom":"8px","border-bottom":"1px solid #f0f2f5"}},[n("filter-user-group",{model:{value:t.form.userGroup,callback:function(e){t.$set(t.form,"userGroup",e)},expression:"form.userGroup"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticStyle:{width:"100%","padding-bottom":"8px","border-bottom":"1px solid #f0f2f5"}},[n("filter-group",{attrs:{options:t.eventAttrOptions},model:{value:t.form.groupBy,callback:function(e){t.$set(t.form,"groupBy",e)},expression:"form.groupBy"}})],1),t._v(" "),n("div",{staticStyle:{"line-height":"18px","font-weight":"bolder","font-size":"13px",padding:"10px 16px 12px"}},[t._v("\n 分析窗口期\n ")]),t._v(" "),n("div",{staticStyle:{"padding-left":"8px","margin-left":"10px"}},[n("el-input-number",{staticStyle:{width:"120px"},attrs:{size:"mini","controls-position":"right",min:1},model:{value:t.form.windowTime,callback:function(e){t.$set(t.form,"windowTime",e)},expression:"form.windowTime"}}),t._v(" "),n("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.form.windowTimeFormat,callback:function(e){t.$set(t.form,"windowTimeFormat",e)},expression:"form.windowTimeFormat"}},t._l(t.windowTimeOpt,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),t._v(" "),n("div",{staticStyle:{width:"100%",height:"50px","margin-bottom":"0px","z-index":"10000","border-top":"1px solid #f0f2f5",background:"white",display:"flex","align-items":"center","justify-content":"center"}},[n("add-report-table",{staticStyle:{width:"200px",height:"50px","line-height":"50px",margin:"0px auto"},attrs:{"rt-type":Number(3),name:t.currentReportTable.name,remark:t.currentReportTable.remark,data:this.form},on:{go:t.go}})],1)])]),t._v(" "),n("template",{slot:"paneR"},[n("a-spin",{attrs:{tip:"计算中...",spinning:t.spinning}},[n("div",{staticClass:"spin-content"},[t.funnelResShow?n("funnel-result",{ref:"funnelRes",staticStyle:{padding:"20px"},attrs:{padding:"20px".toString(),"table-header":t.tableHeader,"group-data":t.groupData,"funnel-res":t.funnelRes},on:{go:t.go},model:{value:t.form.date,callback:function(e){t.$set(t.form,"date",e)},expression:"form.date"}}):t._e()],1)])],1)],2)],1)])},r=[],i=(n("7f7f"),n("c5f6"),n("2d63")),o=n("c80c"),s=(n("96cf"),n("3b8d")),l=n("2ef0"),c=n("b76a"),u=n.n(c),p=n("c1df"),d=n.n(p),f=n("94b0"),h=n("815e"),m={name:"Funnel",components:{FilterWhere:function(){return n.e("chunk-454df18e").then(n.bind(null,"0c2e"))},FilterGroup:function(){return n.e("chunk-6f38e150").then(n.bind(null,"87d8"))},FunnelResult:function(){return Promise.all([n.e("chunk-2d3eea4a"),n.e("chunk-1413a208")]).then(n.bind(null,"fd29"))},ReportTableList:function(){return n.e("chunk-0c3cd06a").then(n.bind(null,"4353"))},AddReportTable:function(){return n.e("chunk-74bbab2d").then(n.bind(null,"9327b"))},FilterUserGroup:function(){return n.e("chunk-44b49fce").then(n.bind(null,"c3b4"))},draggable:u.a},data:function(){return{currentReportTable:{name:"",remark:""},spinning:!1,drawerShow:!1,tableHeader:[],groupData:{},funnelRes:[],funnelResShow:!0,prevCount:0,metaEventList:[],userAttr:[],eventAttr:[],windowTimeOpt:[{value:"天",label:"天"},{value:"小时",label:"小时"},{value:"分钟",label:"分钟"},{value:"秒",label:"秒"}],reportTableName:"",form:{zhibiaoArr:[],groupBy:[],whereFilter:{filterType:"COMPOUND",filts:[],relation:"且"},whereFilterByUser:{filterType:"COMPOUND",filts:[],relation:"且"},windowTime:1,windowTimeFormat:"天",date:[d()().startOf("day").subtract(1,"days").format("YYYY-MM-DD"),d()().startOf("day").subtract(1,"days").format("YYYY-MM-DD")]},eventAttrOptions:[],allAttrOptions:[],userAttrOptions:[],attrMap:[],debounceHandleSizeChange:void 0}},beforeMount:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.initReportData();case 2:this.debounceHandleSizeChange=Object(l["debounce"])(this.refreshRes,500);case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mounted:function(){this.init()},methods:{download:function(){this.$refs["funnelRes"].download("全量数据")},refreshRes:function(){var t=this;this.$nextTick((function(){t.funnelResShow=!0}))},onResize:function(){this.funnelResShow=!1,this.debounceHandleSizeChange()},changeEventNameDisplay:function(t){var e,n="",a=Object(i["a"])(this.metaEventList);try{for(a.s();!(e=a.n()).done;){var r=e.value;r.event_name==this.form.zhibiaoArr[t].eventName&&(n=""==r.show_name?r.event_name:r.show_name)}}catch(o){a.e(o)}finally{a.f()}this.form.zhibiaoArr[t].eventNameDisplay=n},initReportData:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.$route.params.id,":id"==e||0==Number(e)){t.next=14;break}return t.next=4,Object(h["g"])({id:Number(e),appid:this.$store.state.baseData.EsConnectID});case 4:if(n=t.sent,0==n.code){t.next=8;break}return this.$message({type:"error",offset:60,message:n.msg}),t.abrupt("return");case 8:this.reportTableName=n.data.name,this.currentReportTable.name=n.data.name,this.currentReportTable.remark=n.data.remark,this.form=JSON.parse(n.data.data),this.form.date=[d()().startOf("day").subtract(1,"days").format("YYYY-MM-DD"),d()().startOf("day").subtract(1,"days").format("YYYY-MM-DD")],this.go();case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),init:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getMetaEventList();case 2:0==this.form.zhibiaoArr.length&&(this.addZhibiao(),this.addZhibiao());case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getMetaEventList:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,n,a,r,s,l,c,u,p,d,h,m,b;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(f["c"])({appid:this.$store.state.baseData.EsConnectID});case 2:if(e=t.sent,0==e.code){t.next=6;break}return this.$message({type:"error",offset:60,message:e.msg}),t.abrupt("return");case 6:if(this.metaEventList=e.data.event_name_list,n=e.data.attributeMap,a=[],r=[],s=[],this.attrMap=[],this.attrMap=n,l={label:"事件",options:[]},c={label:"用户",options:[]},n.hasOwnProperty("2")){u=Object(i["a"])(n["2"]);try{for(u.s();!(p=u.n()).done;)d=p.value,l.options.push({value:d.attribute_name,label:""==d.show_name?d.attribute_name:d.show_name})}catch(o){u.e(o)}finally{u.f()}}if(n.hasOwnProperty("1")){h=Object(i["a"])(n["1"]);try{for(h.s();!(m=h.n()).done;)b=m.value,c.options.push({value:b.attribute_name,label:""==b.show_name?b.attribute_name:b.show_name})}catch(o){h.e(o)}finally{h.f()}}r.push(l),s.push(c),a.push(l,c),this.userAttrOptions=s,this.eventAttrOptions=r,this.allAttrOptions=a;case 23:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),moment:d.a,addZhibiao:function(){this.form.zhibiaoArr.length>=30||this.form.zhibiaoArr.push({eventName:this.metaEventList[0].event_name,eventNameDisplay:""!=this.metaEventList[0].show_name?this.metaEventList[0].show_name:this.metaEventList[0].event_name,relation:{filterType:"COMPOUND",filts:[],relation:"且"}})},copyZhibiao:function(t){if(!(this.form.zhibiaoArr.length>=30)){var e=JSON.parse(JSON.stringify(this.form.zhibiaoArr[t]));this.form.zhibiaoArr.splice(t,0,e)}},getFocus1:function(t){this.$nextTick((function(){this.$refs[t][0].focus()}))},getWashData:function(t){var e=[];for(var n in null!=t&&Math.max.apply(Math,t.map((function(t){return t.count}))),this.prevCount=0,this.form.zhibiaoArr){var a=Number(n)+1,r={level_desc:this.form.zhibiaoArr[n].eventNameDisplay,level_index:a,showTitle:"步骤".concat(a,":").concat(this.form.zhibiaoArr[n].eventNameDisplay),count:0,conversionScale:0,washScale:100,lostScale:100,succScale:0,max:100};if(null!=t){var o,s=Object(i["a"])(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.level_index!=a||(1==a?(r.ui=l.ui,r.count=l.count,r.succScale=100,r.lostScale=0):(r.ui=l.ui,r.count=l.count,r.succScale=(100*Number(l.count/this.prevCount)).toFixed(2),r.lostScale=(100-r.succScale).toFixed(2)),this.prevCount=l.count)}}catch(u){s.e(u)}finally{s.f()}}e.push(r)}for(var c in e)e[c].conversionScale=(100*Number(e[c].count/e[0].count)).toFixed(2),e[c].washScale=(100-parseFloat(e[c].conversionScale)).toFixed(2),c!=Number(e.length)-1&&(e[c].succScale=e[Number(c)+1].succScale,e[c].lostScale=e[Number(c)+1].lostScale);return e},getGroupByLable:function(t){var e,n=Object(i["a"])(this.allAttrOptions[0].options);try{for(n.s();!(e=n.n()).done;){var a=e.value;if(a.value==t)return a.label}}catch(r){n.e(r)}finally{n.f()}},go:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,n,a,r,s,l,c=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.spinning=!0,this.funnelResShow=!1,e=this.form,e["appid"]=this.$store.state.baseData.EsConnectID,t.next=6,Object(f["b"])(e);case 6:if(n=t.sent,0==n.code){t.next=14;break}return this.$message({type:"error",offset:60,message:n.msg}),this.funnelRes=[],this.groupData=[],this.spinning=!1,this.$nextTick((function(){c.funnelResShow=!0})),t.abrupt("return");case 14:for(a in this.funnelRes=this.getWashData(n.data.groupData["总体"]),n.data.groupData)n.data.groupData[a]=this.getWashData(n.data.groupData[a]);this.groupData=n.data.groupData,this.tableHeader=[this.form.groupBy.length>0?this.getGroupByLable(this.form.groupBy[0]):"总体"],r=Object(i["a"])(this.funnelRes);try{for(r.s();!(s=r.n()).done;)l=s.value,this.tableHeader.push(l.showTitle)}catch(o){r.e(o)}finally{r.f()}this.spinning=!1,this.$nextTick((function(){c.funnelResShow=!0}));case 22:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},b=m,v=(n("ff57"),n("6a6f"),n("2877")),w=Object(v["a"])(b,a,r,!1,null,"1462cf81",null);e["default"]=w.exports},c3b8:function(t,e,n){},ff57:function(t,e,n){"use strict";n("61e7")}}]);