1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
|
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[390],{4390:function(e,s,t){t.r(s),t.d(s,{default:function(){return v}});var r=t(6808),l=t(9511);const o={class:"x-user-select__left"},i={class:"x-user-select__search"},a={class:"x-user-select__select"},u={class:"x-user-select__tree"},d={class:"x-user-select__user"},c={class:"x-user-select__user__list"},n={class:"x-user-select__toicon"},p={class:"x-user-select__selected"},h={class:"x-user-select__left"},g={class:"x-user-select__select"},k={class:"x-user-select__tree"},m={class:"x-user-select__toicon"},y={class:"x-user-select__selected"},_={class:"name"},w={class:"delete"};function f(e,s,t,f,C,x){const b=(0,r.up)("el-button"),P=(0,r.up)("el-input"),v=(0,r.up)("el-tree"),W=(0,r.up)("el-scrollbar"),D=(0,r.up)("el-pagination"),U=(0,r.up)("el-icon-arrow-right"),V=(0,r.up)("el-icon"),N=(0,r.up)("x-form-table"),S=(0,r.Q2)("loading");return(0,r.wg)(),(0,r.iD)(r.HY,null,[1==t.type?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"x-user-select",style:(0,l.j5)({height:x._height,width:x._width})},[(0,r._)("div",o,[(0,r._)("div",i,[(0,r.Wm)(P,{modelValue:C.keyword,"onUpdate:modelValue":s[0]||(s[0]=e=>C.keyword=e),"prefix-icon":"el-icon-search",placeholder:t.config.placeholder||"搜索用户"},{append:(0,r.w5)((()=>[(0,r.Wm)(b,{icon:"el-icon-search",onClick:x.search},null,8,["onClick"])])),_:1},8,["modelValue","placeholder"])]),(0,r._)("div",a,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",u,[(0,r.Wm)(W,null,{default:(0,r.w5)((()=>[(0,r.Wm)(v,{class:"menu",ref:"groupTree",data:C.group,"node-key":C.groupProps.key,props:C.groupProps,"highlight-current":"","expand-on-click-node":!1,"current-node-key":C.groupid,onNodeClick:x.groupClick},null,8,["data","node-key","props","current-node-key","onNodeClick"])])),_:1})])),[[S,C.showGrouploading]]),(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",d,[(0,r._)("div",c,[(0,r.Wm)(W,{ref:"userScrollbar"},{default:(0,r.w5)((()=>[(0,r.Wm)(v,{class:"menu",ref:"userTree",data:C.user,"node-key":C.userProps.key,props:C.userProps,"default-checked-keys":x.selectedIds,"show-checkbox":"","check-on-click-node":"",onCheckChange:x.userClick},null,8,["data","node-key","props","default-checked-keys","onCheckChange"])])),_:1},512)]),(0,r._)("footer",null,[(0,r.Wm)(D,{background:"",layout:"prev,next",small:"",total:C.total,"page-size":C.limit,currentPage:C.currentPage,"onUpdate:currentPage":s[1]||(s[1]=e=>C.currentPage=e),onCurrentChange:x.paginationChange},null,8,["total","page-size","currentPage","onCurrentChange"])])])),[[S,C.showUserloading]])])]),(0,r._)("div",n,[(0,r.Wm)(V,null,{default:(0,r.w5)((()=>[(0,r.Wm)(U)])),_:1})]),(0,r._)("div",p,[(0,r._)("header",null,"已选 ("+(0,l.zw)(C.selected.length)+")",1),(0,r._)("ul",null,[(0,r.Wm)(W,null,{default:(0,r.w5)((()=>[(0,r.Wm)(N,{modelValue:C.selected,"onUpdate:modelValue":s[2]||(s[2]=e=>C.selected=e),hideAdd:!0,placeholder:"暂无数据",column:t.config.column,onDelete:x.setCheckedKeys},null,8,["modelValue","column","onDelete"])])),_:1})])])],4)):(0,r.kq)("",!0),2==t.type?((0,r.wg)(),(0,r.iD)("div",{key:1,class:"x-user-select x-user-select-role",style:(0,l.j5)({height:x._height,width:x._width})},[(0,r._)("div",h,[(0,r._)("div",g,[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",k,[(0,r.Wm)(W,null,{default:(0,r.w5)((()=>[(0,r.Wm)(v,{class:"menu",ref:"groupTree",data:C.role,"node-key":C.roleProps.key,props:C.roleProps,"show-checkbox":"","check-strictly":"","check-on-click-node":"","expand-on-click-node":!1,"default-checked-keys":x.selectedIds,onCheckChange:x.roleClick},null,8,["data","node-key","props","default-checked-keys","onCheckChange"])])),_:1})])),[[S,C.showGrouploading]])])]),(0,r._)("div",m,[(0,r.Wm)(V,null,{default:(0,r.w5)((()=>[(0,r.Wm)(U)])),_:1})]),(0,r._)("div",y,[(0,r._)("header",null,"已选 ("+(0,l.zw)(C.selected.length)+")",1),(0,r._)("ul",null,[(0,r.Wm)(W,null,{default:(0,r.w5)((()=>[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(C.selected,((e,s)=>((0,r.wg)(),(0,r.iD)("li",{key:e.id},[(0,r._)("span",_,[(0,r._)("label",null,(0,l.zw)(e.name),1)]),(0,r._)("span",w,[(0,r.Wm)(b,{type:"danger",icon:"el-icon-del
|