Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
2.8KB

  1. import{p as j}from"./applicationEvaluate.9a56a5e5.js";import{d as F,b as g,z as L,r as d,o as M,c as t,e as c,f as _,h as e,i as a,j as C,k as N,F as P}from"./index.d340e473.js";const S=["onClick"],B=["onClick"],E=F({beforeRouteEnter(s,n,m){s.query.title&&(s.meta.title=s.query.title),m()}}),G=Object.assign(E,{__name:"index",setup(s){const n=g({name:void 0}),m=L(),u=d(),b=d(5),T=g([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5E94\u7528\u540D\u79F0",key:"applicationName",prop:"applicationName",minWidth:"150",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"\u5E94\u7528\u7C7B\u578B",key:"applicationType",prop:"applicationType",width:"100"},{label:"\u5E94\u7528\u9886\u57DF",key:"bizDomain",prop:"bizDomain",width:"80"},{label:"\u53D1\u5E03\u7AEF",key:"publishSide",prop:"publishSide",width:"80"},{label:"\u64CD\u4F5C",slot:"action",width:80,fixed:"right"}]),f=d([]),p=async(i=u.value.pageParams)=>{const o=await j(r.value,m.query.planId,{...i,...n});f.value=o.data.records,b.value=o.data.total},V=()=>{p()},I=()=>{n.name=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,p()},r=d("1"),x=i=>{r.value=i,p()};return M(()=>{p()}),(i,o)=>{const q=t("el-input"),h=t("el-form-item"),v=t("el-col"),k=t("el-button"),z=t("el-row"),D=t("el-form"),y=t("el-card"),w=t("el-tab-pane"),O=t("el-tabs"),R=t("table-list");return c(),_(P,null,[e(y,{class:"search mb-16"},{default:a(()=>[e(D,{"label-suffix":":",model:n,size:"small"},{default:a(()=>[e(z,{gutter:16},{default:a(()=>[e(v,{span:8},{default:a(()=>[e(h,{label:"\u5E94\u7528\u540D\u79F0"},{default:a(()=>[e(q,{modelValue:n.name,"onUpdate:modelValue":o[0]||(o[0]=l=>n.name=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(v,{span:16},{default:a(()=>[e(h,{class:"btn"},{default:a(()=>[e(k,{type:"primary",onClick:V},{default:a(()=>[C("\u67E5\u8BE2")]),_:1}),e(k,{onClick:I},{default:a(()=>[C("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(y,{class:"tab-card"},{header:a(()=>[e(O,{modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=l=>r.value=l),onTabChange:x},{default:a(()=>[e(w,{label:"\u5F85\u8BC4\u4EF7",name:"1"}),e(w,{label:"\u5DF2\u8BC4\u4EF7",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>[e(R,{ref_key:"tableListRef",ref:u,column:T,data:f.value,total:b.value,onGetTableData:p},{action:a(({scope:l})=>[r.value==="1"?(c(),_("a",{key:0,onClick:$=>i.$router.push({name:"applicationMark",query:{appId:l.row.id,appraisalId:l.row.appraisalId}})},"\u8BC4\u4EF7",8,S)):N("",!0),r.value==="2"?(c(),_("a",{key:1,onClick:$=>i.$router.push({name:"applicationMarkDetail",query:{appId:l.row.id,appraisalId:l.row.appraisalId}})},"\u8BE6\u60C5",8,B)):N("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{G as default};