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 line
1.3KB

  1. import{l as f}from"./unitSelfEvaluation.5bb0a3dd.js";import{d as b,r as t,b as k,a0 as i,o as h,c as d,e as v,f as y,h as m,i as l,j as g,g as w}from"./index.622ee9e7.js";const x=["onClick"],C=b({name:"unitSelfEvaluation"}),B=Object.assign(C,{setup($){const o=t(),p=k([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u8BC4\u4EF7\u8BA1\u5212",key:"name",prop:"name"},{label:"\u81EA\u8BC4\u65F6\u95F4",key:"time",prop:"time",render:e=>i("span",`\u9879\u76EE\u7EC8\u9A8C\u540E${e.startSelfDays}\u5929\u540E\u5F00\u59CB\u81EA\u8BC4\uFF0C${e.completeSelfDays}\u5929\u5185\u5B8C\u6210\u81EA\u8BC4`)},{label:"\u5907\u6CE8",key:"remark",prop:"remark",render:e=>i("span",`${e.remark||"-"}`)},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:"80"}]),n=t([]),r=t(0),s=async(e=o.value.pageParams)=>{const a=await f({...e});n.value=a.data.records,r.value=a.data.total};return h(()=>{s()}),(e,a)=>{const u=d("table-list"),_=d("el-card");return v(),y("div",null,[m(_,null,{header:l(()=>[g("\u5217\u8868")]),default:l(()=>[m(u,{ref_key:"tableListRef",ref:o,column:p,data:n.value,total:r.value,onGetTableData:s},{action:l(({scope:c})=>[w("a",{onClick:D=>e.$router.push({name:"unitSelfProjectList",query:{title:c.row.name,planId:c.row.id}})},"\u81EA\u8BC4",8,x)]),_:1},8,["column","data","total"])]),_:1})])}}});export{B as default};