webpackJsonp([39],{"5t3x":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var s=e+"-"+a+"-01",l=e+"-"+a+"-"+r;this.searchFrom.watchTime=[s,l]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._56)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.row[r])}})]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(s,l,!1,function(t){a("rRcd")},"data-v-162158ea",null);e.default=n.exports},rRcd:function(t,e){}});