x-php-Admin/dist/static/js/649.f5b65530.js

1 line
8.1 KiB
JavaScript
Raw Normal View History

2023-10-13 08:38:45 +00:00
"use strict";(self["webpackChunkX_PHP_Admin"]=self["webpackChunkX_PHP_Admin"]||[]).push([[649],{9649:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var s=l(6808);const a={class:"left-panel"},i=(0,s._)("div",{class:"image-slot"}," 无图 ",-1),r=["value"];function o(e,t,l,o,n,u){const d=(0,s.up)("x-select-filter"),c=(0,s.up)("el-card"),p=(0,s.up)("el-button"),h=(0,s.up)("el-header"),y=(0,s.up)("el-table-column"),g=(0,s.up)("x-status-indicator"),m=(0,s.up)("el-image"),w=(0,s.up)("el-badge"),f=(0,s.up)("el-popconfirm"),v=(0,s.up)("el-button-group"),k=(0,s.up)("x-table"),_=(0,s.up)("el-main"),b=(0,s.up)("el-container"),x=(0,s.up)("save-dialog"),D=(0,s.Q2)("auths");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(_,null,{default:(0,s.w5)((()=>[(0,s.Wm)(c,{shadow:"never"},{default:(0,s.w5)((()=>[(0,s.Wm)(d,{data:n.data,"selected-values":n.selectedValues,"label-width":80,onOnChange:u.change},null,8,["data","selected-values","onOnChange"])])),_:1}),(0,s.Wm)(c,{class:"userlose",shadow:"never",style:{"margin-top":"10px"}},{default:(0,s.w5)((()=>[(0,s.Wm)(b,null,{default:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.j4)(h,null,{default:(0,s.w5)((()=>[(0,s._)("div",a,[(0,s.Wm)(p,{type:"primary",icon:"el-icon-plus",onClick:u.add},null,8,["onClick"])])])),_:1})),[[D,["user.group"]]]),(0,s.Wm)(_,{class:"nopadding"},{default:(0,s.w5)((()=>[(0,s.Wm)(k,{api:n.api,hideDo:!0,size:"large",stripe:"",ref:"table",params:n.filterData,hidePagination:!0},{default:(0,s.w5)((()=>[(0,s.Wm)(y,{prop:"id",fixed:"",sortable:"",label:"GroupID",align:"center",width:"120"}),(0,s.Wm)(y,{prop:"title",label:"名称",width:"180"}),(0,s.Wm)(y,{prop:"alias",label:"别名",width:"180"}),(0,s.Wm)(y,{prop:"alias",label:"用户数量",width:"180"}),(0,s.Wm)(y,{prop:"status",label:"状态",width:"90"},{default:(0,s.w5)((e=>[1==e.row.status?((0,s.wg)(),(0,s.j4)(g,{key:0,pulse:"",type:"success",label:"开启"})):(0,s.kq)("",!0),0==e.row.status?((0,s.wg)(),(0,s.j4)(g,{key:1,pulse:"",type:"info",label:"关闭"})):(0,s.kq)("",!0)])),_:1}),"member"==n.filterData.type?((0,s.wg)(),(0,s.j4)(y,{key:0,prop:"anicount",label:"积分",width:"100"})):(0,s.kq)("",!0),"member"==n.filterData.type?((0,s.wg)(),(0,s.j4)(y,{key:1,prop:"anicount",label:"主图",width:"100"},{default:(0,s.w5)((e=>[(0,s.Wm)(m,{"preview-src-list":[e.row.image.url],"preview-teleported":!0,"hide-on-click-modal":"true",lazy:"true",style:{width:"30px",height:"30px"},fit:"cover",src:e.row.image.url},{error:(0,s.w5)((()=>[i])),_:2},1032,["preview-src-list","src"])])),_:1})):(0,s.kq)("",!0),"system"==n.filterData.type?((0,s.wg)(),(0,s.j4)(y,{key:2,prop:"aid",label:"控制台模块",width:"120"},{default:(0,s.w5)((e=>[(0,s.Wm)(w,{value:e.row.authority.grid?e.row.authority.grid.length:0,type:"warning"},null,8,["value"])])),_:1})):(0,s.kq)("",!0),"system"==n.filterData.type?((0,s.wg)(),(0,s.j4)(y,{key:3,prop:"aid",label:"菜单",width:"80"},{default:(0,s.w5)((e=>[(0,s.Wm)(w,{value:e.row.authority.menu?e.row.authority.menu.length:0,type:"primary"},null,8,["value"])])),_:1})):(0,s.kq)("",!0),(0,s.Wm)(y,{prop:"message",label:"备注"},{default:(0,s.w5)((e=>[(0,s._)("input",{class:"el-input__inner",type:"text",readonly:"",value:e.row.message},null,8,r)])),_:1}),(0,s.Wm)(y,{label:"操作",fixed:"right",align:"right",width:"200"},{default:(0,s.w5)((e=>[(0,s.Wm)(v,null,{default:(0,s.w5)((()=>[(0,s.Wm)(p,{text:"",type:"primary",size:"small",onClick:t=>u.group_show(e.row,e.$index)},{default:(0,s.w5)((()=>[(0,s.Uk)("查看")])),_:2},1032,["onClick"]),(0,s.wy)(((0,s.wg)(),(0,s.j4)(p,{text:"",type:"primary",size:"small",onClick:t=>u.group_edit(e.row,e.$index)},{default:(0,s.w5)((()=>[(0,s.Uk)("编辑")])),_:2},1032,["onClick"])),[[D,["user.group"]]]),(0,s.Wm)(f,{title:"确定删除吗?",onConfirm:t=>u.group_del(e.row,e.$index)},{reference:(0,s.w5)((()=>[(0,s.wy)(((0,s.wg)(),(0,s.j4)(p,{text:"",type:"primary",size:"small"},{default:(0,s.w5)((()=>[(0,s.Uk)("删除")])),_:1})),[[D,["user.group"]]])])),_:2},1032,["onConfirm"])])),_:2},1024)])),_:1})])),_:1},8,["api","params"])])),_:1})])),_:1})])),_:1})])),_:1}),n.dialog.save?