import{_ as a,r as e,a as l,z as s,b as t,c as o,l as u,w as r,T as n,U as d,i as m,f as i,h as c,e as p,d as _,k as v,F as f,j as h,t as g,u as b}from"./index-Cd7oqaqo.js";import{_ as j}from"./z-paging.Cu8jht51.js";import{n as w}from"./navBarSearch.DT8MzxFE.js";import{a as y}from"./api.rwMLhj-q.js";import{d as V}from"./dayjs.min.C73DX6gN.js";import{n as k}from"./navTo.DuPDTCnN.js";import{a as x}from"./arrowright.BzSXc355.js";import"./headImg.D8PzAUux.js";import"./logo.Cf3Z9Qoj.js";const C=a({__name:"sickList",setup(a){const C=e(null),z=e(null),U=e([]),Y=e(0);e("");const D=e("");e(!0);const W=e("doctor"),I=e("疾病临床病例库"),L=e([{label:"正序",value:"asc"},{label:"倒序",value:"desc"}]),M=l({article_num:"",push_date:""});s((a=>{"hospital"==a.type&&(W.value="hospital"),D.value=a.name,a.name&&(I.value=a.name+"临床病例库"),(a.name="医生")&&!a.id&&(D.value=""),"new"==a.order&&(M.push_date="asc"),"read"==a.order&&(M.article_num="desc")}));const N=a=>{C.value.reload()},S=(a,e)=>{(async a=>{let e={label_name:D.value};M.article_num||delete M.article_num,M.push_date||delete M.push_date,(M.article_num||M.push_date)&&(e.order=M),y.getSearchLabel({...e,...a}).then((a=>{C.value.complete(a.data.data.data),Y.value=a.data.data.total})).catch((a=>{C.value.complete(!1)}))})({page:a,page_size:e})},T=a=>{console.log(a),a&&(I.value=a+"临床病例库",D.value=a,U.value=[],M.article_num="",M.push_date="",C.value.reload())};return(a,e)=>{const l=t(o("up-dropdown-item"),n),s=t(o("up-dropdown"),d),y=m,Y=t(o("up--image"),i),W=t(o("z-paging"),j);return c(),u(y,{class:"u-page"},{default:r((()=>[p(W,{ref_key:"paging",ref:C,"inside-more":"","loading-more-no-more-text":"咱也是有底线的！","auto-show-back-to-top":!0,modelValue:U.value,"onUpdate:modelValue":e[2]||(e[2]=a=>U.value=a),onQuery:S},{top:r((()=>[p(w,{searchWord:D.value,navName:I.value,type:"case",onChangeWord:T},null,8,["searchWord","navName"]),p(y,{class:"filterbox"},{default:r((()=>[p(s,{class:"u-dropdown",ref_key:"uDropdownRef",ref:z},{default:r((()=>[p(l,{modelValue:M.push_date,"onUpdate:modelValue":e[0]||(e[0]=a=>M.push_date=a),title:"发布时间",onChange:N,options:L.value},null,8,["modelValue","options"]),p(l,{modelValue:M.article_num,"onUpdate:modelValue":e[1]||(e[1]=a=>M.article_num=a),title:"文章数量",onChange:N,options:L.value},null,8,["modelValue","options"])])),_:1},512)])),_:1})])),default:r((()=>[p(y,{class:"listbox"},{default:r((()=>[(c(!0),_(f,null,v(U.value,((a,e)=>(c(),u(y,{class:"item",key:e,onClick:e=>{return l=a.label_iden,s=a.label_name,void k({url:`/pages/search/search?case_id=${l}&case_name=${s}`});var l,s}},{default:r((()=>[p(y,{class:"title ellipsis"},{default:r((()=>[h(g(a.label_name),1)])),_:2},1024),p(y,{class:"deal"},{default:r((()=>[p(y,{class:"left"},{default:r((()=>[p(y,{class:"count"},{default:r((()=>[h(" 病例数："+g(a.video_num+a.article_num),1),p(Y,{src:b(x),width:"32rpx",height:"32rpx"},null,8,["src"])])),_:2},1024)])),_:2},1024),p(y,{class:"time"},{default:r((()=>[p(y,{class:"num"},{default:r((()=>{return[h("更新时间："+g((e=a.last_push_date,V(e).format("YYYY-MM-DD"))),1)];var e})),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1},8,["modelValue"])])),_:1})}}},[["__scopeId","data-v-292134b0"]]);export{C as default};
