bi/views/dist/static/js/chunk-0a18c509.972677dc.js
2025-05-22 16:27:39 +08:00

1 line
9.1 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-0a18c509"],{"3e37":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("el-card",{staticClass:"box-card"},[a("div",{staticStyle:{height:"50px","line-height":"50px",display:"flex","align-items":"center","justify-content":"left"}},[a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("查看最近7日项目内事件或用户属性的数据接收情况对事件进行禁用/启用管理。")])]),t._v(" "),a("span",{staticClass:"title_xwl",staticStyle:{color:"#202d3f"}},[t._v("上报统计 "),a("a-icon",{attrs:{type:"question-circle"}})],1)],2)],1),t._v(" "),a("div",{staticStyle:{height:"60px","line-height":"50px",display:"flex","align-items":"center","justify-content":"space-between","border-bottom":"1px solid #f0f2f5"}},[a("div",[a("date",{attrs:{dates:t.date},on:{changeDate:t.changeDate}})],1),t._v(" "),a("div",[a("a-input-search",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入搜索"},on:{change:t.search},model:{value:t.input,callback:function(e){t.input=e},expression:"input"}})],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.connectLoading,expression:"connectLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.filterList,stripe:""}},[a("el-table-column",{attrs:{prop:"data_name",label:"数据名称",align:"center",width:"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"show_name",label:"显示名",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"received_count",label:"已接收",align:"center",width:"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"succ_count",label:"已入库",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"fail_count",label:"入库失败",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.fail_count?a("a",{staticStyle:{color:"#6bb8ff"},on:{click:function(a){return t.openFailDesc(e.row)}}},[t._v("错误详情")]):t._e()]}}])})],1),t._v(" "),t.pageshow?a("el-pagination",{staticClass:"pagination-container",attrs:{"current-page":t.page,"page-sizes":[10,20,30,50,100,150,200,500,1e3],"page-size":t.limit,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handlePageChange}}):t._e(),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{width:"80%",visible:t.dialogVisible,title:t.failTitleList[0].data_name},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){t.dialogVisible=!1}}},[a("el-card",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.connectLoading,expression:"connectLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.failTitleList,stripe:""}},[a("el-table-column",{attrs:{prop:"start_time",label:"开始时间",align:"center",width:"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"end_time",label:"结束时间",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"received_count",label:"已接收",align:"center",width:"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"succ_count",label:"已入库",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"fail_count",label:"入库失败",align:"center"}})],1)],1),t._v(" "),a("el-card",{staticStyle:{"margin-top":"10px"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.failDescList,stripe:""}},[a("el-table-column",{attrs:{prop:"error_reason",label:"错误原因",align:"center",width:"250"}}),t._v(" "),a("el-table-column",{attrs:{prop:"count",label:"错误条数",align:"center",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"抽样示例",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isFormatData?a("div",[a("json-editor",{staticClass:"req-body",attrs:{"font-size":"15",height:"400",styles:"width: 100%",read:!0,title:"上报数据"},model:{value:e.row.dataFormat,callback:function(a){t.$set(e.row,"dataFormat",a)},expression:"scope.row.dataFormat"}}),t._v(" "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("还原数据")])]),t._v(" "),a("a-button",{staticStyle:{color:"red"},attrs:{type:"link",icon:"eye-invisible"},on:{click:function(a){return t.lookData(e.row.index,!1)}}})],2)],1):a("div",[t._v("\n "+t._s(e.row.report_data)+"\n "),a("a-tooltip",{staticStyle:{cursor:"pointer"},attrs:{placement:"right"}},[a("template",{slot:"title"},[a("span",[t._v("格式化数据")])]),t._v(" "),a("a-button",{attrs:{type:"link",icon:"eye"},on:{click:function(a){return t.lookData(e.row.index,!0)}}})],2)],1)]}}],null,!1,676098186)})],1)],1)],1):t._e()],1)],1)},n=[],r=a("c80c"),s=(a("96cf"),a("3b8d")),l=(a("386d"),a("e817")),o=a("cc06"),c={name:"Track",components:{Date:function(){return a.e("chunk-421c5708").then(a.bind(null,"755a"))},JsonEditor:function(){return Promise.all([a.e("chunk-16372f25"),a.e("chunk-1303a6c7")]).then(a.bind(null,"fa7e"))}},data:function(){return{dialogVisible:!1,input:"",connectLoading:!1,time:null,total:0,limit:100,page:1,pageshow:!0,list:[],date:[],trueList:[],failDescList:[],failTitleList:[]}},computed:{filterList:function(){var t=this.list.slice((this.page-1)*this.limit,this.page*this.limit);return this.refreshPage(),t}},mounted:function(){this.date.push(this.$moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"),this.$moment().endOf("day").format("YYYY-MM-DD HH:mm:ss")),this.search()},methods:{lookData:function(t,e){for(var a in this.list)this.failDescList[a].index==t&&(this.failDescList[a].isFormatData=e)},openFailDesc:function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(e){var a,i,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["d"])({appid:this.$store.state.baseData.EsConnectID,start_time:this.date[0],end_time:this.date[1],data_name:e["data_name"]});case 2:if(a=t.sent,0==a.code){t.next=6;break}return this.$message({offset:60,type:"error",message:a.msg}),t.abrupt("return");case 6:for(i in this.failTitleList=[],e["start_time"]=this.date[0],e["end_time"]=this.date[1],this.failTitleList.push(e),this.failDescList=[],a.data.list)n=a.data.list[i],n["index"]=i,n["isFormatData"]=!1,n["dataFormat"]=JSON.stringify(JSON.parse(n["report_data"]),null,"\t"),this.failDescList.push(n);this.dialogVisible=!0;case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),changeDate:function(t){this.date=t,this.search()},handleSizeChange:function(t){this.limit=t,this.refreshPage()},handlePageChange:function(t){this.page=t,this.refreshPage()},refreshPage:function(){var t=this;this.pageshow=!1,this.total=this.list.length,this.$nextTick((function(){t.pageshow=!0}))},search:function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(){var e,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(this.date.length<2)){t.next=3;break}return this.$message({offset:60,type:"error",message:"请先选择筛选时间"}),t.abrupt("return");case 3:return this.connectLoading=!0,t.next=6,Object(l["h"])({appid:this.$store.state.baseData.EsConnectID,start_time:this.date[0],end_time:this.date[1]});case 6:if(e=t.sent,this.connectLoading=!1,0==e.code){t.next=13;break}return this.$message({offset:60,type:"error",message:e.msg}),t.abrupt("return");case 13:null==e.data.list&&(e.data.list=[]),a=e.data.list,a=Object(o["a"])(a,this.input.trim()),this.total=a.length,this.list=a;case 18:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},u=c,d=(a("56d74"),a("2877")),h=Object(d["a"])(u,i,n,!1,null,"49a432c7",null);e["default"]=h.exports},"497a":function(t,e,a){},"56d74":function(t,e,a){"use strict";a("497a")},cc06:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("4917"),a("ac6a"),a("456d");function i(t,e){var a,i=e.toLowerCase(),n=t;return a=i?n.filter((function(t){return Object.keys(t).some((function(e){return String(t[e]).toLowerCase().match(i)}))})):n,a}},e817:function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"f",(function(){return s})),a.d(e,"e",(function(){return l})),a.d(e,"h",(function(){return o})),a.d(e,"d",(function(){return c})),a.d(e,"c",(function(){return u})),a.d(e,"b",(function(){return d})),a.d(e,"a",(function(){return h}));var i=a("b775"),n="/api/realdata/";function r(t){return Object(i["a"])({url:n+"List",method:"post",data:t})}function s(t){return Object(i["a"])({url:n+"FailDataList",method:"post",data:t})}function l(t){return Object(i["a"])({url:n+"FailDataDesc",method:"post",data:t})}function o(t){return Object(i["a"])({url:n+"ReportCount",method:"post",data:t})}function c(t){return Object(i["a"])({url:n+"EventFailDesc",method:"post",data:t})}function u(t){return Object(i["a"])({url:n+"DelDebugDeviceID",method:"post",data:t})}function d(t){return Object(i["a"])({url:n+"DebugDeviceIDList",method:"post",data:t})}function h(t){return Object(i["a"])({url:n+"AddDebugDeviceID",method:"post",data:t})}}}]);