1 line
4.5 KiB
JavaScript
1 line
4.5 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4f03d2"],{2:function(t,e){},3:function(t,e){},4:function(t,e){},"702c":function(t,e,a){"use strict";a("ebb6")},"989b":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var n=a("21a6"),i=a.n(n),l=a("1146"),r=a.n(l);function o(t,e,a){try{var n=t.$refs[e].$el,l=n.querySelector(".el-table__fixed");l||(l=n);var o=r.a.utils.table_to_book(l,{raw:!0}),s=r.a.write(o,{bookType:"xlsx",bookSST:!0,type:"array"});i.a.saveAs(new Blob([s],{type:"application/octet-stream"}),"".concat(a,".xlsx"))}catch(c){"undefined"!==typeof console&&console.error(c)}}},a6d5: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",{staticClass:"right_res"},[a("div",[a("div",{staticClass:"app-container",staticStyle:{height:"100%",background:"white"}},[[t.showTable?a("div",[t.tableData.length>0?a("div",[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[a("div",{staticClass:"echartBox_title"}),t._v(" "),a("div",{staticClass:"echartBox_title"},[a("a-button-group",[a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("柱状图")])]),t._v(" "),a("a-button",{attrs:{type:2==t.chartType?"primary":"default",icon:"bar-chart"},nativeOn:{click:function(e){t.chartType=2}}})],2),t._v(" "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"top"}},[a("template",{slot:"title"},[a("span",[t._v("饼状图")])]),t._v(" "),a("a-button",{attrs:{type:3==t.chartType?"primary":"default",icon:"pie-chart"},nativeOn:{click:function(e){t.chartType=3}}})],2)],1)],1)]),t._v(" "),t.g2Show&&2==t.chartType?a("user-attr-bar",{attrs:{"show-label":t.tablelabel,"chart-data":t.tableData}}):t._e(),t._v(" "),t.g2Show&&3==t.chartType?a("user-attr-bar2",{attrs:{"show-label":t.tablelabel,"chart-data":t.tableData}}):t._e()],1):t._e()]):t._e(),t._v(" "),t.showCharts?a("div",[t.tableData.length<=0?a("div",{staticStyle:{background:"white !important",padding:"40px",width:"300px",height:"300px","text-align":"center",margin:"0px auto"}},[a("a-empty",[a("span",{attrs:{slot:"description"},slot:"description"},[t._v(t._s(t.emptyText))])])],1):a("div",{staticStyle:{"margin-top":"20px"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{placeholder:"输入关键字进行过滤",clearable:""},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}}),t._v(" "),t.tableShow?a("page-table",{ref:"pagetable",staticStyle:{padding:"20px"},attrs:{input:t.input,limit:Number(10),"table-list":t.tableData,"table-info":t.tableInfo}},[a("el-table-column",{attrs:{slot:"operate",label:"指标",align:"center",sortable:"",prop:"name"},slot:"operate"}),t._v(" "),a("el-table-column",{attrs:{slot:"operate",label:t.tablelabel,width:"200",align:"center",sortable:"",prop:"value"},slot:"operate"})],1):t._e()],1)]):t._e()]],2)])])},i=[],l=a("989b"),r={name:"RetentionResult",components:{PageTable:function(){return a.e("chunk-b022bae4").then(a.bind(null,"e94a"))},UserAttrBar:function(){return a.e("chunk-235f7b5b").then(a.bind(null,"ea3a"))},UserAttrBar2:function(){return a.e("chunk-6d4a9d41").then(a.bind(null,"7f23"))}},props:{tablelabel:{type:String,default:""},className:{type:String,default:"charts"},emptyText:{type:String,default:"选择完分析条件后,请点击“计算”"},value:{type:Array,default:[]},userAttrRes:{type:Array,default:[]},traceChartsRes:{type:Array,default:[]},showCharts:{type:Boolean,default:!0},showTable:{type:Boolean,default:!0}},data:function(){return{dateShow:!0,input:"",tableHeaderShow:[],groupDataShow:{},g2Show:!0,tableShow:!0,filterDate:this.value,tableInfo:[{slot:"operate"}],chartType:2,showList:[],tableData:[],chartData:[]}},computed:{},watch:{value:{deep:!0,handler:function(){var t=this;this.dateShow=!1,this.$nextTick((function(){t.dateShow=!0}))}}},beforeMount:function(){this.init()},methods:{rewriteNodeName:function(t,e){return"".concat(t,"_").concat(e)},download:function(t){Object(l["a"])(this,"paget
|