webpackJsonp([70],{YQXN:function(t,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=i("/p6h"),s=i("eaYI"),n=i("P9l9"),l=i("ckKa"),c=i("Ch4/"),o={name:"act-code-detail-statistics",components:{dataDetail:e.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[l.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0],endTime:t.dateDefault[1],type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var i=a.data;if(t.loading=!1,0==i.code)return((i.result||{}).dateList||[]).map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=i.result||{});c.a.errorMsg(i)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},d={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-detail-wrap"},[i("div",[i("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),i("div",{staticClass:"flex"},[i("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming color-1890ff"}),t._v(" "),i("div",{staticClass:"color-1890ff font-14 p-l-6",on:{click:function(a){return t.explain("http://baidu.com")}}},[t._v("指标说明")])])]),t._v(" "),i("ul",{staticClass:"flex"},[i("li",{staticClass:"data-total-cell m-r-22"},[i("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),i("div",{staticClass:"m-l-16"},[i("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),i("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),i("li",{staticClass:"data-total-cell "},[i("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),i("div",{staticClass:"m-l-16"},[i("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),i("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),i("div",{staticClass:"flex justify-end"},[i("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,e){return i("ul",{key:a.key,staticClass:"datebox"},[i("li",{staticClass:"dateLisBox",class:t.dateKey==e?"activeClass":"noActive",on:{click:function(a){return t.btnChange(e)}}},[t._v(t._s(a.value))])])}),t._v(" "),i("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd"},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),i("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),i("div",[i("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),i("div",{staticClass:"flex"},[i("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming color-1890ff"}),t._v(" "),i("div",{staticClass:"color-1890ff font-14 p-l-6",on:{click:function(a){return t.explain("http://baidu.com")}}},[t._v("指标说明")])])]),t._v(" "),i("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=i("VU/8")(o,d,!1,function(t){i("zhEJ")},"data-v-7f7d8d5c",null);a.default=r.exports},zhEJ:function(t,a){}});