import{C as y}from"./index.8e28f0b9.js";import{P as v}from"./Patrol.49bc16dd.js";import{r as n,a as s,F as l,j as e}from"./react.b0bedc10.js";import{s as S}from"./index.module.d37a815a.js";import"./index.87202aac.js";import{u as w}from"./index.a3f0fe79.js";import{F}from"./Plus.92b0b989.js";import"./zarm.80120c4d.js";import"./searchEmpty.9ddd526b.js";const o="lab",L=()=>{const r=w(),d=()=>{r("/campus/photograph",{state:{role:o}})},[a,u]=n.exports.useState([]),p={\u65E0\u9700\u5904\u7406:"#ccc",\u6574\u6539\u5B8C\u6210:"#12c287",\u5F85\u5904\u7406:"#faad14"},i=async(t=1)=>{const{code:m,items:f,msg:g,total:c}=await v().get({path:"/safe/campus/records",query:{st:((t-1)*10).toString(),pp:"10",entry:o}});return m===200?(u([...a,...f]),{success:!0,total:c}):(console.log(g),{success:!1,total:c})},h=t=>{r(`/school/approve/detail/${o}`,{state:{id:t.id}})};return n.exports.useEffect(()=>{i()},[]),s(l,{children:[e(y,{loadFetch:i,data:a,renderItem:t=>e(l,{children:s("div",{style:{fontSize:14},onClick:()=>{h(t)},children:[s("div",{style:{fontSize:16,fontWeight:700,display:"flex",justifyContent:"space-between"},children:[e("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:200},children:t.location}),e("span",{style:{color:p[t.reform_status_title]},children:t.reform_status_title})]}),s("div",{style:{color:"#999",marginTop:6,marginBottom:6},children:[e("span",{style:{paddingRight:4},children:"\u9690\u60A3\u7C7B\u578B"}),t.danger_type]}),s("div",{style:{color:"#999",paddingRight:4},children:[e("span",{style:{paddingRight:4},children:"\u63D0\u62A5\u65F6\u95F4"}),t.ctime]})]})})}),e("div",{onClick:d,className:S.add,children:e(F,{})})]})};export{L as default};
