|
- import{g as j}from"./expertStore.39ace308.js";import I from"./meetingProjectDialog.68e0f33b.js";import{d as O,x as S,r as o,b as h,Z as c,o as $,c as w,e as u,f as m,g as k,h as r,i as v,F as J}from"./index.2dada31c.js";import T from"./evaluateDialog.20dd43f6.js";import"./reviewMeeting.a510f7b8.js";const q={class:""},B=["onClick"],P=["onClick"],F=["onClick"],L=O({beforeRouteEnter(s,p,n){s.query.name&&(s.meta.title="\u5C65\u804C\u8BB0\u5F55-"+s.query.name),n()}}),Z=Object.assign(L,{__name:"index",setup(s){const p=S(),n=o(),_=o(0),y=h([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4F1A\u8BAE\u540D\u79F0",key:"meetingName",prop:"meetingName",minWidth:"80",showOverflowTooltip:!0},{label:"\u8BC4\u5BA1\u9879\u76EE",slot:"projectName",minWidth:"100",showOverflowTooltip:!0},{label:"\u8BC4\u5BA1\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u662F\u5426\u53C2\u4F1A",key:"inviteStatus",prop:"inviteStatus",width:"150",render:e=>c("span","\u662F")},{label:"\u662F\u5426\u8BF7\u5047",key:"expertStatus",prop:"expertStatus",width:"150",render:e=>c("span",e.expertStatus===5?"\u662F":"\u5426")},{label:"\u662F\u5426\u8BC4\u4EF7",key:"hasJudge",prop:"hasJudge",width:"150",render:e=>c("span",e.hasJudge?"\u662F":"\u5426")},{label:"\u64CD\u4F5C",slot:"action",width:"100",fixed:"right"}]),f=o([]),d=async(e=n.value.pageParams)=>{const i=await j({...e,expertId:p.query.id});f.value=i.data.records,_.value=i.data.total},x=e=>{a.value.visible=!0,a.value.meetingId=e.meetingId},a=o({visible:!1,meetingId:void 0}),C=()=>{a.value.visible=!1},t=h({visible:!1,data:{},isEdit:!0}),D=o(),b=(e,i)=>{t.data=e,t.isEdit=i,t.visible=!0},E=e=>{t.visible=!1,e&&d()};return $(()=>{d()}),(e,i)=>{const R=w("table-list"),N=w("el-card");return u(),m(J,null,[k("div",q,[r(N,{class:"box-card"},{default:v(()=>[r(R,{ref_key:"tableListRef",ref:n,column:y,data:f.value,total:_.value,onGetTableData:d},{projectName:v(({scope:l})=>[k("a",{onClick:g=>x(l.row)},"\u67E5\u770B",8,B)]),action:v(({scope:l})=>[l.row.hasJudge?(u(),m("a",{key:1,onClick:g=>b(l.row,!1)},"\u67E5\u770B\u8BC4\u4EF7",8,F)):(u(),m("a",{key:0,onClick:g=>b(l.row,!0)},"\u5C65\u804C\u8BC4\u4EF7",8,P))]),_:1},8,["column","data","total"])]),_:1}),r(I,{visible:a.value.visible,"meeting-id":a.value.meetingId,onClose:C},null,8,["visible","meeting-id"])]),r(T,{ref_key:"evaluateDialogRef",ref:D,visible:t.visible,data:t.data,"is-edit":t.isEdit,onClose:E},null,8,["visible","data","is-edit"])],64)}}});export{Z as default};
|