| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[90],{794:function(t,e,n){"use strict";n.r(e);var r=n(6),l=(n(30),{data:function(){return{list:[],page:1,total:0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/uapi/send/list");case 2:(n=e.sent)&&1===n.status&&(t.list=n.data.list||[],t.total=1*n.data.total);case 4:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page=t,this.getList()},add:function(){return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}}),o=n(4),component=Object(o.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("el-button",{staticStyle:{"margin-top":"15px","margin-right":"30px",float:"left"},attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/main/send_add",query:{id:0}})}}},[t._v("添加推送")]),t._v(" "),e("div",{staticStyle:{clear:"both"}}),t._v(" "),e("div",{staticStyle:{"margin-bottom":"15px"}}),t._v(" "),e("div",[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:""}},[e("el-table-column",{attrs:{prop:"uid",label:"用户"}}),t._v(" "),e("el-table-column",{attrs:{prop:"title",label:"标题"}}),t._v(" "),e("el-table-column",{attrs:{prop:"order",label:"内容"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.send_status?e("span",[t._v("未推送")]):e("span",{staticStyle:{color:"red"}},[t._v("已推送")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"sendtime",label:"推送时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"短信推送"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.sms?e("span",[t._v("否")]):e("span",{staticStyle:{color:"red"}},[t._v("是")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"邮件推送"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.email?e("span",[t._v("否")]):e("span",{staticStyle:{color:"red"}},[t._v("是")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"公众号推送"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.gzh?e("span",[t._v("否")]):e("span",{staticStyle:{color:"red"}},[t._v("是")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"站内推送"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.kezhan?e("span",[t._v("否")]):e("span",{staticStyle:{color:"red"}},[t._v("是")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"addtime",label:"添加时间"}})],1)],1),t._v(" "),e("div",{staticStyle:{"padding-top":"5px"}},[e("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"total, prev, pager, next","page-size":20,total:t.total,"current-page":t.page},on:{"update:currentPage":function(e){t.page=e},"update:current-page":function(e){t.page=e},"current-change":t.handleCurrentChange}})],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
|