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