bi/views/dist/static/js/chunk-789a721a.752b0691.js
2025-05-22 16:27:39 +08:00

1 line
6.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-789a721a"],{"331b":function(t,e,a){"use strict";a("6f2c")},"6f2c":function(t,e,a){},8676:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",height:"100%"}},[a("el-card",{staticStyle:{width:"100%"},attrs:{shadow:"hover"}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"},attrs:{slot:"header"},slot:"header"},[a("span",{staticClass:"echartBox_title",on:{click:t.toRtPage}},[t._v(t._s(t.name)+"(用户属性)")]),t._v(" "),a("div",[a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("拖移报表")])]),t._v(" "),a("el-button",{staticClass:"drageTag",attrs:{type:"warning",icon:"el-icon-rank",circle:""}})],2),t._v(" "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("切换成表格或者图表")])]),t._v(" "),a("el-button",{attrs:{type:"primary",icon:t.totable?"el-icon-s-data":"el-icon-s-grid",circle:""},on:{click:t.changeViewType}})],2),t._v(" "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("刷新")])]),t._v(" "),a("el-button",{attrs:{icon:"el-icon-refresh",circle:""},on:{click:t.go}})],2),t._v(" "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("下载表数据")])]),t._v(" "),a("el-button",{attrs:{type:"success",icon:"el-icon-download",circle:""},on:{click:t.download}})],2)],1)]),t._v(" "),a("a-spin",{attrs:{tip:"计算中...",spinning:t.spinning}},[a("div",{staticClass:"spin-content"},[t.userAttrResShow?a("user-attr-result",{ref:t.getRef,attrs:{tablelabel:t.getTableLabel,"class-name":t.getRef,"show-charts":t.tocharts,"show-table":t.totable,"empty-text":"暂无结果,请调整查询条件","user-attr-res":t.userAttrRes},on:{go:t.go}}):t._e()],1)])],1)],1)},r=[],s=a("2d63"),i=a("c80c"),o=(a("96cf"),a("3b8d")),c=(a("7f7f"),a("94b0")),u={name:"Trace",components:{UserAttrResult:function(){return Promise.all([a.e("chunk-2d3eea4a"),a.e("chunk-2b4f03d2")]).then(a.bind(null,"a6d5"))}},props:{name:{type:String,default:""},data:{type:Object,default:{}},id:{type:String,default:""},filterDate:{type:Array,default:[]}},data:function(){return{userAttrRes:[],spinning:!1,allAttrOptions:[],form:JSON.parse(this.data),tableHeader:[],groupData:[],traceRes:[],userAttrResShow:!0,prevCount:0,tocharts:!0,totable:!1}},computed:{getRef:function(){return"userAttr"+this.id},getTableLabel:function(){var t="";switch(this.form.zhibiaoArr[1]){case"1":t="用户数";break;case"2":t="总和";break;case"3":t="均值";break;case"4":t="人均值";break;case"5":t="中位值";break;case"6":t="最大值";break;case"7":t="最小值";case"8":t="去重值";break}return this.form.zhibiaoArr[0]+"."+t}},watch:{},beforeMount:function(){this.init()},methods:{download:function(){this.$refs[this.getRef].download(this.name)},init:function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getMetaEventList();case 2:return t.next=4,this.go();case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),toRtPage:function(){this.$router.push({path:"/user-analysis/attr/"+this.id})},changeViewType:function(){var t=this;this.tocharts=!this.tocharts,this.totable=!this.totable,this.userAttrResShow=!1,this.$nextTick((function(){t.userAttrResShow=!0}))},getMetaEventList:function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(){var e,a,n,r,o,u;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["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(a=e.data.attributeMap,n={label:"事件",options:[]},a.hasOwnProperty("2")){r=Object(s["a"])(a["2"]);try{for(r.s();!(o=r.n()).done;)u=o.value,n.options.push({value:u.attribute_name,label:""==u.show_name?u.attribute_name:u.show_name})}catch(i){r.e(i)}finally{r.f()}}this.allAttrOptions=n;case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),go:function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(){var e,a,n=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.spinning=!0,this.userAttrResShow=!1,e=this.form,e["appid"]=this.$store.state.baseData.EsConnectID,t.next=6,Object(c["h"])(e);case 6:a=t.sent,0!=a.code?(this.$message({type:"error",offset:60,message:a.msg}),this.userAttrRes=[]):(null==a.data.chartRes&&(a.data.chartRes=[]),null==a.data.tableRes&&(a.data.tableRes=[]),this.userAttrRes=a.data.tableRes),this.spinning=!1,this.$nextTick((function(){n.userAttrResShow=!0}));case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},l=u,p=(a("331b"),a("2877")),h=Object(p["a"])(l,n,r,!1,null,"c63dfb22",null);e["default"]=h.exports},"94b0":function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"e",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"b",(function(){return c})),a.d(e,"f",(function(){return u})),a.d(e,"g",(function(){return l})),a.d(e,"h",(function(){return p})),a.d(e,"a",(function(){return h})),a.d(e,"k",(function(){return d})),a.d(e,"j",(function(){return f})),a.d(e,"i",(function(){return b}));var n=a("b775"),r="/api/analysis/";function s(t){return Object(n["a"])({url:r+"GetConfigs",method:"post",data:t})}function i(t){return Object(n["a"])({url:r+"LoadPropQuotas",method:"post",data:t})}function o(t){return Object(n["a"])({url:r+"GetValues",method:"post",data:t})}function c(t){return Object(n["a"])({url:r+"FunnelList",method:"post",data:t})}function u(t){return Object(n["a"])({url:r+"RetentionList",method:"post",data:t})}function l(t){return Object(n["a"])({url:r+"TraceList",method:"post",data:t})}function p(t){return Object(n["a"])({url:r+"UserAttrList",method:"post",data:t})}function h(t){return Object(n["a"])({url:r+"EventList",method:"post",data:t})}function d(t){return Object(n["a"])({url:r+"UserList",method:"post",data:t})}function f(t){return Object(n["a"])({url:r+"UserEventDetailList",method:"post",data:t})}function b(t){return Object(n["a"])({url:r+"UserEventCountList",method:"post",data:t})}}}]);