Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
4.0KB

  1. import{b as L}from"./unitSelfEvaluation.afcf0277.js";import{d as q,r as m,b as N,Z as C,o as E,c as o,e as n,f as c,h as a,i as t,j as T,g as S,n as V,t as R,G as U,k as Y}from"./index.a2494fc2.js";const F={key:0,class:"flex items-center"},M={key:1},Z=["onClick"],H=["onClick"],J=q({name:"unitSelfEvaluation"}),ee=Object.assign(J,{setup(K){const s=m(),x=N([{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\u603B\u5206",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:l=>C("span",l.selfAppraisalScoreTime?l.selfAppraisalTotalScore:"-")},{label:"\u6253\u5206\u65F6\u95F4",key:"selfAppraisalScoreTime",prop:"selfAppraisalScoreTime",width:"150",render:l=>C("span",l.selfAppraisalScoreTime||"-")},{label:"\u72B6\u6001",key:"status",slot:"status",width:120},{label:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),f=m([]),b=m(0),p=N({projectName:void 0}),d=async(l=s.value.pageParams)=>{const r=await L(i.value,{...l,...p});f.value=r.data.records,b.value=r.data.total},I=()=>{s.value.pageParams.pageNumber=1,d()},w=()=>{p.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,d()},i=m("1"),A=l=>{i.value=l,w()};return E(()=>{d()}),(l,r)=>{const $=o("el-input"),g=o("el-form-item"),v=o("el-col"),h=o("el-button"),O=o("el-row"),P=o("el-form"),k=o("el-card"),_=o("el-tab-pane"),B=o("el-tabs"),D=o("Warning"),W=o("el-icon"),z=o("el-tooltip"),G=o("table-list");return n(),c("div",null,[a(k,{class:"search mb-16"},{default:t(()=>[a(P,{"label-suffix":":",model:p,size:"small"},{default:t(()=>[a(O,{gutter:16},{default:t(()=>[a(v,{span:8},{default:t(()=>[a(g,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a($,{modelValue:p.projectName,"onUpdate:modelValue":r[0]||(r[0]=e=>p.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(v,{span:16},{default:t(()=>[a(g,{class:"btn"},{default:t(()=>[a(h,{type:"primary",onClick:I},{default:t(()=>r[2]||(r[2]=[T("\u67E5\u8BE2")])),_:1}),a(h,{onClick:w},{default:t(()=>r[3]||(r[3]=[T("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(k,{shadow:"never",class:"tab-card"},{header:t(()=>[a(B,{modelValue:i.value,"onUpdate:modelValue":r[1]||(r[1]=e=>i.value=e),onTabChange:A},{default:t(()=>[a(_,{label:"\u5F85\u8BC4\u4EF7",name:"1"}),a(_,{label:"\u5DF2\u8BC4\u4EF7\u5F85\u786E\u8BA4",name:"2"}),a(_,{label:"\u5DF2\u786E\u8BA4",name:"3"})]),_:1},8,["modelValue"])]),default:t(()=>[a(G,{ref_key:"tableListRef",ref:s,column:x,data:f.value,total:b.value,onGetTableData:d},{status:t(({scope:e})=>{var u,y,j;return[(u=e.row)!=null&&u.status?(n(),c("div",F,[S("span",{class:V(`dot mr-4 ${((y=e.row)==null?void 0:y.status)===1?"bg-warning":e.row.status===3?"bg-success":"bg-danger"}`)},null,2),S("p",{class:V(`${((j=e.row)==null?void 0:j.status)===1?"text-warning":e.row.status===3?"text-success":"text-danger"}`)},R(e.row.statusName),3),e.row.status===2?(n(),U(z,{key:0,effect:"light",content:"Top Center prompts info",placement:"bottom"},{default:t(()=>[a(W,{color:"#ff3b30",class:"ml-3"},{default:t(()=>[a(D)]),_:1})]),_:1})):Y("",!0)])):(n(),c("span",M))]}),action:t(({scope:e})=>[i.value==="1"&&[1,2].includes(e.row.status)?(n(),c("a",{key:0,onClick:u=>l.$router.push({name:"unitSelfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId}})},"\u81EA\u8BC4\u6253\u5206",8,Z)):(n(),c("a",{key:1,onClick:u=>l.$router.push({name:"unitSelfScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId}})},"\u8BE6\u60C5",8,H))]),_:1},8,["column","data","total"])]),_:1})])}}});export{ee as default};