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.

index.49338375.js 3.0KB

1
  1. import{g as R}from"./projectReview.37886eb1.js";import{d as V,x as q,b as g,r as d,Z as O,o as D,c as r,e as u,f as c,h as a,i as t,j as v,g as k,t as P,F as $}from"./index.88314652.js";const B=["onClick"],F=["onClick"],G=V({beforeRouteEnter(p,m,n){p.query.title&&(p.meta.title=p.query.title),n()}}),E=Object.assign(G,{__name:"index",setup(p){const m=q(),n=g({projectName:void 0}),s=d(),f=d(5),h=g([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"150",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u81EA\u8BC4\u5F97\u5206",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:l=>O("span",l.selfAppraisalTotalScore||l.selfAppraisalTotalScore===0?l.selfAppraisalTotalScore:"-")},{label:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),_=d([]),i=async(l=s.value.pageParams)=>{const o=await R(m.query.reAppraisalGroupId,{...n,...l});_.value=o.data.records,f.value=o.data.total},I=()=>{i()},N=()=>{n.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,i()};return D(()=>{i()}),(l,o)=>{const C=r("el-input"),b=r("el-form-item"),w=r("el-col"),j=r("el-button"),T=r("el-row"),S=r("el-form"),y=r("el-card"),x=r("table-list");return u(),c($,null,[a(y,{class:"search mb-16"},{default:t(()=>[a(S,{"label-suffix":":",model:n,size:"small"},{default:t(()=>[a(T,{gutter:16},{default:t(()=>[a(w,{span:8},{default:t(()=>[a(b,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(C,{modelValue:n.projectName,"onUpdate:modelValue":o[0]||(o[0]=e=>n.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(w,{span:16},{default:t(()=>[a(b,{class:"btn"},{default:t(()=>[a(j,{type:"primary",onClick:I},{default:t(()=>o[1]||(o[1]=[v("\u67E5\u8BE2")])),_:1}),a(j,{onClick:N},{default:t(()=>o[2]||(o[2]=[v("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(y,null,{header:t(()=>o[3]||(o[3]=[k("div",{class:"flex justify-between items-center"},[k("span",null,"\u9879\u76EE\u5217\u8868")],-1)])),default:t(()=>[a(x,{ref_key:"tableListRef",ref:s,column:h,data:_.value,total:f.value,onGetTableData:i},{action:t(({scope:e})=>[e.row.canReAppraisal?(u(),c("a",{key:0,onClick:A=>l.$router.push({name:"reviewGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId,canReAppraisal:!0}})},P(e.row.draftId?"\u7EE7\u7EED\u6253\u5206":"\u6253\u5206"),9,B)):(u(),c("a",{key:1,onClick:A=>l.$router.push({name:"reviewScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId}})},"\u8BE6\u60C5",8,F))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{E as default};