bi/views/dist/static/js/chunk-4a15b496.ca93ea58.js

1 line
6.6 KiB
JavaScript
Raw Normal View History

2025-05-22 16:27:39 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a15b496"],{"1eda":function(t,e,a){"use strict";a("529b")},"520f":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.traceResShow?a("trace-result",{ref:t.getRef,attrs:{"class-name":t.getRef,"show-charts":t.tocharts,"show-table":t.totable,"empty-text":"暂无结果,请调整查询条件","trace-charts-res":t.traceChartsRes,"trace-table-res":t.traceTableRes},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)],1)},r=[],s=a("2d63"),i=a("c80c"),o=(a("96cf"),a("3b8d")),c=(a("7f7f"),a("94b0")),u=a("c1df"),l=a.n(u),h={name:"Trace",components:{TraceResult:function(){return Promise.all([a.e("chunk-2d3eea4a"),a.e("chunk-1e044625")]).then(a.bind(null,"7237"))}},props:{name:{type:String,default:""},data:{type:Object,default:{}},id:{type:String,default:""},filterDate:{type:Array,default:[]}},data:function(){return{traceChartsRes:[],traceTableRes:[],spinning:!1,allAttrOptions:[],form:JSON.parse(this.data),tableHeader:[],groupData:[],traceRes:[],traceResShow:!0,prevCount:0,tocharts:!0,totable:!1}},computed:{getRef:function(){return"traceRes"+this.id}},watch:{filterDate:{immediate:!0,handler:function(){this.filterDate.length>0&&(this.form.date=this.filterDate,Vue.set(this.form,"date",this.filterDate),this.go())}}},beforeMount:function(){0==this.filterDate.length&&(this.form.date=[l()().startOf("day").subtract(1,"days").format("YYYY-MM-DD"),l()().startOf("day").subtract(1,"days").format("YYYY-MM-DD")]),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:"/behavior-analysis/trace/"+this.id})},changeViewType:function(){var t=this;this.tocharts=!this.tocharts,this.totable=!this.totable,this.traceResShow=!1,this.$nextTick((function(){t.traceResShow=!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}re