35.eea85b281b25abc4940d.js 5.83 KB
webpackJsonp([35],{I7Fz:function(t,e,a){var s=a("Mop+");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("48dd41c4",s,!1,{})},"Mop+":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.sms[data-v-0aeea5c0] {\n  padding: 20px 0;\n}\n.avatar[data-v-0aeea5c0] {\n  width: 50px;\n  min-width: 50px;\n  height: 50px;\n  border-radius: 50%;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/smsRecord/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.sms[data-v-0aeea5c0] {\n  padding: 20px 0;\n}\n.avatar[data-v-0aeea5c0] {\n  width: 50px;\n  min-width: 50px;\n  height: 50px;\n  border-radius: 50%;\n}\n"],sourceRoot:""}])},RmjZ:function(t,e,a){var s=a("weq/");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("44c2d6a3",s,!1,{})},"qjS+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("kmJW"),n=a("CCn6"),o={name:"smsRecord",components:{page:s.a},data:function(){return{nowPage:1,total:0,limit:10,useTypeList:[{status:0,value:"发送成功"},{status:1,value:"发送失败"}],TypeList:[{status:1,value:"注册验证码"}],searchFrom:{type:"",mobile:"",status:"-1"},list:[]}},filters:{filterStatus:function(t){return 0===t?"发送成功":"发送失败"}},mounted:function(){this.getList()},methods:{onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.type&&(e.type=this.searchFrom.type),"-1"!==this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(n._85)(e).then(function(e){t.total=e.total,t.list=e.list?e.list:[]})}}},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sms"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.searchFrom.type,callback:function(e){t.$set(t.searchFrom,"type",e)},expression:"searchFrom.type"}},t._l(t.TypeList,function(t){return a("el-option",{key:t.status,attrs:{label:t.value,value:t.status}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"短信手机号"}},[a("el-input",{on:{change:t.getList},model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":t.getList},model:{value:t.searchFrom.status,callback:function(e){t.$set(t.searchFrom,"status",e)},expression:"searchFrom.status"}},[a("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"发送成功",name:"0"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"发送失败",name:"1"}})],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_id?a("div",[a("img",{staticClass:"avatar",attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+") "),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n        ")]):t._e(),t._v(" "),e.row.user_id?t._e():a("div",[t._v("\n            未绑定用户信息\n        ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"短信手机号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sms_code",label:"短信验证码"}}),t._v(" "),a("el-table-column",{attrs:{label:"发送结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?a("div",[t._v("\n          "+t._s(t._f("filterStatus")(e.row.status))+"\n        ")]):t._e(),t._v(" "),0!=e.row.status?a("div",[t._v("\n          "+t._s(t._f("filterStatus")(e.row.status))+" / "+t._s(e.row.result)+"\n        ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"发送时间",sortable:""}})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},l=i;var c=!1;var m=a("VU/8")(o,l,!1,function(t){c||(a("I7Fz"),a("RmjZ"))},"data-v-0aeea5c0",null);m.options.__file="src\\components\\smsRecord\\index.vue";e.default=m.exports},"weq/":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.f-c >.cell div{\n  display: -webkit-box !important;\n  display: -ms-flexbox !important;\n  display: flex !important;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-flow: row;\n          flex-flow: row;\n  -webkit-box-pack: start;\n      -ms-flex-pack: start;\n          justify-content: flex-start;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/smsRecord/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c >.cell div{\n  display: -webkit-box !important;\n  display: -ms-flexbox !important;\n  display: flex !important;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n      -ms-flex-flow: row;\n          flex-flow: row;\n  -webkit-box-pack: start;\n      -ms-flex-pack: start;\n          justify-content: flex-start;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n"],sourceRoot:""}])}});