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.3KB

  1. import{l as I}from"./selfEvaluationSure.d05ce6a0.js";import{d as S,r as l,y as C,o as x,c as s,e as d,G as L,i as p,h as r,f as h,Z as _}from"./index.a2494fc2.js";const O=["onClick"],V=["onClick"],D=S({name:"selfEvaluationSure"}),R=Object.assign(D,{setup(W){const a=l("1"),k=e=>{a.value=e,c.value.pageParams.pageNumber=1,i()},y=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BC4\u4EF7\u8BA1\u5212",key:"appraisalName",prop:"appraisalName",minWidth:180,showOverflowTooltip:!0},{label:"\u9879\u76EE",key:"projectName",prop:"projectName",minWidth:200,showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u81EA\u8BC4\u603B\u5206",key:"totalScore",prop:"totalScore",width:80},{label:"\u6253\u5206\u65F6\u95F4",key:"processLaunchTime",prop:"processLaunchTime",width:180},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:80}],f=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BC4\u4EF7\u8BA1\u5212",key:"appraisalName",prop:"appraisalName",minWidth:180,showOverflowTooltip:!0},{label:"\u9879\u76EE",key:"projectName",prop:"projectName",minWidth:200,showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:80},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:80},{label:"\u81EA\u8BC4\u603B\u5206",key:"totalScore",prop:"totalScore",width:80},{label:"\u6253\u5206\u65F6\u95F4",key:"processLaunchTime",prop:"processLaunchTime",width:180},{label:"\u5BA1\u6838\u72B6\u6001",key:"processStatusName",prop:"processStatusName",width:180,render:e=>[_("span",{class:["dot mr-4",`${e.processStatusName==="\u5BA1\u6838\u901A\u8FC7"?"bg-success":e.processStatusName==="\u5BA1\u6838\u4E2D"?"bg-warning":"bg-danger"}`]}),_("span",{class:e.processStatusName==="\u5BA1\u6838\u901A\u8FC7"?"text-success":e.processStatusName==="\u5BA1\u6838\u4E2D"?"text-warning":"text-danger"},e.processStatusName)]},{label:"\u5BA1\u6838\u65F6\u95F4",key:"processHandleTime",prop:"processHandleTime",width:180},{label:"\u64CD\u4F5C",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=C(),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 x(()=>{i()}),(e,t)=>{const b=s("el-tab-pane"),j=s("el-tabs"),w=s("table-list"),T=s("el-card");return d(),L(T,{class:"tab-card w-full"},{header:p(()=>[r(j,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),onTabChange:k},{default:p(()=>[r(b,{label:"\u5F85\u5BA1\u6838",name:"1"}),r(b,{label:"\u5BA1\u6838\u8BB0\u5F55",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)},"\u5BA1\u6838",8,O)):(d(),h("a",{key:1,onClick:g=>N(o.row)},"\u67E5\u770B",8,V))]),_:1},8,["column","data","total"])]),_:1})}}});export{R as default};