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
3.1KB

  1. import S from"./meetingProjectDialog.7d4e4b78.js";import{d as A,G as B,D as P,b as k,a0 as s,r as d,L as F,c as m,e as u,f as p,h as o,i as n,g as h,j as R,F as V}from"./index.0b616ce3.js";import W from"./leaveDialog.8c5808a9.js";import{m as G}from"./expertReview.32cea4d6.js";import"./reviewMeeting.5e020164.js";const O=["onClick"],q=["onClick"],E={key:1},M={class:"dialog-footer"},z=A({name:"meetingsLeaveDialog"}),X=Object.assign(z,{props:{visible:{type:Boolean,default:!1,required:!0}},emits:["close"],setup(b,{emit:y}){const x=b,C=B(P.userStore).userInfo||{},v=y,D=k([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4F1A\u8BAE\u540D\u79F0",key:"meetingName",prop:"meetingName",minWidth:"180",showOverflowTooltip:!0},{label:"\u8BC4\u5BA1\u7C7B\u578B",key:"meetingTypeName",prop:"meetingTypeName"},{label:"\u8BC4\u5BA1\u9879\u76EE",key:"projectName",slot:"projectName",minWidth:"80"},{label:"\u8054\u7CFB\u4EBA/\u8054\u7CFB\u65B9\u5F0F",key:"contact",prop:"contact",minWidth:"180",render:e=>s("span",e.connecter+"/"+e.contact)},{label:"\u662F\u5426\u53C2\u4E0E",key:"isAbsent",prop:"isAbsent",width:"80",render:e=>s("span",e.expertStatus===3||e.expertStatus===5?"\u662F":"\u5426")},{label:"\u662F\u5426\u8BF7\u5047",key:"isAbsent",prop:"isAbsent",width:"80",render:e=>s("span",e.expertStatus===5?"\u662F":"\u5426")},{label:"\u4F1A\u8BAE\u72B6\u6001",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?"\u6B63\u5E38":"\u5DF2\u53D6\u6D88")]},{label:"\u8BC4\u5BA1\u65F6\u95F4",key:"startTime",prop:"startTime",width:"280",render:e=>s("span",e.startTime+"~"+e.endTime)},{label:"\u64CD\u4F5C",slot:"action",width:"80",fixed:"right"}]),f=d(),g=d(0),_=d(),c=async(e=(t=>(t=_.value)==null?void 0:t.pageParams)())=>{const r=await G({...e,expertId:C.value.userId});g.value=r.data.total,f.value=r.data.records},T=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},j=e=>{i.visible=!1,e&&c()};return F(()=>x.visible,async e=>{e&&c()}),(e,t)=>{const r=m("table-list"),I=m("el-button"),$=m("el-dialog");return u(),p(V,null,[o($,{"model-value":b.visible,title:"\u4F1A\u8BAE\u8BF7\u5047",width:"80%",onClose:t[1]||(t[1]=a=>v("close"))},{footer:n(()=>[h("span",M,[o(I,{onClick:t[0]||(t[0]=a=>v("close"))},{default:n(()=>[R("\u5173\u95ED")]),_:1})])]),default:n(()=>[o(r,{ref_key:"tableListRef",ref:_,column:D,total:g.value,data:f.value,onGetTableData:c},{projectName:n(({scope:a})=>[h("a",{onClick:L=>T(a.row)},"\u67E5\u770B",8,O)]),action:n(({scope:a})=>[a.row.expertStatus!==5?(u(),p("a",{key:0,onClick:L=>w(a.row)},"\u8BF7\u5047",8,q)):(u(),p("span",E,"-"))]),_:1},8,["column","total","data"])]),_:1},8,["model-value"]),o(S,{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:j},null,8,["visible","data"])],64)}}});export{X as default};