Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
4.2KB

  1. import{E as G}from"./index.efff8283.js";import{l as P}from"./performanceApprove.cba78a9e.js";import{d as R,r as m,D as W,b as q,c as l,e as T,I as x,i as t,h as e,g as i,j as C,n as V,t as S,k as F,a0 as D}from"./index.0b616ce3.js";const I={class:"flex"},H={class:"flex items-center"},J=["onClick"],K=R({name:"indexConfigApprove"}),ae=Object.assign(K,{setup(Q){const d=m("1"),{operationTypeOptions:f}=W.dictStore.globalDicts||{},o=q({name:void 0,times:void 0}),N=[{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:n=>D("span",f[n.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:n=>D("span",f[n.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(n=c.value.pageParams)=>{var r,p;const s=await P({...n,...o,start:((r=o.times)==null?void 0:r[0])||void 0,end:((p=o.times)==null?void 0:p[1])||void 0,times:void 0,auditType:1,auditStatusType:d.value*1});g.value=s.data.records,b.value=s.data.total},O=()=>{u()},y=()=>{o.name=void 0,o.times=void 0,u()},M=n=>{o.regionCode=n.regionLevel===3?n.regionCode:void 0,c.value.pageParams.pageNumber=1,u()},$=n=>{d.value=n,y()};return(n,s)=>{const r=l("el-col"),p=l("el-input"),_=l("el-form-item"),B=l("el-date-picker"),v=l("el-button"),h=l("el-row"),L=l("el-form"),w=l("el-card"),k=l("el-tab-pane"),U=l("el-tabs"),j=l("Warning"),z=l("el-icon"),A=l("el-tooltip"),E=l("table-list");return T(),x(h,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(w,{class:"w-full search"},{default:t(()=>[e(L,{model:o,size:"small","label-suffix":":"},{default:t(()=>[e(h,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(_,{label:"\u6307\u6807\u6A21\u677F\u540D\u79F0"},{default:t(()=>[e(p,{modelValue:o.name,"onUpdate:modelValue":s[0]||(s[0]=a=>o.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(B,{modelValue:o.times,"onUpdate:modelValue":s[1]||(s[1]=a=>o.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",I,[e(v,{type:"primary",onClick:O},{default:t(()=>[C("\u67E5\u8BE2")]),_:1}),e(v,{onClick:y},{default:t(()=>[C("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{class:"tab-card mt-8"},{header:t(()=>[e(U,{modelValue:d.value,"onUpdate:modelValue":s[2]||(s[2]=a=>d.value=a),onTabChange:$},{default:t(()=>[e(k,{name:"1",label:"\u5F85\u5BA1\u6838\u5217\u8868"}),e(k,{name:"2",label:"\u5BA1\u6838\u8BB0\u5F55"})]),_:1},8,["modelValue"])]),default:t(()=>[e(E,{ref_key:"tableListRef",ref:c,column:d.value==="1"?N: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?(T(),x(A,{key:0,content:a.row.auditMessage,placement:"bottom",effect:"light"},{default:t(()=>[e(z,{class:"ml-4 cursor-pointer"},{default:t(()=>[e(j)]),_:1})]),_:2},1032,["content"])):F("",!0)])]),action:t(({scope:a})=>[i("a",{onClick:X=>n.$router.push({name:"indexConfigApproveDetail",query:{id:a.row.id}})},S(d.value==="1"?"\u5BA1\u6838":"\u67E5\u770B"),9,J)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{ae as default};