No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
4.3KB

  1. import{E}from"./index.108a55d4.js";import{l as P}from"./performanceApprove.ce148b03.js";import{d as R,r as m,B as W,b as q,c as l,e as x,G as h,i as t,h as e,g as i,j as C,n as V,t as S,k as F,Z as N}from"./index.a2494fc2.js";const Z={class:"flex"},H={class:"flex items-center"},I=["onClick"],J=R({name:"indexConfigApprove"}),ae=Object.assign(J,{setup(K){const d=m("1"),{operationTypeOptions:f}=W.dictStore.globalDicts||{},s=q({name:void 0,times:void 0}),D=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u6307\u6807\u6A21\u677F\u540D\u79F0",key:"name",prop:"name"},{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u5BA1\u6838\u64CD\u4F5C",key:"operationType",prop:"operationType",render:o=>N("span",f[o.operationType]||"-")},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:80}],Y=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u6307\u6807\u6A21\u677F\u540D\u79F0",key:"name",prop:"name"},{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u5BA1\u6838\u64CD\u4F5C",key:"operationType",prop:"operationType",render:o=>N("span",f[o.operationType]||"-")},{label:"\u5BA1\u6838\u72B6\u6001",slot:"auditStatusName",prop:"auditStatusName"},{label:"\u64CD\u4F5C",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()},B=o=>{d.value=o,y()};return(o,n)=>{const r=l("el-col"),p=l("el-input"),_=l("el-form-item"),$=l("el-date-picker"),v=l("el-button"),w=l("el-row"),G=l("el-form"),k=l("el-card"),T=l("el-tab-pane"),L=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(E,{onGetTree:M})]),_:1}),e(r,{span:20},{default:t(()=>[e(k,{class:"w-full search"},{default:t(()=>[e(G,{model:s,size:"small","label-suffix":":"},{default:t(()=>[e(w,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(_,{label:"\u6307\u6807\u6A21\u677F\u540D\u79F0"},{default:t(()=>[e(p,{modelValue:s.name,"onUpdate:modelValue":n[0]||(n[0]=a=>s.name=a),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:9},{default:t(()=>[e(_,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[e($,{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":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:7},{default:t(()=>[e(_,{class:"btn"},{default:t(()=>[i("div",Z,[e(v,{type:"primary",onClick:O},{default:t(()=>n[3]||(n[3]=[C("\u67E5\u8BE2")])),_:1}),e(v,{onClick:y},{default:t(()=>n[4]||(n[4]=[C("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"tab-card mt-8"},{header:t(()=>[e(L,{modelValue:d.value,"onUpdate:modelValue":n[2]||(n[2]=a=>d.value=a),onTabChange:B},{default:t(()=>[e(T,{name:"1",label:"\u5F85\u5BA1\u6838\u5217\u8868"}),e(T,{name:"2",label:"\u5BA1\u6838\u8BB0\u5F55"})]),_: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",H,[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"])):F("",!0)])]),action:t(({scope:a})=>[i("a",{onClick:Q=>o.$router.push({name:"indexConfigApproveDetail",query:{id:a.row.id}})},S(d.value==="1"?"\u5BA1\u6838":"\u67E5\u770B"),9,I)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{ae as default};