|
- import B from"./meetingProjectDialog-551c4793.js";import{G as S,E as A,a as k,$ as s,r as d,B as P,b as c,c as u,d as p,f as o,h as n,e as y,i as F,F as R,k as V}from"./index-dd5fae99.js";import W from"./leaveDialog-36e14369.js";import{m as E}from"./expertReview-fa1e6b52.js";import"./reviewMeeting-39e99ddc.js";const G=["onClick"],O=["onClick"],q={key:1},M={class:"dialog-footer"},z=V({name:"meetingsLeaveDialog"}),X=Object.assign(z,{props:{visible:{type:Boolean,default:!1,required:!0}},emits:["close"],setup(b,{emit:h}){const x=b,C=S(A.userStore).userInfo||{},v=h,T=k([{label:"序号",type:"index",width:"60"},{label:"会议名称",key:"meetingName",prop:"meetingName",minWidth:"180",showOverflowTooltip:!0},{label:"评审类型",key:"meetingTypeName",prop:"meetingTypeName"},{label:"评审项目",key:"projectName",slot:"projectName",minWidth:"80"},{label:"联系人/联系方式",key:"contact",prop:"contact",minWidth:"180",render:e=>s("span",e.connecter+"/"+e.contact)},{label:"是否参与",key:"isAbsent",prop:"isAbsent",width:"80",render:e=>s("span",e.expertStatus===3||e.expertStatus===5?"是":"否")},{label:"是否请假",key:"isAbsent",prop:"isAbsent",width:"80",render:e=>s("span",e.expertStatus===5?"是":"否")},{label:"会议状态",key:"status",prop:"status",width:"80",render:e=>[s("span",{class:["dot mr-4",`${e.status===1?"bg-success":e.status===3?"bg-danger":""}`]}),s("span",{class:`${e.status===1?"text-success":e.status===3?"text-danger":""}`},e.status===1?"正常":"已取消")]},{label:"评审时间",key:"startTime",prop:"startTime",width:"280",render:e=>s("span",e.startTime+"~"+e.endTime)},{label:"操作",slot:"action",width:"80",fixed:"right"}]),f=d(),g=d(0),_=d(),m=async(e=(t=>(t=_.value)==null?void 0:t.pageParams)())=>{const r=await E({...e,expertId:C.value.userId});g.value=r.data.total,f.value=r.data.records},D=e=>{l.value.visible=!0,l.value.meetingId=e.meetingId},l=d({visible:!1,meetingId:void 0}),N=()=>{l.value.visible=!1},i=k({visible:!1,data:void 0}),w=e=>{i.visible=!0,i.data=e},$=e=>{i.visible=!1,e&&m()};return P(()=>x.visible,async e=>{e&&m()}),(e,t)=>{const r=c("table-list"),I=c("el-button"),j=c("el-dialog");return u(),p(R,null,[o(j,{"model-value":b.visible,title:"会议请假",width:"80%",onClose:t[1]||(t[1]=a=>v("close"))},{footer:n(()=>[y("span",M,[o(I,{onClick:t[0]||(t[0]=a=>v("close"))},{default:n(()=>t[2]||(t[2]=[F("关闭")])),_:1})])]),default:n(()=>[o(r,{ref_key:"tableListRef",ref:_,column:T,total:g.value,data:f.value,onGetTableData:m},{projectName:n(({scope:a})=>[y("a",{onClick:L=>D(a.row)},"查看",8,G)]),action:n(({scope:a})=>[a.row.expertStatus!==5?(u(),p("a",{key:0,onClick:L=>w(a.row)},"请假",8,O)):(u(),p("span",q,"-"))]),_:1},8,["column","total","data"])]),_:1},8,["model-value"]),o(B,{visible:l.value.visible,"meeting-id":l.value.meetingId,onClose:N},null,8,["visible","meeting-id"]),o(W,{visible:i.visible,data:i.data,onClose:$},null,8,["visible","data"])],64)}}});export{X as default};
|