webpackJsonp([32],{"5t3x":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var s=t+"-"+a+"-01",l=t+"-"+a+"-"+r;this.searchFrom.watchTime=[s,l]},getList:function(){var e=this,t={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(t.start_at=this.searchFrom.watchTime[0],t.end_at=this.searchFrom.watchTime[1]),Object(r._45)(t).then(function(t){e.tableHead=t[0],e.tableData=t.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:e.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:e.searchFrom.watchTime,callback:function(t){e.$set(e.searchFrom,"watchTime",t)},expression:"searchFrom.watchTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},e._l(e.tableHead,function(t,r){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{domProps:{innerHTML:e._s(t.row[r])}})]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(s,l,!1,function(e){a("x9zv")},"data-v-48aceb3e",null);t.default=n.exports},x9zv:function(e,t){}});