12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0573e67a"],{"0b74":function(t,e,a){"use strict";var n=a("79c9"),l=a.n(n);l.a},"129d":function(t,e,a){"use strict";var n=a("46fc"),l=a.n(n);l.a},"46fc":function(t,e,a){},"79c9":function(t,e,a){},9973:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-pagination",{attrs:{background:"","page-size":20,"page-sizes":[20,30,40,50,60,70,80,90,100],layout:"sizes,total,prev, pager, next",total:t.total},on:{"current-change":t.getData,"size-change":t.handleSizeChange}})},l=[],o={data:function(){return{page:1}},props:{total:""},methods:{getData:function(t){this.page=t,this.$emit("pageChange")},handleSizeChange:function(t){this.$emit("pageChange",t)}}},r=o,i=(a("129d"),a("4023")),s=Object(i["a"])(r,n,l,!1,null,null,null);e["a"]=s.exports},dab6:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"apply"},[a("p",[t._v("用户管理 > 用户列表")]),a("div",{staticClass:"filter"},[a("el-form",{attrs:{"label-width":"60px",inline:!0,size:"small"}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{attrs:{placeholder:"昵称"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"姓名"}},[a("el-input",{attrs:{placeholder:"姓名"},model:{value:t.form.realname,callback:function(e){t.$set(t.form,"realname",e)},expression:"form.realname"}})],1),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"身份证"}},[a("el-input",{attrs:{placeholder:"身份证"},model:{value:t.form.idno,callback:function(e){t.$set(t.form,"idno",e)},expression:"form.idno"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getData}},[t._v("搜索")])],1)],1)],1),a("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",height:"65vh"}},[a("el-table-column",{attrs:{prop:"avatar",label:"头像"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{width:"50",src:t.row.avatar,alt:""}})]}}])}),a("el-table-column",{attrs:{prop:"nickname",width:"150px",label:"昵称"}}),a("el-table-column",{attrs:{prop:"openid",width:"200px",label:"openid"}}),a("el-table-column",{attrs:{prop:"verify",width:"150px",label:"实名认证"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.userinfo?a("el-tag",{attrs:{size:"mini",type:"success"}},[t._v("已认证")]):a("el-tag",{attrs:{size:"mini",type:"info"}},[t._v("未认证")]),t._v("\n \n "),e.row.userinfo?a("el-tag",{attrs:{size:"mini",effect:"dark"},on:{click:function(a){return t.$router.push({path:"/user/detail",query:{id:e.row.id}})}}},[t._v("查看")]):t._e()]}}])}),a("el-table-column",{attrs:{prop:"userinfo.name",label:"姓名"}}),a("el-table-column",{attrs:{prop:"userinfo.phone",width:"130px",label:"手机号"}}),a("el-table-column",{attrs:{width:"180px",prop:"userinfo.idno",label:"身份证号"}}),a("el-table-column",{attrs:{prop:"ctime",width:"200px",label:"注册时间"}})],1),a("Page",{ref:"pageButton",attrs:{total:t.total},on:{pageChange:t.gopage}})],1)},l=[],o=a("9973"),r={components:{Page:o["a"]},data:function(){return{form:{name:"",page:1,page_size:20},activeName:"1",total:1,list:[]}},methods:{gopage:function(t){t&&(this.form.page_size=t),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var t=this,e=this.form;this.$api.getUserList(e).then((function(e){var a=e.data.data.list;t.total=e.data.data.total;for(var n=0;n<a.length;n++)a[n].userinfo=JSON.parse(a[n].userinfo);t.list=a,console.log(a)}))}},created:function(){this.getData()}},i=r,s=(a("0b74"),a("4023")),c=Object(s["a"])(i,n,l,!1,null,null,null);e["default"]=c.exports}}]);
- //# sourceMappingURL=chunk-0573e67a.001b8611.js.map
|