Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.f89794fe.js 2.4KB

7 månader sedan
1
  1. /* empty css *//* empty css *//* empty css */import{m as y}from"./advice-feedback.82b87890.js";import{d as B,A as C,r as o,l as w,B as N,R as L,L as R,D as V,c as v,b as a,e as l,w as t,o as d,g as D,F,v as P,t as c,H as $}from"./index.db1e0641.js";const z={class:"feedback-progress"},O={class:"card-list"},S={class:"info"},U={class:"title"},j=a("span",{class:"label"},"\u53CD\u9988\u7C7B\u578B\uFF1A",-1),q={class:"value"},A=a("span",{class:"label"},"\u53CD\u9988\u8FDB\u5EA6\uFF1A",-1),E=a("span",{class:"label"},"\u53CD\u9988\u65F6\u95F4\uFF1A",-1),H={class:"value"},M=a("span",{class:"label"},"\u53CD\u9988\u5185\u5BB9\uFF1A",-1),G={class:"value"},I=["onClick"],J={key:1,class:"text-center text-info no-data"},K=B({name:"feedBackProgress"}),ae=Object.assign(K,{setup(Q){const p=C({pageNumber:1,pageSize:10}),s=o([]),f=o(0),i=o(!1),h=o(!1),n=o(!1),g=async()=>{const u=await y({...p});n.value&&(s.value=[],n.value=!1),f.value=u.data.total,s.value.length<f.value&&(p.pageNumber+=1,s.value=[...s.value,...u.data.records]),i.value=!1,s.value.length>=f.value&&(h.value=!0)},m=()=>{n.value=!0,p.pageNumber=1,h.value=!1,i.value=!0,g()};return w(()=>{g()}),(u,r)=>{const _=N,b=L,k=R,x=V;return d(),v("div",z,[a("div",O,[l(x,{modelValue:n.value,"onUpdate:modelValue":r[1]||(r[1]=e=>n.value=e),onRefresh:m},{default:t(()=>[s.value&&s.value.length?(d(),D(k,{key:0,loading:i.value,"onUpdate:loading":r[0]||(r[0]=e=>i.value=e),finished:h.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:m},{default:t(()=>[(d(!0),v(F,null,P(s.value,e=>(d(),v("div",{key:e,class:"card-list-item"},[a("div",S,[a("div",U,"\u53CD\u9988\u5355\u53F7\uFF1A"+c(e.feedbackNo),1),l(b,{gutter:"20"},{default:t(()=>[l(_,{span:"12"},{default:t(()=>[j,a("span",q,c(e.type===1?"\u5EFA\u8BAE":"\u95EE\u9898"),1)]),_:2},1024),l(_,{span:"12"},{default:t(()=>[A,a("span",{class:$(`value ${e.status===1?"text-warning":"text-success"}`)},c(e.status===1?"\u672A\u5904\u7406":"\u5DF2\u5904\u7406"),3)]),_:2},1024),l(_,{span:"24"},{default:t(()=>[E,a("span",H,c(e.createOn),1)]),_:2},1024),l(_,{span:"24"},{default:t(()=>[M,a("span",G,c(e.feedbackContent),1)]),_:2},1024)]),_:2},1024)]),a("div",{class:"btn",onClick:T=>u.$router.push({name:"adviceFeedBackDetail",query:{id:e.id}})},"\u67E5\u770B\u8BE6\u60C5",8,I)]))),128))]),_:1},8,["loading","finished"])):(d(),v("p",J,"\u6682\u65E0\u6570\u636E"))]),_:1},8,["modelValue"])])])}}});export{ae as default};