25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
3.1KB

  1. import{l as I}from"./selfEvaluationSure-f97fea2c.js";import{r as l,y as S,o as C,b as s,c as d,L as x,h as p,f as r,d as h,k as L,$ as k}from"./index-dd5fae99.js";const O=["onClick"],V=["onClick"],D=L({name:"selfEvaluationSure"}),B=Object.assign(D,{setup(W){const a=l("1"),_=e=>{a.value=e,c.value.pageParams.pageNumber=1,i()},y=[{label:"序号",type:"index",width:"60"},{label:"评价计划",key:"appraisalName",prop:"appraisalName",minWidth:180,showOverflowTooltip:!0},{label:"项目",key:"projectName",prop:"projectName",minWidth:200,showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"预算年度",key:"projectYear",prop:"projectYear",width:80},{label:"自评总分",key:"totalScore",prop:"totalScore",width:80},{label:"打分时间",key:"processLaunchTime",prop:"processLaunchTime",width:180},{label:"操作",slot:"action",fixed:"right",width:80}],f=[{label:"序号",type:"index",width:"60"},{label:"评价计划",key:"appraisalName",prop:"appraisalName",minWidth:180,showOverflowTooltip:!0},{label:"项目",key:"projectName",prop:"projectName",minWidth:200,showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"预算年度",key:"projectYear",prop:"projectYear",width:80},{label:"自评总分",key:"totalScore",prop:"totalScore",width:80},{label:"打分时间",key:"processLaunchTime",prop:"processLaunchTime",width:180},{label:"审核状态",key:"processStatusName",prop:"processStatusName",width:180,render:e=>[k("span",{class:["dot mr-4",`${e.processStatusName==="审核通过"?"bg-success":e.processStatusName==="审核中"?"bg-warning":"bg-danger"}`]}),k("span",{class:e.processStatusName==="审核通过"?"text-success":e.processStatusName==="审核中"?"text-warning":"text-danger"},e.processStatusName)]},{label:"审核时间",key:"processHandleTime",prop:"processHandleTime",width:180},{label:"操作",slot:"action",fixed:"right",width:80}],c=l(),u=l(0),n=l([]),i=async(e=c.value.pageParams)=>{n.value=[];const t=await I(a.value,{...e});n.value=t.data.records,u.value=t.data.total},m=S(),v=e=>{m.push({name:"selfScoreSureDetail",query:{appraisalId:e.appraisalId,projectId:e.projectId,projectCode:e.projectCode,instanceId:e.instCode,nodeId:e.nodeId,taskId:e.taskId}})},N=e=>{m.push({name:"selfScoreSureDetail",query:{appraisalId:e.appraisalId,projectId:e.projectId,projectCode:e.projectCode,instanceId:e.instCode,taskId:e.taskId}})};return C(()=>{i()}),(e,t)=>{const b=s("el-tab-pane"),j=s("el-tabs"),w=s("table-list"),T=s("el-card");return d(),x(T,{class:"tab-card w-full"},{header:p(()=>[r(j,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),onTabChange:_},{default:p(()=>[r(b,{label:"待审核",name:"1"}),r(b,{label:"审核记录",name:"2"})]),_:1},8,["modelValue"])]),default:p(()=>[r(w,{ref_key:"tableListRef",ref:c,column:a.value==="1"?y:f,data:n.value,total:u.value,onGetTableData:i},{action:p(({scope:o})=>[a.value==="1"?(d(),h("a",{key:0,onClick:g=>v(o.row)},"审核",8,O)):(d(),h("a",{key:1,onClick:g=>N(o.row)},"查看",8,V))]),_:1},8,["column","data","total"])]),_:1})}}});export{B as default};