数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
1.6 KiB

import{d as L,r as t,aV as m,n as f,a7 as N,f as g,o as l,c as i,w as d,N as h,g as p,a as w,j as v,t as R,au as U,aM as V,z as O,A as P,_ as B}from"./index-b0696d90.js";/* empty css *//* empty css */import{S as A}from"./index-43a073f3.js";const D=e=>(O("data-v-51bdf6d1"),e=e(),P(),e),E=D(()=>p("div",{class:"image-slot"},[v("Loading"),p("span",{class:"dot"},"...")],-1)),M={class:"image-slot"},j=L({__name:"orgusertree",props:{roleId:{type:String,default:""},systemRoleUSerTreeList:{type:String,default:""}},emits:["checkedOrgPeopleStrSun"],setup(e,{expose:y,emit:S}){const s=e,c=t(m),r=t(!1),u=t([]);t(s.roleId);const n=t([]),k={children:"child",label:"name"};f(()=>s.systemRoleUSerTreeList,()=>{r.value=!0,s.systemRoleUSerTreeList!=null&&s.systemRoleUSerTreeList!=""&&(u.value=JSON.parse(s.systemRoleUSerTreeList),r.value=!1)});function T(){n.value=c.value.getCheckedNodes(!1,!1).map(a=>a.id),r.value=!1}return f(()=>n.value,()=>{S("checkedOrgPeopleStrSun",n.value)}),y({setupCurrent:a=>{c.value.setCheckedKeys(a,!0)}}),(a,J)=>{const _=A,x=U,C=m,b=V;return N((l(),i(C,{ref_key:"userTreeRef",ref:c,"node-key":"id",data:g(u),"show-checkbox":"",props:k,"expand-on-click-node":!0,"check-on-click-node":!0,onCheckChange:T},{default:d(({node:I,data:o})=>[o.isman==1?(l(),i(_,{key:0,"icon-class":"tree",class:"svgbox"})):h("",!0),o.isman!=1?(l(),i(x,{key:1,src:o.icon!=""?o.icon:o.iconbase64,class:"img_box"},{placeholder:d(()=>[E]),error:d(()=>[p("div",M,[w(_,{"icon-class":"role",style:{}})])]),_:2},1032,["src"])):h("",!0),v(" "+R(I.label),1)]),_:1},8,["data"])),[[b,g(r)]])}}});const H=B(j,[["__scopeId","data-v-51bdf6d1"]]);export{H as default};