Files
qhmes/web-dist/js/JSelectUserByDeptPost-B-lGIEI7.js
2026-06-16 18:19:57 +08:00

3 lines
9.9 KiB
Java

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/BasicTable-C6eG0bgK.js","js/BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js","js/vue-vendor-DNhG1Cve.js","js/BasicForm-ClUSoD_-.js","js/helper-DcLcf4v6.js","js/index-X7Y8jykP.js","js/emoji-mart-vue-fast-R0uJEDq-.js","assets/index-GuhSw_Yp.css","js/index-BzChaRPg.js","assets/index-DTCEk8S9.css","js/useAppInject-DPZGPcR3.js","js/BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js","js/index-DO7ZhK45.js","js/index-ByCwbQDV.js","js/index-Upeu4GGa.js","js/index-C4wWpZeQ.js","js/useTimeout-D5AmIBZw.js","js/index-M9QP6cvf.js","js/Skeleton-CimgOdM7.js","js/useScrollTo-0FPEw5-K.js","js/useIntersectionObserver-BGOgyKyu.js","assets/index-zj-Vfn3Q.css","assets/BasicForm-BKgjVE-6.css","js/index-saD4h7VJ.js","js/useBreakpoint-DXhPW7nV.js","js/useEventListener-BRXjwk7A.js","js/breakpointEnum-BhAg6bcX.js","js/uniqBy--vsL0WVB.js","js/index-BDvqZ5j4.js","js/BasicModal-xH56XuRZ.js","js/ModalHeader-Sr8KwhJJ.js","assets/ModalHeader-CLCbovMP.css","js/useWindowSizeFn-C-0M9_Ul.js","js/index-CuWaQdlK.js","assets/BasicModal-ByeTDAzn.css","assets/index-CUOTvden.css","js/useForm-D61zovon.js","js/injectionKey-DPVn4AgL.js","js/index-DSsDi_fL.js","js/Group-UHkub2tu.js","js/Checkbox-Dbxs4we4.js","js/index-BuONesFs.js","js/FormOutlined-Y84itqS0.js","js/useTableContext-CncNVXgp.js","js/index-DTjkSGYl.js","js/eagerComputed-BTlOruLW.js","js/fromPairs-Dx9PT-t0.js","js/useMaxLevel-DE205ncc.js","js/index-CfNJyBRj.js","js/dropdown-jkliuVyN.js","js/index-DfHu-LAS.js","js/Group-DBzJABA_.js","js/RadioButton-DRBix2Fq.js","js/index-C7ckZv9Z.js","js/DirectoryTree-nk_YTTIy.js","js/FolderOpenOutlined-SzIPA7z0.js","js/index-Cl-8Hzo4.js","js/scrollTo-D49dA-9c.js","js/operationUnit-vCu2co3e.js","js/index-C69VKHba.js","js/index-DklMb9Qc.js","js/UpOutlined-B1UMbtrP.js","js/index-DsixALRt.js","js/dayjs-jnKD3YGS.js","js/index-aCD42OrZ.js","js/quarterOfYear-BU2sPnff.js","js/index-J2mOtM3w.js","js/dayjs-ALi1pEeb.js","js/clickOutside-DHfwTU6R.js","js/onMountedOrActivated-DhSdLlqP.js","js/throttle-De_jAmBh.js","js/uuid-CODpppBC.js","js/sortable.esm-DJNoJSdJ.js","js/RedoOutlined-Cq2g4Slp.js","js/index-CeNCCWzL.js","assets/BasicTable-Wa_ugCm0.css"])))=>i.map(i=>d[i]);
var Q=Object.defineProperty,X=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var k=(e,o,n)=>o in e?Q(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,y=(e,o)=>{for(var n in o||(o={}))ee.call(o,n)&&k(e,n,o[n]);if(z)for(var n of z(o))te.call(o,n)&&k(e,n,o[n]);return e},x=(e,o)=>X(e,Z(o));var D=(e,o,n)=>new Promise((m,u)=>{var g=a=>{try{l(n.next(a))}catch(r){u(r)}},i=a=>{try{l(n.throw(a))}catch(r){u(r)}},l=a=>a.done?m(a.value):Promise.resolve(a.value).then(g,i);l((n=n.apply(e,o)).next())});import{p as ae,aO as H,g0 as oe,_ as ne,d as se,au as J,bY as re,as as R}from"./index-X7Y8jykP.js";import{B as le}from"./index-BDvqZ5j4.js";import{B as ie}from"./index-Bzmv9Ie7.js";import{u as ce}from"./useSelectBiz-C58pZLPQ.js";import{T as de}from"./TreeIcon-7lwypClM.js";import{c as ue}from"./depart.api-nbAZZHTa.js";import{s as pe}from"./props-BWd0f6uH.js";import{a as me,u as fe}from"./useModal-DaJ3Bflg.js";import{e as q,u as _,r as d,K as C,y as U,z as M,A as v,f as c,B as K,w as ge,h as he,b as ye,a2 as P,C as ve}from"./vue-vendor-DNhG1Cve.js";import{C as _e}from"./index-BwqG9R3y.js";import{O as Se}from"./index-CuWaQdlK.js";import{A as Be}from"./index-DO7ZhK45.js";import{J as Ce}from"./JSelectBiz-CRkPo6gN.js";import{useRuleFormItem as Te}from"./useFormItem-b_EqFlJz.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useTimeout-D5AmIBZw.js";import"./index-BzChaRPg.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useAppInject-DPZGPcR3.js";import"./bem-CTsBfXqP.js";import"./props-Cc-8EPhZ.js";import"./fromPairs-Dx9PT-t0.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./useContextMenu-BncvQCmV.js";import"./index-saD4h7VJ.js";import"./difference-CGvbIcA7.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./useMaxLevel-DE205ncc.js";import"./eagerComputed-BTlOruLW.js";import"./index-BuONesFs.js";import"./index-J2mOtM3w.js";const we=q({name:"UserSelectByDepPostModal",components:{BasicModal:le,BasicTree:ie,BasicTable:ae(()=>ne(()=>import("./BasicTable-C6eG0bgK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75])),{loading:!0}),TreeIcon:de},props:x(y({},pe),{modalTitle:{type:String,default:"部门用户选择"}}),emits:["register","getSelectResult"],setup(e,{emit:o,refs:n}){const m=d(),u=d(),[g,{closeModal:i}]=me(t=>D(null,null,function*(){yield E()})),l=H(),a=d([]),r=d([]),h=d([]),f={},S=d(Math.random()),T={columns:[{title:"用户账号",dataIndex:"username",width:180},{title:"用户姓名",dataIndex:"realname",width:180},{title:"性别",dataIndex:"sex_dictText",width:80},{title:"手机号码",dataIndex:"phone",customRender:({record:t,text:p})=>t.izHideContact&&t.izHideContact==="1"?"/":p}],useSearchForm:!0,canResize:!1,showIndexColumn:!1,striped:!0,bordered:!0,size:"small",formConfig:{baseColProps:{xs:24,sm:8,md:6,lg:8,xl:6,xxl:10},actionColOptions:{xs:24,sm:12,md:12,lg:12,xl:8,xxl:8},schemas:[{label:"账号",field:"username",component:"Input"}],resetFunc:G}},B=Object.assign({},_(e),_(l),T),[{rowSelection:w,visibleChange:O,indexColumnProps:s,getSelectResult:b,reset:F}]=ce(V,B);function V(t){return t=$(t),oe(y({},t))}function A(t){return t=$(t),ue(y({},t))}function $(t){return e!=null&&e.params?y(y({},t),e.params):t}function E(){A({}).then(t=>{t&&(a.value=t)})}function L(t){return D(this,null,function*(){try{const p=yield A({pid:t.eventKey}),I=_(u);I&&(I.updateNodeByKey(t.eventKey,{children:p}),I.setExpandedKeys([t.eventKey,...I.getExpandedKeys()]))}catch(p){}return Promise.resolve()})}function j(t){t[0]!=null&&(_(r)[0]!==t[0]&&(r.value=[t[0]]),f.departId=_(r).join(","),m.value.reload())}function G(){return D(this,null,function*(){r.value=[],f.departId="",F()})}function W(){b((t,p)=>{o("getSelectResult",t,p),i()})}function Y(t){return D(this,null,function*(){if(t){let p=yield se.get({url:"/sys/sysDepart/searchBy",params:y({keyWord:t,orgCategory:"3"},e.params)});Array.isArray(p)?a.value=p:a.value=[]}else a.value=[],yield E()})}function N(t){t.target.value||(S.value=Math.random())}return{handleOk:W,searchInfo:f,register:g,indexColumnProps:s,visibleChange:O,getBindValue:B,rowSelection:w,departTree:a,selectedDepIds:r,expandedKeys:h,treeRef:u,tableRef:m,getTableList:V,onDepSelect:j,loadChildrenTreeData:L,onSearch:Y,handelSearchChange:N,reloadKey:S}}});function be(e,o,n,m,u,g){const i=re,l=C("TreeIcon"),a=C("BasicTree"),r=_e,h=Be,f=C("BasicTable"),S=Se,T=C("BasicModal");return M(),U(T,K(e.$attrs,{onRegister:e.register,title:e.modalTitle,width:"1200px",onOk:e.handleOk,destroyOnClose:"",onVisibleChange:e.visibleChange}),{default:v(()=>[c(S,{gutter:10},{default:v(()=>[c(h,{md:7,sm:24},{default:v(()=>[c(r,{style:{minHeight:"613px",overflow:"auto"}},{default:v(()=>[c(i,{placeholder:"按岗位名称搜索…",style:{"margin-bottom":"10px"},onSearch:e.onSearch,onChange:e.handelSearchChange},null,8,["onSearch","onChange"]),(M(),U(a,{ref:"treeRef",style:{minWidth:"250px"},selectable:"",onSelect:e.onDepSelect,"load-data":e.loadChildrenTreeData,treeData:e.departTree,selectedKeys:e.selectedDepIds,expandedKeys:e.expandedKeys,clickRowToExpand:!1,key:e.reloadKey},{title:v(({orgCategory:B,title:w})=>[c(l,{orgCategory:B,title:w},null,8,["orgCategory","title"])]),_:1},8,["onSelect","load-data","treeData","selectedKeys","expandedKeys"]))]),_:1})]),_:1}),c(h,{md:17,sm:24},{default:v(()=>[c(r,{style:{minHeight:"613px",overflow:"auto"}},{default:v(()=>[c(f,K({ref:"tableRef"},e.getBindValue,{searchInfo:e.searchInfo,api:e.getTableList,rowSelection:e.rowSelection}),null,16,["searchInfo","api","rowSelection"])]),_:1})]),_:1})]),_:1})]),_:1},16,["onRegister","title","onOk","onVisibleChange"])}const De=J(we,[["render",be]]),Ie=q({name:"JSelectUserByDeptPost",components:{UserSelectByDepPostModal:De,JSelectBiz:Ce},inheritAttrs:!1,props:{value:R.oneOfType([R.string,R.array]),rowKey:{type:String,default:"username"},labelKey:{type:String,default:"realname"}},emits:["options-change","change","update:value"],setup(e,{emit:o,refs:n}){const m=d(),[u,{openModal:g}]=fe(),[i]=Te(e,"value","change",m),l=d([]);let a=ye({value:[],change:!1});const r=d(!1);P("selectOptions",l),P("selectValues",a),P("loadingEcho",r);const h=d(!1),f=H();ge(()=>{T()}),he(a,()=>{var s;if(a){if(e.value===void 0&&((s=a.value)==null?void 0:s.length)==0)return;i.value=a.value}});function S(){h.value=!0,g(!0,{isUpdate:!1})}function T(){let s=e.value?e.value:[];s&&typeof s=="string"&&s!="null"&&s!="undefined"?(i.value=s.split(","),a.value=s.split(",")):a.value=s}function B(s,b){l.value=s,i.value=b,a.value=b,o("update:value",b),o("options-change",s)}function w(s){o("update:value",s)}const O=Object.assign({},_(e),_(f));return{state:i,attrs:f,selectOptions:l,getBindValue:O,selectValues:a,loadingEcho:r,tag:h,regModal:u,setValue:B,handleOpen:S,handleChange:w}}});function Ke(e,o,n,m,u,g){const i=C("JSelectBiz"),l=C("UserSelectByDepPostModal");return M(),ve("div",null,[c(i,K({onChange:e.handleChange,onHandleOpen:e.handleOpen,loading:e.loadingEcho},e.attrs),null,16,["onChange","onHandleOpen","loading"]),c(l,K({rowKey:e.rowKey,onRegister:e.regModal,onGetSelectResult:e.setValue},e.getBindValue),null,16,["rowKey","onRegister","onGetSelectResult"])])}const St=J(Ie,[["render",Ke],["__scopeId","data-v-68ef65b0"]]);export{St as default};