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

2 行
3.1KB

  1. import{p as L}from"./flowConfiguration.bcd7b13a.js";import{y as I,d as R,G as j,D as F,r,o as S,c,e as y,f as b,h as p,i as o,F as D,J as A,I as G,g as t,t as l,j as O}from"./index.d340e473.js";import{i as E}from"./index.f55de596.js";const J=d=>I.get("/api/v1/process/statistics/detail",{params:d}),M=d=>I.get("/api/v1/process/statistics/list",{params:d}),U={class:"flex justify-between text-center mt-24"},q={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},z=t("p",{class:"text-info text-14"},"\u6D41\u7A0B\u5B9E\u4F8B\u603B\u6570",-1),H={class:"text-primary text-36 font-bold",style:{"font-family":"DIN"}},K=t("p",{class:"text-info text-14"},"\u5DF2\u5B8C\u6210",-1),P={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Q=t("p",{class:"text-info text-14"},"\u5904\u7406\u4E2D",-1),W={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},X=t("p",{class:"text-info text-14"},"\u5E73\u5747\u5B8C\u6210\u8017\u65F6",-1),Y={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Z=t("p",{class:"text-info text-14"},"\u6700\u957F\u5B8C\u6210\u8017\u65F6",-1),$={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},tt=t("p",{class:"text-info text-14"},"\u6700\u77ED\u5B8C\u6210\u8017\u65F6",-1),et=R({name:"processStatistics"}),lt=Object.assign(et,{setup(d){const N=j(F.userStore).userInfo,v=r([]),n=r({}),T=async()=>{const e=await L({regionCode:N.value.regionCode*1});v.value=e.data.records,n.value.process=e.data.records[0].processType,h()},x=r();let m;const C=()=>{var i,f;m||(m=E(x.value));const e={tooltip:{show:!0,trigger:"axis",valueFormatter:a=>a+"\u5929"},xAxis:{type:"category",boundaryGap:!1,data:(i=_.value)==null?void 0:i.map(a=>a.instTypeName)},yAxis:{name:"\u5B8C\u6210\u8017\u65F6\uFF08\u5929\uFF09",type:"value"},series:[{data:(f=_.value)==null?void 0:f.map(a=>a.avgTime),type:"line"}]};m.setOption(e)},s=r({}),h=async()=>{const e=await J({instType:n.value.process});s.value=e.data},_=r([]),w=async()=>{const e=await M();_.value=e.data||[],C()};return S(async()=>{T(),w()}),(e,i)=>{const f=c("el-option"),a=c("el-select"),V=c("el-form-item"),k=c("el-form"),g=c("el-card");return y(),b(D,null,[p(g,{class:"mb-16"},{default:o(()=>[p(k,{ref:"formRef",model:n.value},{default:o(()=>[p(V,null,{default:o(()=>[p(a,{modelValue:n.value.process,"onUpdate:modelValue":i[0]||(i[0]=u=>n.value.process=u),onChange:h},{default:o(()=>[(y(!0),b(D,null,A(v.value,(u,B)=>(y(),G(f,{key:B,value:u.processType,label:u.formName},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),t("div",U,[t("div",null,[t("p",q,l(s.value.totalInst||0),1),z]),t("div",null,[t("p",H,l(s.value.finishedInst||0),1),K]),t("div",null,[t("p",P,l(s.value.pendingInst||0),1),Q]),t("div",null,[t("p",W,l(s.value.avgTime||0)+"\u5929",1),X]),t("div",null,[t("p",Y,l(s.value.maxTime||0)+"\u5929",1),Z]),t("div",null,[t("p",$,l(s.value.minTime||0)+"\u5929",1),tt])])]),_:1}),p(g,null,{header:o(()=>[O("\u5404\u6D41\u7A0B\u5E73\u5747\u5904\u7406\u65F6\u957F")]),default:o(()=>[t("div",{ref_key:"chartRef",ref:x,style:{height:"400px"}},null,512)]),_:1})],64)}}});export{lt as default};