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.
2 lines
6.8 KiB
2 lines
6.8 KiB
|
4 months ago
|
import{d as ge,r,ao as $,bf as A,ax as V,G as fe,cx as he,a as m,c as _,b as l,e as t,H as c,Y as g,h as s,q as F,t as S,j as Q,I as D,$ as be,bE as ye,a7 as z,ae as ve,ab as we,al as xe,aj as ke,an as Ce,aw as Ee,av as Pe,b3 as Te,M as Ve,b4 as Fe,aA as Se,am as De,ai as ze,at as Ie,_ as Be}from"./index-e450010e.js";import{_ as Le}from"./index-c5018719.js";import{_ as Ue}from"./delete-811387fa.js";import{_ as Re}from"./plus-f2947ec6.js";import{_ as je}from"./refresh-f1723430.js";import{_ as Me}from"./search-71444aff.js";import{b as Ne,c as q}from"./index-fd6f1a35.js";import{g as Oe}from"./index-fbf4ca87.js";import $e from"./addpost-1d55ee4b.js";import Ae from"./editpost-a39e05d1.js";const Qe={style:{padding:"0",margin:"0"}},qe={style:{margin:"15px 0",height:"32px",display:"flex",padding:"0 20px"}},Ge={class:"select-text"},He=ge({__name:"index",setup(Ke){const I=r($),B=r(A),k=r(!1),C=r(!1),b=r(),G={children:"child",label:"name"},i=V({page:1,pagesize:13}),H=V({page:1,pagesize:1e5}),L=r(),f=r(0),E=r([]),o=V({}),P=r([]),y=r(!1),v=r(!1),U=r(0);function K(){k.value=!0,ye({}).then(({data:e})=>{b.value=e}).finally(()=>{k.value=!1})}const Y=e=>{var a;i.organization=(a=e.id)==null?void 0:a.toString(),p()},J=()=>{B.value.setCheckedKeys([],!1),i.organization="",p()};function p(){C.value=!0,Ne(i).then(({data:e})=>{L.value=e.list,f.value=e.total}).finally(()=>{C.value=!1})}function W(){I.value.resetFields(),p()}function X(){y.value=!0}function Z(e){o.id=e.id,o.number=e.number,o.name=e.name,o.duties=e.duties,o.time=e.time,o.state=e.state,o.administrativeorganization=e.administrativeorganization,o.superior=e.superior,o.personincharge=e.personincharge,o.department=e.department,o.menupermit=e.menupermit,o.buttonpermit=e.buttonpermit,o.school=e.school,o.kingdeeid=e.kingdeeid,o.orglist=e.orglist,o.unifyid=e.unifyid,o.dutiesname=e.dutiesname,o.dutiesnumber=e.dutiesnumber,o.aoname=e.aoname,o.aonumber=e.aonumber,o.jobname=e.jobname,o.superiorname=e.superiorname,o.superiornumber=e.superiornumber,o.departmentname=e.departmentname,o.idstr=e.idstr,o.orglistary=e.orglistary,v.value=!0}function R(e){const a=[(e==null?void 0:e.id)||E.value].join(",");if(!a){z.warning("请勾选删除项");return}let d=a.split(",");ve.confirm("确认删除已选中的数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{q({id:d,status:3,istrue:2}).then(()=>{z.success("删除成功"),p()})})}function ee(e,a){const d=[e.toString()];let w=1;a==1&&(w=2),q({id:d,istrue:2,status:w}).then(({data:j})=>{z.success("编辑成功"),p()})}function te(e){U.value=e.length,E.value=e.map(a=>a.id)}function ae(){Oe(H).then(({data:e})=>{P.value=e.list,f.value=e.total})}return fe(()=>{K(),p(),ae()}),(e,a)=>{const d=we,w=A,j=xe,M=ke,T=Ce,N=Ee,oe=Me,ne=je,le=Pe,se=$,ie=Re,re=Ue,u=Te,de=Ve,pe=Fe,ue=Le,me=Se,_e=De,ce=ze,O=Ie,h=he("hasPerm");return m(),_(ce,{class:"app-container"},{default:l(()=>[t(j,{width:"200px",style:{"background-color":"#fff"}},{default:l(()=>[t(d,{type:"primary",style:{width:"100%",margin:"10px 0"},onClick:J},{default:l(()=>[c("查看全部")]),_:1}),g(t(w,{ref_key:"orgTreeRef",ref:B,"node-key":"id",class:"orgTree",data:s(b),props:G,"expand-on-click-node":!1,"check-on-click-node":!0,"check-strictly":!0,"default-expand-all":!0,onNodeClick:Y},null,8,["data"]),[[O,s(k)]])]),_:1}),t(_e,{style:{padding:"0"}},{default:l(()=>[F("div",Qe,[t(me,{"body-style":"padding:0px; margin: 0",shadow:"never"},{header:l(()=>[t(se,{ref_key:"searchOrgFormRef",ref:I,model:s(i),inline:!0},{default:l(()=>[t(le,{style:{"padding-left":"20px"}},{default:l(()=>[t(N,{span:18},{default:l(()=>[t(T,{label:"岗位名称",prop:"keywords"},{default:l(()=>[t(M,{modelValue:s(i).name,"onUpdate:modelValue":a[0]||(a[0]=n=>s(i).name=n),placeholder:"岗位名称",clearable:""},null,8,["modelValue"])]),_:1}),t(T,{label:"岗位编号",prop:"number"},{default:l(()=>[t(M,{modelValue:s(i).number,"onUpdate:modelValue":a[1]||(a[1]=n=>s(i).number=n),placeholder:"岗位编号",clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),t(N,{span:6,class:"flex-end"},{default:l(()=>
|