webpackJsonp([30],{"5t3x":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),l={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 l=e+"-"+a+"-01",s=e+"-"+a+"-"+r;this.searchFrom.watchTime=[l,s]},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._45)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},s={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[t._v("\n        "+t._s(e.row[r])+"\n      ")]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(l,s,!1,function(t){a("zJjC")},"data-v-65d8f8bc",null);e.default=n.exports},zJjC:function(t,e){}});