"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[24720],{24720:function(t,e,a){a.r(e),a.d(e,{default:function(){return u}});var l=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{background:"white"}},[e("el-form",{ref:"form",staticClass:"g-pa-md",attrs:{inline:!0,model:t.form,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"统计日期"}},[e("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:t.form.statDate,callback:function(e){t.$set(t.form,"statDate",e)},expression:"form.statDate"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSearch()}}},[t._v("查询")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"row-key":"id",data:t.dataSource.records}},[e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"today",label:"日期"}}),e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"orderCount",label:"订单数"}}),e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"blacklistCount",label:"黑名单拦截数"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(a.row.blacklistCount||0)+" "),e("div",[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.showDetailDialog(a.row)}}},[t._v("详情")])],1)]}}])}),e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"riskCount",label:"自由风控拦截数"}}),e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"tripartiteCount",label:"三方风控拦截数"}})],1),e("el-dialog",{attrs:{title:"黑名单原因统计",visible:t.detailDialog,width:"30%","before-close":t.hiddenDetailDialog},on:{"update:visible":function(e){t.detailDialog=e}}},[e("div",[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading1,expression:"loading1"}],staticStyle:{width:"100%"},attrs:{"row-key":"id",data:t.dataSource1.records}},[e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"type",label:"类型"}}),e("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"count",label:"数量"}})],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.hiddenDetailDialog}},[t._v("关闭")])],1)])],1)},r=[],o=a(17422),i=a.n(o),n={data(){return{form:{statDate:i()().format("YYYY-MM-DD HH:mm:ss")},loading:!1,dataSource:{records:[]},detailDialog:!1,loading1:!1,dataSource1:{records:[]}}},mounted(){this.onSearch()},methods:{async onSearch(){this.loading=!0;const t={...this.handleParams()},e=await this.$store.dispatch({type:"riskControlCenter/interceptStat",payload:t});e&&(this.dataSource.records=e),this.loading=!1},handleParams(){const t={...this.form},{statDate:e}=t;return e&&(t.startDate=e,t.endDate=i()(e).hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss"),delete t.statDate),t},async showDetailDialog(t){this.detailDialog=!0,this.loading1=!0;const e={today:t.today},a=await this.$store.dispatch({type:"riskControlCenter/interceptDetail",payload:e});a&&(this.dataSource1.records=a),this.loading1=!1},hiddenDetailDialog(){this.detailDialog=!1}}},s=n,d=a(81656),c=(0,d.A)(s,l,r,!1,null,null,null),u=c.exports}}]);