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

  1. import{g as $}from"./expertStore-7d1ebc1f.js";import j from"./meetingProjectDialog-551c4793.js";import{x as I,r as o,a as h,$ as c,o as O,b as w,c as u,d as m,e as k,f as r,h as v,F as S,k as J}from"./index-dd5fae99.js";import T from"./evaluateDialog-232b1fe5.js";import"./reviewMeeting-39e99ddc.js";const q={class:""},B=["onClick"],P=["onClick"],F=["onClick"],L=J({beforeRouteEnter(s,p,n){s.query.name&&(s.meta.title="履职记录-"+s.query.name),n()}}),z=Object.assign(L,{__name:"index",setup(s){const p=I(),n=o(),_=o(0),y=h([{label:"序号",type:"index",width:"60"},{label:"会议名称",key:"meetingName",prop:"meetingName",minWidth:"80",showOverflowTooltip:!0},{label:"评审项目",slot:"projectName",minWidth:"100",showOverflowTooltip:!0},{label:"评审时间",key:"createOn",prop:"createOn",width:"180"},{label:"是否参会",key:"inviteStatus",prop:"inviteStatus",width:"150",render:e=>c("span","是")},{label:"是否请假",key:"expertStatus",prop:"expertStatus",width:"150",render:e=>c("span",e.expertStatus===5?"是":"否")},{label:"是否评价",key:"hasJudge",prop:"hasJudge",width:"150",render:e=>c("span",e.hasJudge?"是":"否")},{label:"操作",slot:"action",width:"100",fixed:"right"}]),f=o([]),d=async(e=n.value.pageParams)=>{const i=await $({...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 O(()=>{d()}),(e,i)=>{const R=w("table-list"),N=w("el-card");return u(),m(S,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)},"查看",8,B)]),action:v(({scope:l})=>[l.row.hasJudge?(u(),m("a",{key:1,onClick:g=>b(l.row,!1)},"查看评价",8,F)):(u(),m("a",{key:0,onClick:g=>b(l.row,!0)},"履职评价",8,P))]),_:1},8,["column","data","total"])]),_:1}),r(j,{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};