(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13635f7c"],{"492a":function(t,e,i){},"5d8e":function(t,e,i){"use strict";i("492a")},8579:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pre-setting"},[e("CommonTable",{ref:"xTable1",attrs:{showCheckbox:!0,showSeq:!1,titles:t.titles,tableData:t.tableData,filterConfig:t.filterConfig,optButton:t.optButton},on:{optClick:t.optClick},scopedSlots:t._u([{key:"deleteItem",fn:function(i){var a=i.row;return[e("a-popconfirm",{attrs:{placement:"topRight"},on:{confirm:function(e){return t.deleteUser(a)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("确定删除当前用户吗?")]),e("a-button",{staticStyle:{padding:"0",border:"0"},attrs:{type:"link"}},[t._v("删除")])],1)]}},{key:"enableItem",fn:function(i){var a=i.row;return[e("a-popconfirm",{attrs:{placement:"topRight"},on:{confirm:function(e){return t.toggleState(a)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("确定"+t._s(a.state&&0==a.state.key?"启用":"停用")+"当前用户吗?")]),e("a-button",{staticStyle:{padding:"0",border:"0"},attrs:{type:"link"}},[t._v(" "+t._s(a.state&&0==a.state.key?"启用":"停用")+" ")])],1)]}}])},[e("template",{slot:"extraBtns"},[e("a-button",{attrs:{type:"primary"},on:{click:t.addNew}},[t._v("新增")]),e("a-dropdown",[e("a-button",[t._v("批量操作")]),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",{on:{click:function(e){return t.dropdownOpt("0")}}},[t._v("停用")]),e("a-menu-item",{on:{click:function(e){return t.dropdownOpt("1")}}},[t._v("启用")]),e("a-menu-item",{on:{click:function(e){return t.dropdownOpt("2")}}},[t._v("删除")])],1)],1)],1)],2),e("UserDetail",{attrs:{detailId:t.detailId,show:t.showDetail,detailTitle:t.detailTitle,detailDisabled:t.detailDisabled},on:{close:t.closeDetail}})],1)},n=[],l=i("ea13"),o=i("4f14"),s={components:{CommonTable:l["a"],UserDetail:o["a"]},name:"sysManagerUser",data:function(){return{optButton:[{id:"checkDetail",name:"详情"},{id:"editDetail",name:"编辑"},{id:"deleteItem",name:"删除"},{id:"enableItem",name:"启用"}],filterConfig:[{label:"姓名",field:"name",type:"input"},{label:"别名",field:"other_name",type:"input"},{label:"手机号码",field:"phone",type:"input"}],titles:[{field:"name",title:"姓名",width:100,fixed:!0},{field:"other_name",title:"别名",width:100},{field:"phone",title:"手机号码",width:100},{field:"account",title:"登录用户名",width:100},{field:"birthday",title:"生日",width:100},{field:"sexy",title:"性别",width:100}],tableData:[{name:"破军",other_name:"小杨",phone:"18888888888",account:"admin",password:"123456",birthday:"2023-08-02",sexy:"0",state:{key:1,name:"已停用"}}],detailId:null,showDetail:!1,detailTitle:"",detailDisabled:!1}},methods:{optClick:function(t,e){this.detailId=t.id,this.detailTitle="editDetail"==e?"用户编辑":"详情查看",this.detailDisabled="editDetail"!=e,this.showDetail=!0},deleteUser:function(){this.$message.success("点击删除")},toggleState:function(){this.$message.success("切换用户状态")},closeDetail:function(){this.showDetail=!1,this.detailId=null},addNew:function(){this.detailTitle="新增用户",this.detailDisabled=!1,this.showDetail=!0},dropdownOpt:function(){var t=this.$refs.xTable1.getCheckboxRecords();t.length>0?this.$message.success("等一个接口"):this.$message.warning("请先选择数据！")}}},d=s,r=(i("5d8e"),i("2877")),c=Object(r["a"])(d,a,n,!1,null,"ef8a991c",null);e["default"]=c.exports}}]);