x-php-Admin/dist/static/js/760.bc91c4a1.js

1 line
8.0 KiB
JavaScript
Raw Normal View History

2023-10-20 07:02:57 +00:00
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[760],{5760:function(e,l,a){a.r(l),a.d(l,{default:function(){return f}});var i=a(6808);const t={class:"left-panel"},s={class:"right-panel"},o={class:"right-panel-search"},n=["onClick"],d={class:"input-mask"},r=["value"];function c(e,l,a,c,u,p){const m=(0,i.up)("el-input"),h=(0,i.up)("el-header"),w=(0,i.up)("x-menu-item"),f=(0,i.up)("el-main"),g=(0,i.up)("el-container"),k=(0,i.up)("el-aside"),b=(0,i.up)("el-button"),y=(0,i.up)("el-table-column"),v=(0,i.up)("el-avatar"),C=(0,i.up)("el-popconfirm"),_=(0,i.up)("el-button-group"),W=(0,i.up)("xTable"),x=(0,i.up)("save-dialog"),$=(0,i.up)("x-user"),D=(0,i.up)("el-drawer"),T=(0,i.Q2)("loading");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i.wy)(((0,i.wg)(),(0,i.j4)(k,{width:"180px",class:"hidden-sm-and-down"},{default:(0,i.w5)((()=>[(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i.Wm)(m,{placeholder:"输入关键字进行过滤",modelValue:u.groupFilterText,"onUpdate:modelValue":l[0]||(l[0]=e=>u.groupFilterText=e),clearable:""},null,8,["modelValue"])])),_:1}),(0,i.Wm)(f,{class:"nopadding"},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.leftSides,((l,a)=>((0,i.wg)(),(0,i.j4)(w,{key:a,label:l.name,num:l.num,"icon-class":l.iconClass,"icon-color":l.color,select:e.leftType==l.infoType,onClick:a=>e.sideClick(l)},null,8,["label","num","icon-class","icon-color","select","onClick"])))),128))])),_:1})])),_:1})])),_:1})),[[T,u.showGrouploading]]),(0,i.Wm)(g,null,{default:(0,i.w5)((()=>[(0,i.Wm)(h,null,{default:(0,i.w5)((()=>[(0,i._)("div",t,[(0,i.Wm)(b,{type:"primary",icon:"el-icon-plus",onClick:p.add},null,8,["onClick"]),(0,i.Wm)(b,{type:"danger",plain:"",icon:"el-icon-delete",disabled:0==u.selection.length,onClick:p.batch_del},null,8,["disabled","onClick"]),(0,i.Wm)(b,{type:"primary",plain:"",disabled:0==u.selection.length},{default:(0,i.w5)((()=>[(0,i.Uk)("分配角色")])),_:1},8,["disabled"]),(0,i.Wm)(b,{type:"primary",plain:"",disabled:0==u.selection.length},{default:(0,i.w5)((()=>[(0,i.Uk)("密码重置")])),_:1},8,["disabled"])]),(0,i._)("div",s,[(0,i._)("div",o,[(0,i.Wm)(m,{modelValue:u.search.name,"onUpdate:modelValue":l[1]||(l[1]=e=>u.search.name=e),placeholder:"登录账号 / 姓名",clearable:""},null,8,["modelValue"]),(0,i.Wm)(b,{type:"primary",icon:"el-icon-search",onClick:p.upsearch},null,8,["onClick"])])])])),_:1}),(0,i.Wm)(f,{class:"nopadding"},{default:(0,i.w5)((()=>[(0,i.Wm)(W,{ref:"table",onSelectionChange:p.selectionChange,api:u.userlistApi,stripe:"",remoteSort:"",remoteFilter:""},{default:(0,i.w5)((()=>[(0,i.Wm)(y,{type:"selection",width:"50"}),(0,i.Wm)(y,{label:"UID",prop:"uid",width:"80",sortable:"custom"}),(0,i.Wm)(y,{label:"头像",width:"200","column-key":"filterAvatar",filters:[{text:"已上传",value:"1"},{text:"未上传",value:"0"}]},{default:(0,i.w5)((e=>[(0,i._)("div",{class:"xavatar",onClick:l=>p.getUser(e.row)},[(0,i.Wm)(v,{src:e.row.avatar,size:"small"},{default:(0,i.w5)((()=>[(0,i.Uk)("空")])),_:2},1032,["src"]),(0,i._)("label",d,[(0,i._)("input",{class:"el-input__inner",type:"text",readonly:"",value:e.row.nickname||e.row.username},null,8,r)])],8,n)])),_:1}),(0,i.Wm)(y,{label:"所属角色",prop:"groupName",width:"200",sortable:"custom"}),(0,i.Wm)(y,{label:"加入时间",prop:"date",width:"170",sortable:"regdate"}),(0,i.Wm)(y,{label:"操作",fixed:"right",align:"right",width:"160"},{default:(0,i.w5)((e=>[(0,i.Wm)(_,null,{default:(0,i.w5)((()=>[(0,i.Wm)(b,{text:"",type:"primary",size:"small",onClick:l=>p.table_show(e.row,e.$index)},{default:(0,i.w5)((()=>[(0,i.Uk)("查看")])),_:2},1032,["onClick"]),(0,i.Wm)(b,{text:"",type:"primary",size:"small",onClick:l=>p.table_edit(e.row,e.$index)},{default:(0,i.w5)((()=>[(0,i.Uk)("编辑")])),_:2},1032,["onClick"]),(0,i.Wm)(C,{title:"确定删除吗?",onConfirm:l=>p.table_del(e.row,e.$index)},{reference:(0,i.w5)((()=>[(0,i.Wm)(b,{text:"",type:"primary",size:"small"},{default:(0,i.w5)((()=>[(0,i.Uk)("删除")])),_:1})])),_:2},1032,["