Files
qhmes/web-dist/js/JSelectDepartPost-Csx8aMOe.js
2026-06-16 18:19:57 +08:00

2 lines
3.3 KiB
Java

import{D as J}from"./DeptSelectModal-BB7o3IIg.js";import{J as M}from"./JSelectBiz-CRkPo6gN.js";import"./index-BDvqZ5j4.js";import{as as n,aO as T,aQ as c,au as b,aB as E}from"./index-X7Y8jykP.js";import{u as K}from"./useModal-DaJ3Bflg.js";import{e as $,w as A,h as D,u as m,r as d,b as j,t as _,a2 as f,K as w,C as k,z as G,f as h,B,A as H}from"./vue-vendor-DNhG1Cve.js";import"./props-BWd0f6uH.js";import"./index-Bzmv9Ie7.js";import"./index-BzChaRPg.js";import"./bem-CTsBfXqP.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./props-Cc-8EPhZ.js";import"./fromPairs-Dx9PT-t0.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.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"./TreeIcon-7lwypClM.js";import"./index-J2mOtM3w.js";import"./index-DO7ZhK45.js";import"./index-CuWaQdlK.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./useAppInject-DPZGPcR3.js";const I=$({name:"JSelectDepartPost",components:{DeptSelectModal:J,JSelectBiz:M},inheritAttrs:!1,props:{value:n.oneOfType([n.string,n.array]),multiple:n.bool.def(!0),izOnlySelectDepartPost:n.bool.def(!0),isCustomRenderTag:n.bool.def(!0),izShowDepPath:n.bool.def(!1)},emits:["options-change","change","select","update:value"],setup(e,{emit:s,refs:O}){const[g,{openModal:S}]=K(),l=d([]);let a=j({value:[]}),o=[];const p=d(!1);f("selectOptions",l),f("selectValues",a),f("loadingEcho",p);const i=d(!1),v=T();A(()=>{o=[],e.value&&C()}),D(()=>e.value,()=>{C()}),D(l,()=>{l&&s("select",_(m(l)),_(m(a)))});function y(){i.value=!0,S(!0,{isUpdate:!1})}function C(){let t=e.value?e.value:[];t&&typeof t=="string"?(a.value=t.split(","),o=t.split(",")):(a.value=t,o=c(t))}function z(t,r){l.value=t,a.value=r,u(r)}const P=Object.assign({},m(e),m(v)),R=()=>{o.length?a.value=c(o):u(o)},V=t=>{o=c(t),u(o)},u=t=>{let r=typeof e.value=="string"?t.join(","):t;s("update:value",r),s("change",r),(!t||t.length==0)&&s("select",null,null)};return{attrs:v,selectOptions:l,selectValues:a,loadingEcho:p,getBindValue:P,tag:i,regModal:g,setValue:z,handleOpen:y,handleClose:R,handleSelectChange:V}}}),N={class:"JSelectDepartPost"};function Q(e,s,O,g,S,l){var i;const a=w("JSelectBiz"),o=w("DeptSelectModal"),p=E;return G(),k("div",N,[h(a,B({onChange:e.handleSelectChange,onHandleOpen:e.handleOpen,loading:e.loadingEcho},e.attrs,{isCustomRenderTag:e.isCustomRenderTag,rowKey:(i=e.getBindValue)==null?void 0:i.rowKey}),null,16,["onChange","onHandleOpen","loading","isCustomRenderTag","rowKey"]),h(p,null,{default:H(()=>[h(o,B({onRegister:e.regModal,onGetSelectResult:e.setValue,modalTitle:"部门岗位选择"},e.getBindValue,{multiple:e.multiple,onClose:e.handleClose,izShowDepPath:e.izShowDepPath}),null,16,["onRegister","onGetSelectResult","multiple","onClose","izShowDepPath"])]),_:1})])}const Te=b(I,[["render",Q],["__scopeId","data-v-5cc15970"]]);export{Te as default};