数通互联化工云平台
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

import{d as S,ax as F,r as p,a as N,c as P,b as a,e,h as i,H as x,bI as j,an as D,ao as U,L as q,ab as H,ai as L,ac as O,p as $,m as A,q as u,_ as G}from"./index-e450010e.js";import{c as J,g as K,p as M}from"./api-e282220e.js";const c=l=>($("data-v-1dbcb664"),l=l(),A(),l),Q=c(()=>u("span",{style:{width:"30%"}},"关联部门",-1)),W=c(()=>u("span",{style:{width:"30%"}},"提报人",-1)),X=c(()=>u("span",{style:{width:"30%"}},"操作",-1)),Y=S({__name:"edcialog",props:{title:{type:String,default:""},edPostBox:{type:Boolean,default:!1},rowInfo:{type:Object,default(){return{}}},arrayNum:{type:Number,default:0}},emits:["update:edPostBox","editRow","addRow"],setup(l,{emit:v}){const _=l,m={label:"name",children:"children"},V={label:"name",children:"child"},f=v,t=F({reportmap:"",organization:"",getgroup:"",zjr:""}),g=p([]);function I(){J({id:309,all:1}).then(n=>{g.value=n.data})}I();const b=p([]);function k(){K({id:309,level:4}).then(n=>{b.value=n.data})}k();const h=p([]),z=n=>{t.organization=n.id.toString(),M({page:1,pagesize:10,organization:t.organization}).then(o=>{h.value=o.data.list})},y=()=>{f("update:edPostBox",!1)},B=()=>{y(),_.rowInfo.name&&(_.rowInfo,f("editRow",t))};return(n,o)=>{const s=j,d=D,E=U,w=q,T=H,C=L,R=O;return N(),P(R,{"model-value":!0,title:l.title,onClose:y},{default:a(()=>[e(E,{ref:"ruleFormRef",model:t,"label-width":"120px",class:"demo-ruleForm"},{default:a(()=>[e(d,{label:"部门:",prop:"reportmap[0].title"},{default:a(()=>[e(s,{ref:"orgTreeRef",modelValue:t.reportmap,"onUpdate:modelValue":o[0]||(o[0]=r=>t.reportmap=r),"show-checkbox":"",clearable:"",multiple:"","node-key":"id",data:i(g),props:m,"render-after-expand":!1,onCheck:z},null,8,["modelValue","data"])]),_:1}),e(d,null,{default:a(()=>[Q,W,X]),_:1})]),_:1},8,["model"]),e(w),e(C,null,{default:a(()=>[e(d,{prop:"reportmap[0].title","label-width":"120"},{default:a(()=>[e(s,{ref:"orgTreeRef",modelValue:t.zjr,"onUpdate:modelValue":o[1]||(o[1]=r=>t.zjr=r),clearable:"",multiple:"","node-key":"id",data:i(h),props:m,"render-after-expand":!1},null,8,["modelValue","data"])]),_:1}),e(d,{"label-width":"90"},{default:a(()=>[e(s,{ref:"orgTreeRef",modelValue:t.getgroup,"onUpdate:modelValue":o[2]||(o[2]=r=>t.getgroup=r),clearable:"",multiple:"","node-key":"id",data:i(b),props:V,"render-after-expand":!1},null,8,["modelValue","data"])]),_:1}),e(d,{"label-width":"100"},{default:a(()=>[e(T,{type:"primary",onClick:o[3]||(o[3]=r=>B())},{default:a(()=>[x("确定")]),_:1})]),_:1})]),_:1}),e(w,null,{default:a(()=>[x("已关联部门")]),_:1})]),_:1},8,["title"])}}});const te=G(Y,[["__scopeId","data-v-1dbcb664"]]);export{te as default};