25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
4.0KB

  1. import{E as G}from"./index-29b4120c.js";import{l as P}from"./performanceApprove-75a10e75.js";import{r as m,E as R,a as W,b as l,c as x,L as h,h as t,f as e,e as i,i as C,n as V,t as S,j as q,k as F,$ as N}from"./index-dd5fae99.js";const H={class:"flex"},I={class:"flex items-center"},J=["onClick"],K=F({name:"indexConfigApprove"}),ae=Object.assign(K,{setup(Q){const d=m("1"),{operationTypeOptions:f}=R.dictStore.globalDicts||{},s=W({name:void 0,times:void 0}),D=[{label:"序号",type:"index",width:"60"},{label:"指标模板名称",key:"name",prop:"name"},{label:"提交审核时间",key:"createOn",prop:"createOn"},{label:"审核操作",key:"operationType",prop:"operationType",render:o=>N("span",f[o.operationType]||"-")},{label:"操作",slot:"action",fixed:"right",width:80}],Y=[{label:"序号",type:"index",width:"60"},{label:"指标模板名称",key:"name",prop:"name"},{label:"提交审核时间",key:"createOn",prop:"createOn"},{label:"审核操作",key:"operationType",prop:"operationType",render:o=>N("span",f[o.operationType]||"-")},{label:"审核状态",slot:"auditStatusName",prop:"auditStatusName"},{label:"操作",slot:"action",fixed:"right",width:80}],b=m(0),g=m([]),c=m(),u=async(o=c.value.pageParams)=>{var r,p;const n=await P({...o,...s,start:((r=s.times)==null?void 0:r[0])||void 0,end:((p=s.times)==null?void 0:p[1])||void 0,times:void 0,auditType:1,auditStatusType:d.value*1});g.value=n.data.records,b.value=n.data.total},O=()=>{u()},y=()=>{s.name=void 0,s.times=void 0,u()},M=o=>{s.regionCode=o.regionLevel===3?o.regionCode:void 0,c.value.pageParams.pageNumber=1,u()},$=o=>{d.value=o,y()};return(o,n)=>{const r=l("el-col"),p=l("el-input"),_=l("el-form-item"),L=l("el-date-picker"),v=l("el-button"),w=l("el-row"),B=l("el-form"),k=l("el-card"),T=l("el-tab-pane"),E=l("el-tabs"),U=l("Warning"),j=l("el-icon"),z=l("el-tooltip"),A=l("table-list");return x(),h(w,null,{default:t(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:t(()=>[e(G,{onGetTree:M})]),_:1}),e(r,{span:20},{default:t(()=>[e(k,{class:"w-full search"},{default:t(()=>[e(B,{model:s,size:"small","label-suffix":":"},{default:t(()=>[e(w,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(_,{label:"指标模板名称"},{default:t(()=>[e(p,{modelValue:s.name,"onUpdate:modelValue":n[0]||(n[0]=a=>s.name=a),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:9},{default:t(()=>[e(_,{label:"创建时间"},{default:t(()=>[e(L,{modelValue:s.times,"onUpdate:modelValue":n[1]||(n[1]=a=>s.times=a),type:"daterange",editable:!1,format:"YYYY-MM-DD","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:7},{default:t(()=>[e(_,{class:"btn"},{default:t(()=>[i("div",H,[e(v,{type:"primary",onClick:O},{default:t(()=>n[3]||(n[3]=[C("查询")])),_:1}),e(v,{onClick:y},{default:t(()=>n[4]||(n[4]=[C("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"tab-card mt-8"},{header:t(()=>[e(E,{modelValue:d.value,"onUpdate:modelValue":n[2]||(n[2]=a=>d.value=a),onTabChange:$},{default:t(()=>[e(T,{name:"1",label:"待审核列表"}),e(T,{name:"2",label:"审核记录"})]),_:1},8,["modelValue"])]),default:t(()=>[e(A,{ref_key:"tableListRef",ref:c,column:d.value==="1"?D:Y,data:g.value,total:b.value,onGetTableData:u},{auditStatusName:t(({scope:a})=>[i("div",I,[i("span",{class:V(`dot mr-4 ${a.row.auditStatus===1?"bg-warning":a.row.auditStatus===2?"bg-success":"bg-danger"}`)},null,2),i("span",{class:V(`${a.row.auditStatus===1?"text-warning":a.row.auditStatus===2?"text-success":"text-danger"}`)},S(a.row.auditStatusName),3),a.row.auditStatus===3?(x(),h(z,{key:0,content:a.row.auditMessage,placement:"bottom",effect:"light"},{default:t(()=>[e(j,{class:"ml-4 cursor-pointer"},{default:t(()=>[e(U)]),_:1})]),_:2},1032,["content"])):q("",!0)])]),action:t(({scope:a})=>[i("a",{onClick:X=>o.$router.push({name:"indexConfigApproveDetail",query:{id:a.row.id}})},S(d.value==="1"?"审核":"查看"),9,J)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{ae as default};