您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
2.8KB

  1. import{p as j}from"./applicationEvaluate.a5a2f07e.js";import{d as F,b as g,x as L,r as d,o as M,c as l,e as c,f as _,h as e,i as a,j as C,k as N,F as P}from"./index.b0d60c48.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 t=await j(r.value,m.query.planId,{...i,...n});f.value=t.data.records,b.value=t.data.total},V=()=>{p()},x=()=>{n.name=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,p()},r=d("1"),I=i=>{r.value=i,p()};return M(()=>{p()}),(i,t)=>{const q=l("el-input"),v=l("el-form-item"),k=l("el-col"),y=l("el-button"),D=l("el-row"),O=l("el-form"),h=l("el-card"),w=l("el-tab-pane"),z=l("el-tabs"),R=l("table-list");return c(),_(P,null,[e(h,{class:"search mb-16"},{default:a(()=>[e(O,{"label-suffix":":",model:n,size:"small"},{default:a(()=>[e(D,{gutter:16},{default:a(()=>[e(k,{span:8},{default:a(()=>[e(v,{label:"\u5E94\u7528\u540D\u79F0"},{default:a(()=>[e(q,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>n.name=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(k,{span:16},{default:a(()=>[e(v,{class:"btn"},{default:a(()=>[e(y,{type:"primary",onClick:V},{default:a(()=>t[2]||(t[2]=[C("\u67E5\u8BE2")])),_:1}),e(y,{onClick:x},{default:a(()=>t[3]||(t[3]=[C("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(h,{class:"tab-card"},{header:a(()=>[e(z,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=o=>r.value=o),onTabChange:I},{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:o})=>[r.value==="1"?(c(),_("a",{key:0,onClick:$=>i.$router.push({name:"applicationMark",query:{appId:o.row.id,appraisalId:o.row.appraisalId}})},"\u8BC4\u4EF7",8,S)):N("",!0),r.value==="2"?(c(),_("a",{key:1,onClick:$=>i.$router.push({name:"applicationMarkDetail",query:{appId:o.row.id,appraisalId:o.row.appraisalId}})},"\u8BE6\u60C5",8,B)):N("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{G as default};