x-php-Admin/dist/static/js/576.a28f8752.js

1 line
7.0 KiB
JavaScript
Raw Normal View History

2024-01-31 07:17:45 +00:00
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[576],{1641:function(e,s,l){l.r(s),l.d(s,{default:function(){return z}});var t=l(6808),r=l(9511);const o={key:0,class:"x-user-select"},a={class:"x-user-select__left"},i={class:"x-user-select__search"},u={class:"x-user-select__select"},c={class:"x-user-select__tree"},d={class:"x-user-select__user"},n={class:"x-user-select__user__list"},p={class:"x-user-select__toicon"},h={class:"x-user-select__selected"},g={class:"name"},k={class:"delete"},m={key:1,class:"x-user-select x-user-select-role"},_={class:"x-user-select__left"},y={class:"x-user-select__select"},w={class:"x-user-select__tree"},f={class:"x-user-select__toicon"},C={class:"x-user-select__selected"},v={class:"name"},x={class:"delete"};function b(e,s,l,b,P,W){const D=(0,t.up)("el-button"),U=(0,t.up)("el-input"),z=(0,t.up)("el-tree"),G=(0,t.up)("el-scrollbar"),S=(0,t.up)("el-pagination"),$=(0,t.up)("el-icon-arrow-right"),q=(0,t.up)("el-icon"),I=(0,t.up)("el-avatar"),T=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)(t.HY,null,[1==l.type?((0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",a,[(0,t._)("div",i,[(0,t.Wm)(U,{modelValue:P.keyword,"onUpdate:modelValue":s[0]||(s[0]=e=>P.keyword=e),"prefix-icon":"el-icon-search",placeholder:"搜索成员"},{append:(0,t.w5)((()=>[(0,t.Wm)(D,{icon:"el-icon-search",onClick:W.search},null,8,["onClick"])])),_:1},8,["modelValue"])]),(0,t._)("div",u,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",c,[(0,t.Wm)(G,null,{default:(0,t.w5)((()=>[(0,t.Wm)(z,{class:"menu",ref:"groupTree",data:P.group,"node-key":P.groupProps.key,props:P.groupProps,"highlight-current":"","expand-on-click-node":!1,"current-node-key":P.groupid,onNodeClick:W.groupClick},null,8,["data","node-key","props","current-node-key","onNodeClick"])])),_:1})])),[[T,P.showGrouploading]]),(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",d,[(0,t._)("div",n,[(0,t.Wm)(G,{ref:"userScrollbar"},{default:(0,t.w5)((()=>[(0,t.Wm)(z,{class:"menu",ref:"userTree",data:P.user,"node-key":P.userProps.key,props:P.userProps,"default-checked-keys":W.selectedIds,"show-checkbox":"","check-on-click-node":"",onCheckChange:W.userClick},null,8,["data","node-key","props","default-checked-keys","onCheckChange"])])),_:1},512)]),(0,t._)("footer",null,[(0,t.Wm)(S,{background:"",layout:"prev,next",small:"",total:P.total,"page-size":P.limit,currentPage:P.currentPage,"onUpdate:currentPage":s[1]||(s[1]=e=>P.currentPage=e),onCurrentChange:W.paginationChange},null,8,["total","page-size","currentPage","onCurrentChange"])])])),[[T,P.showUserloading]])])]),(0,t._)("div",p,[(0,t.Wm)(q,null,{default:(0,t.w5)((()=>[(0,t.Wm)($)])),_:1})]),(0,t._)("div",h,[(0,t._)("header",null,"已选 ("+(0,r.zw)(P.selected.length)+")",1),(0,t._)("ul",null,[(0,t.Wm)(G,null,{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(P.selected,((e,s)=>((0,t.wg)(),(0,t.iD)("li",{key:e.id},[(0,t._)("span",g,[(0,t.Wm)(I,{size:"small"},{default:(0,t.w5)((()=>[(0,t.Uk)((0,r.zw)(e.name.substring(0,1)),1)])),_:2},1024),(0,t._)("label",null,(0,r.zw)(e.name),1)]),(0,t._)("span",k,[(0,t.Wm)(D,{type:"danger",icon:"el-icon-delete",circle:"",size:"small",onClick:e=>W.deleteSelected(s)},null,8,["onClick"])])])))),128))])),_:1})])])])):(0,t.kq)("",!0),2==l.type?((0,t.wg)(),(0,t.iD)("div",m,[(0,t._)("div",_,[(0,t._)("div",y,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",w,[(0,t.Wm)(G,null,{default:(0,t.w5)((()=>[(0,t.Wm)(z,{class:"menu",ref:"groupTree",data:P.role,"node-key":P.roleProps.key,props:P.roleProps,"show-checkbox":"","check-strictly":"","check-on-click-node":"","expand-on-click-node":!1,"default-checked-keys":W.selectedIds,onCheckChange:W.roleClick},null,8,["data","node-key","props","default-checked-keys","onCheckChange"])])),_:1})])),[[T,P.showGrouploading]])])]),(0,t._)("div",f,[(0,t.Wm)(q,null,{default:(0,t.w5)((()=>[(0,t.Wm)($)])),_:1})]),(0,t._)("div",C,[(0,t._)("header",null,"已选 ("+(0,r.zw)(P.selected.length)+")",1),(0,t._)("ul",null,[(0,t.Wm)(G,null,{default:(0,t.w5)((()=>[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(P.selected,((e,s)=>((0,t.wg)(),(0,t.iD)("li",{key:e.id},[(0,t._)("span