chunk-65908a2c.e2b975a9.js 3.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65908a2c"],{"25fe":function(e,t,a){},"7f16":function(e,t,a){"use strict";a("25fe")},eee0:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("search",{on:{onSearch:e.onSearch}}),a("div",{staticClass:"container"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,border:"",size:"mini",stripe:"",height:"calc(100vh - 288px)"}},[a("el-table-column",{attrs:{prop:"fname",label:"帐号名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fname?t.row.fname:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fagentname",label:"商户名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fagentname?t.row.fagentname:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fphonenumber",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fphonenumber?t.row.fphonenumber:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"fsex",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.fsex?t.row.fsex:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"frole",label:"身份/职位"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.frole?t.row.frole:"--"))])]}}])}),a("el-table-column",{attrs:{prop:"flastrequestdate",label:"最近登录时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.flastrequestdate?t.row.flastrequestdate.split(".")[0]:"--"))])]}}])})],1),a("div",{staticStyle:{margin:"20px 0"}},[a("el-pagination",{attrs:{background:"",small:"","current-page":e.currentPage,"page-size":e.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)},r=[],l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex"},[a("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入查询内容",size:"small",clearable:""},on:{clear:e.onSearch},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}}),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:e.onSearch}},[e._v("查询")])],1)},s=[],o={data:function(){return{input:""}},methods:{onSearch:function(){this.$emit("onSearch",this.input)}}},i=o,u=(a("7f16"),a("2877")),c=Object(u["a"])(i,l,s,!1,null,"c693553e",null),p=c.exports,f={components:{search:p},data:function(){return{param:{classname:"enterprise.users.users",method:"query_userList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20,where:{condition:""}}},total:0,list:[],currentPage:0}},methods:{listData:function(){var e=this;this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total,e.currentPage=t.pageNumber}))},handleSizeChange:function(e){this.param.content.pageSize=e,this.listData()},handleCurrentChange:function(e){this.param.content.pageNumber=e,this.listData()},onSearch:function(e){this.param.content.pageNumber=1,this.param.content.where.condition=e,this.listData()}},mounted:function(){this.listData()}},h=f,d=Object(u["a"])(h,n,r,!1,null,null,null);t["default"]=d.exports}}]);