(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9fc2d1c"],{"129d":function(t,e,a){"use strict";var n=a("46fc"),i=a.n(n);i.a},3068:function(t,e,a){"use strict";var n=a("abed"),i=a.n(n);i.a},"46fc":function(t,e,a){},"5f44":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.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"}},[t._v("搜索")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push({path:"/system/addAccount"})}}},[t._v("新增用户")])],1)],1)],1),a("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.list,border:"",height:"450px"}},[a("el-table-column",{attrs:{prop:"name",label:"账号"}}),a("el-table-column",{attrs:{prop:"realname",label:"姓名"}}),a("el-table-column",{attrs:{prop:"ctime",label:"创建时间"}}),a("el-table-column",{attrs:{prop:"zip",width:"200",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){return t.$router.push({path:"/system/addAccount",query:{id:e.row.id}})}}},[t._v("编辑")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{total:t.total},on:{pageChange:t.gopage}})],1)},i=[],s=a("9973"),o={name:"account",components:{Page:s["a"]},data:function(){return{form:{name:"",page_size:2,page: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.getAccountList(e).then((function(e){200==e.status?(t.list=e.data.data.list,t.total=e.data.data.total):t.$message({message:e.message,type:"error"})}))},del:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.delAccount({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))}},created:function(){this.getData()}},r=o,l=(a("3068"),a("4023")),c=Object(l["a"])(r,n,i,!1,null,null,null);e["default"]=c.exports},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}})},i=[],s={data:function(){return{page:1}},props:{total:""},methods:{getData:function(t){this.page=t,this.$emit("pageChange")},handleSizeChange:function(t){this.$emit("pageChange",t)}}},o=s,r=(a("129d"),a("4023")),l=Object(r["a"])(o,n,i,!1,null,null,null);e["a"]=l.exports},abed:function(t,e,a){}}]); //# sourceMappingURL=chunk-b9fc2d1c.f852cf0b.js.map