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
2.6 KiB
1 lines
2.6 KiB
import{d as P,r as e,ax as E,y as R,w as D,a as j,c as J,b as n,q as o,e as r,H as O,h as d,I as w,aj as q,ab as H,ac as X,p as z,m as F,_ as G}from"./index-e450010e.js";import{_ as K}from"./search-71444aff.js";import{g as M}from"./rolecont-edb73ec5.js";import Q from"./orgusertree-de42b9ef.js";import W from"./currentchecked-d735dc3c.js";const Y=l=>(z("data-v-107951c5"),l=l(),F(),l),Z={class:"addUserBody"},$={class:"user_body"},ee={class:"user_hearde"},se={class:"user_cont"},oe={class:"user_body right_body"},te=Y(()=>o("div",{class:"user_hearde user_title"}," 已选择的部门或成员 ",-1)),de={class:"user_cont"},ae={class:"dialog-footer"},re=P({__name:"addusertorole - 副本",props:{addUserIsShow:{type:Boolean,default:!1},roleAddId:{type:String,default:""},roleAddTitle:{type:String,default:"添加使用人员"},shuaXinUserList:{type:Object,default(){return{}}}},emits:["update:addUserIsShow"],setup(l,{emit:k}){const a=l;e(!1);const C=e(!1),A=e(!1),m=k,v=e(""),u=e(""),p=e(""),c=e(""),i=E([]),h=e([]),U=e(""),b=e(),f=R({get:()=>a.addUserIsShow,set:s=>{m("update:addUserIsShow",s)}});function S(){m("update:addUserIsShow",!1),y()}function y(){p.value="",c.value=""}function x(){M({id:"313",level:0,all:1}).then(({data:s})=>{h.value=s.list,c.value=JSON.stringify(s.three)})}D(()=>a.addUserIsShow,()=>{c.value="",A.value=a.addUserIsShow,a.addUserIsShow?(v.value="添加 < "+a.roleAddTitle+" > 使用人员",p.value=a.roleAddId,x()):y()});const T=s=>{let t=i.length;t>0&&i.splice(0,t),h.value.length>0&&h.value.forEach(_=>{s.indexOf(_.id)!=-1&&i.push(_)}),U.value=JSON.stringify(i)},V=s=>{};function B(){}return(s,t)=>{const _=K,L=q,I=H,N=X;return j(),J(N,{modelValue:d(f),"onUpdate:modelValue":t[1]||(t[1]=g=>w(f)?f.value=g:null),width:"50%",title:d(v),"append-to-body":"",draggable:"","before-close":S},{footer:n(()=>[o("span",ae,[r(I,{type:"danger",onClick:S},{default:n(()=>[O("取消")]),_:1}),r(I,{type:"primary",loading:d(C),onClick:B},{default:n(()=>[O("确定")]),_:1},8,["loading"])])]),default:n(()=>[o("div",Z,[o("div",$,[o("div",ee,[r(L,{modelValue:d(u),"onUpdate:modelValue":t[0]||(t[0]=g=>w(u)?u.value=g:null),placeholder:"搜索成员或部门",class:"input-with-select"},{prepend:n(()=>[r(_)]),_:1},8,["modelValue"])]),o("div",se,[r(Q,{ref_key:"orgusthree",ref:b,systemRoleUSerTreeList:d(c),onCheckedOrgPeopleStrSun:T,roleId:d(p)},null,8,["systemRoleUSerTreeList","roleId"])])]),o("div",oe,[te,o("div",de,[r(W,{checkedOrgAndPeopleStr:d(U),onCopeCheckedOrgUsListData:V},null,8,["checkedOrgAndPeopleStr"])])])])]),_:1},8,["modelValue","title"])}}});const ue=G(re,[["__scopeId","data-v-107951c5"]]);export{ue as default};
|
|
|