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.

index.d8b0984a.js 6.0KB

7 kuukautta sitten
1
  1. /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as W,s as Y,A as G,r as n,l as H,S as J,m as X,n as Z,B as ee,N as ae,R as se,L as te,D as le,E as oe,P as ne,O as ue,c,b as s,e as t,w as o,K as re,F as R,x as de,u as pe,o as d,g as ie,v as ce,t as v,z as ve,Q as _e,q as A,h as me}from"./index.db1e0641.js";/* empty css *//* empty css */import{w as fe}from"./problem-feedback.02f1ee5b.js";const xe={class:"problem-feedback"},he={class:"flex px-[20px] mt-[20px]"},be=s("span",null,"\u9009\u62E9\u751F\u6210\u65F6\u95F4",-1),ge=s("span",null,"\u9009\u62E9\u5BA1\u6838\u72B6\u6001",-1),ke={class:"card-list"},Fe={class:"info"},Se={class:"title"},ye=s("span",{class:"label"},"\u5DE5\u5355\u7F16\u53F7\uFF1A",-1),Ce={class:"value"},De=s("span",{class:"label"},"\u5E94\u7528\u540D\u79F0\uFF1A",-1),we={class:"value"},Ne=s("span",{class:"label"},"\u5DE5\u5355\u7C7B\u578B\uFF1A",-1),Ve=s("span",{class:"label"},"\u5DE5\u5355\u72B6\u6001\uFF1A",-1),Le={class:"value"},Oe=s("span",{class:"label"},"\u751F\u6210\u65F6\u95F4\uFF1A",-1),Re={class:"value"},Ae=s("span",{class:"label"},"\u6240\u5C5E\u9879\u76EE\uFF1A",-1),Pe={class:"value"},Te=["onClick"],Ue=["onClick"],Ee={key:1,class:"text-center text-info no-data"},$e=W({name:"problemFeedback"}),Je=Object.assign($e,{setup(Be){const C=Y(de.userStore).userBaseInfo||{},b=G({pageNumber:1,pageSize:10}),p=n({}),D=[{text:"\u5168\u90E8",value:"ALL"},{text:"\u5904\u7406\u4E2D",value:"PROCESS_ON"},{text:"\u5F85\u5BA1\u6838",value:"ON_AUDIT"},{text:"\u672A\u901A\u8FC7",value:"PROCESS_FAIL"},{text:"\u5B8C\u7ED3",value:"END"}],f=n(!1),P=l=>{p.value.processState=l.selectedValues[0],F(),f.value=!1},x=n(!1),T=l=>{var a;p.value.startWarnTime=(a=l.selectedValues)==null?void 0:a.join("-"),F(),x.value=!1},u=n([]),S=n(0),h=n(!1),g=n(!1),k=n(!1),r=n("1"),y=async()=>{const l=await fe(r.value,{...b,...p.value,processState:r.value==="1"?"ON_AUDIT":p.value.processState==="ALL"?"":p.value.processState});k.value&&(u.value=[],k.value=!1),S.value=l.data.total,u.value.length<S.value&&(b.pageNumber+=1,u.value=[...u.value,...l.data.records]),h.value=!1,u.value.length>=S.value&&(g.value=!0)},w=()=>{b.pageNumber=1,g.value=!1,h.value=!0,y()},F=()=>{u.value=[],b.pageNumber=1,g.value=!1,h.value=!0,y()},_=n(),U=()=>{_.value=[];const l=new Date;_.value.push(l.getFullYear()),_.value.push(l.getMonth()+1),_.value.push(l.getDate())},E=l=>{r.value=l,F()},N=pe();return H(async()=>{N.query.tab&&(r.value=N.query.tab),U(),y()}),(l,a)=>{const $=J,V=X,B=Z,L=me,m=ee,I=ae,q=se,z=te,j=le,M=oe,O=ne,K=ue;return d(),c(R,null,[s("div",xe,[t($,{modelValue:p.value.blurry,"onUpdate:modelValue":a[0]||(a[0]=e=>p.value.blurry=e),shape:"round",placeholder:"\u641C\u7D22\u6307\u6807\u540D\u79F0/\u5E94\u7528\u540D\u79F0/\u9879\u76EE\u540D\u79F0",onBlur:F},null,8,["modelValue"]),t(B,{active:r.value,"onUpdate:active":a[1]||(a[1]=e=>r.value=e),shrink:"",class:"custom-tab",onChange:E},{default:o(()=>[t(V,{title:"\u5F85\u5BA1\u6838",name:"1"}),t(V,{title:"\u5DF2\u5BA1\u6838",name:"2"})]),_:1},8,["active"]),s("div",he,[s("div",{class:"flex text-[28px] px-[20px] py-[6px] bg-[#dde8f9] text-[#0967FD] items-end rounded-[10px] mr-[20px]",onClick:a[2]||(a[2]=e=>x.value=!0)},[be,t(L,{name:"down-m","svg-class":"down-m"})]),r.value==="2"?(d(),c("div",{key:0,class:"flex text-[28px] px-[20px] py-[6px] bg-[#dde8f9] text-[#0967FD] items-end rounded-[10px]",onClick:a[3]||(a[3]=e=>f.value=!0)},[ge,t(L,{name:"down-m","svg-class":"down-m"})])):re("",!0)]),s("div",ke,[t(j,{modelValue:k.value,"onUpdate:modelValue":a[5]||(a[5]=e=>k.value=e),onRefresh:w},{default:o(()=>[u.value&&u.value.length?(d(),ie(z,{key:0,loading:h.value,"onUpdate:loading":a[4]||(a[4]=e=>h.value=e),finished:g.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:w},{default:o(()=>[(d(!0),c(R,null,ce(u.value,(e,Q)=>(d(),c("div",{key:Q,class:"card-list-item"},[s("div",Fe,[s("div",Se,v(e.normName),1),t(q,{gutter:"20"},{default:o(()=>[t(m,{span:"12"},{default:o(()=>[ye,s("span",Ce,v(e.orderNum),1)]),_:2},1024),t(m,{span:"12"},{default:o(()=>[De,s("span",we,v(e.applicationName),1)]),_:2},1024),t(m,{span:"12"},{default:o(()=>[Ne,s("span",{class:"value",style:ve(`${e.level==="\u7D27\u6025"?"color:#F5222D":e.level==="\u4E25\u91CD"?"color:#FFAE00":"color:#0967FD"}`)},v(e.level),5)]),_:2},1024),t(m,{span:"12"},{default:o(()=>[Ve,s("span",Le,[t(I,{color:`${e.processState==="PROCESS_FAIL"?"#F5222D":e.processState==="PROCESS_ON"?"#FFAE00":e.processState==="ON_AUDIT"?"#0967FD":"#4ECB74"}`,"text-color":"#FFFFFF",size:"large"},{default:o(()=>[_e(v(D.find(i=>i.value===e.processState).text),1)]),_:2},1032,["color"])])]),_:2},1024),t(m,{span:"24"},{default:o(()=>[Oe,s("span",Re,v(e.createOn),1)]),_:2},1024),t(m,{span:"24"},{default:o(()=>[Ae,s("span",Pe,v(e.projectName),1)]),_:2},1024)]),_:2},1024)]),r.value==="1"&&e.processState==="ON_AUDIT"&&(A(C).userRoleList.map(i=>i.name).includes("\u533A\u57DF\u7BA1\u7406\u5458")||A(C).userRoleList.map(i=>i.name).includes("\u8D85\u7EA7\u7BA1\u7406\u5458"))?(d(),c("div",{key:0,class:"btn",onClick:i=>l.$router.push({name:"problemFeedbackDetail",query:{type:2,id:e.id}})},"\u5BA1\u6838\u5DE5\u5355",8,Te)):(d(),c("div",{key:1,class:"btn",onClick:i=>l.$router.push({name:"problemFeedbackDetail",query:{type:3,id:e.id}})},"\u67E5\u770B\u8BE6\u60C5",8,Ue))]))),128))]),_:1},8,["loading","finished"])):(d(),c("p",Ee,"\u6682\u65E0\u6570\u636E"))]),_:1},8,["modelValue"])])]),t(O,{show:f.value,"onUpdate:show":a[7]||(a[7]=e=>f.value=e),position:"bottom"},{default:o(()=>[t(M,{columns:D.filter(e=>!["\u5904\u7406\u4E2D","\u5F85\u5BA1\u6838"].includes(e.text)),onConfirm:P,onCancel:a[6]||(a[6]=e=>f.value=!1)},null,8,["columns"])]),_:1},8,["show"]),t(O,{show:x.value,"onUpdate:show":a[10]||(a[10]=e=>x.value=e),position:"bottom"},{default:o(()=>[t(K,{modelValue:_.value,"onUpdate:modelValue":a[8]||(a[8]=e=>_.value=e),onConfirm:T,onCancel:a[9]||(a[9]=e=>x.value=!1)},null,8,["modelValue"])]),_:1},8,["show"])],64)}}});export{Je as default};