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 lines
2.7KB

  1. import{p as j}from"./applicationEvaluate-e84d818e.js";import{a as g,x as F,r as d,o as L,b as l,c,d as _,f as e,h as a,i as C,j as N,F as M,k as P}from"./index-dd5fae99.js";const S=["onClick"],B=["onClick"],E=P({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=F(),u=d(),b=d(5),T=g([{label:"序号",type:"index",width:"80"},{label:"应用名称",key:"applicationName",prop:"applicationName",minWidth:"150",showOverflowTooltip:!0},{label:"申报单位",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"应用类型",key:"applicationType",prop:"applicationType",width:"100"},{label:"应用领域",key:"bizDomain",prop:"bizDomain",width:"80"},{label:"发布端",key:"publishSide",prop:"publishSide",width:"80"},{label:"操作",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 L(()=>{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(),_(M,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:"应用名称"},{default:a(()=>[e(q,{modelValue:n.name,"onUpdate:modelValue":t[0]||(t[0]=o=>n.name=o),placeholder:"请输入"},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("查询")])),_:1}),e(y,{onClick:x},{default:a(()=>t[3]||(t[3]=[C("重置")])),_: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:"待评价",name:"1"}),e(w,{label:"已评价",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}})},"评价",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}})},"详情",8,B)):N("",!0)]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{G as default};