webpackJsonp([48],{jUox:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t("woOf"),n=t.n(i),r=t("a2Vx"),s=t("u6qo"),l={name:"AiRecord",props:{tableData:Object},mixins:[r.a,s.a],data:function(){return{search:{planName:"",aiStartTime:"",aiEndTime:""}}},methods:{change:function(){var e=this.tableData,a=e.currentPage,t=e.pageSize;this.search.aiStartTime=this.time?"string "==typeof this.time[0]?this.time[0]:this.dateformat(new Date(this.time[0]),"yyyy-MM-dd"):null,this.search.aiEndTime=this.time?"string "==typeof this.time[0]?this.time[1]:this.dateformat(new Date(this.time[1]),"yyyy-MM-dd"):null,this.$emit("changeSearch",n()({pageNum:a,pageSize:t},this.search))}}},o={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"marketing-message"},[t("div",{staticClass:"search"},[t("el-input",{staticClass:"w256",attrs:{placeholder:"请输入活动名称",type:"text","prefix-icon":"el-icon-search",clearable:""},on:{change:e.change},model:{value:e.search.planName,callback:function(a){e.$set(e.search,"planName",a)},expression:"search.planName"}}),e._v(" "),t("el-date-picker",{staticClass:"w256 ml10",attrs:{clearable:!1,"value-format":"yyyy-MM-dd",pickerOptions:e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.change},model:{value:e.time,callback:function(a){e.time=a},expression:"time"}}),e._v(" "),t("span",{staticClass:"search-tip ml10"},[e._v("同一客户同时外呼成功并发送短信营销次数算作两次")])],1),e._v(" "),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableData.loading,expression:"tableData.loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,"tooltip-effect":"dark"}},e._l(e.tableData.tableHeader,function(a,i){return t("el-table-column",{key:i,attrs:{prop:a.prop,"min-width":a.minWidth,label:a.label,fixed:a.fixed,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.row;return[a.formatter?t("span",{domProps:{innerHTML:e._s(a.formatter(n))}}):t("span",[e._v(e._s(n[a.prop]||"--"))])]}}])})}),1),e._v(" "),e.tableData.total>0?t("dm-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{background:"","current-page":e.tableData.currentPage,"page-sizes":e.tableData.pageSizeList,"page-size":e.tableData.pageSize,layout:"total, sizes, prev, pager, next",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)},staticRenderFns:[]};var c=t("VU/8")(l,o,!1,function(e){t("k8ci")},"data-v-596a0fa4",null);a.default=c.exports},k8ci:function(e,a){}});