import{_ as a,r as e,a as l,B as t,o as s,b as u,c as d,l as o,w as r,X as n,i as c,Y as m,a7 as i,a8 as _,f as p,h as v,e as f,d as b,k as h,F as g,G as j,j as w,t as k,u as y}from"./index-q2k2ACYe.js";import{_ as C}from"./z-paging.ZutRQgGs.js";import{n as x}from"./navBarSearch.CYdUINiq.js";import{a as V}from"./api.DzVGbGbs.js";import{d as Y}from"./dayjs.min.C73DX6gN.js";import{n as z}from"./navTo.BuQuWXQa.js";import{a as D}from"./arrowright.BzSXc355.js";import"./headImg.D8PzAUux.js";import"./navbg.DtxIXihV.js";const W=a({__name:"sickList",setup(a){const W=e(null),B=e(null),I=e([]),L=e(0);e("");const M=e("");e(!0);const N=e("doctor"),S=e("更新时间"),U=e("疾病临床病例库"),$=e("1"),q=e([{label:"更新时间",value:"1"},{label:"疾病名称",value:"2"},{label:"病例数",value:"3"}]),A=l({updated_at:"desc"});t((a=>{"hospital"==a.type&&(N.value="hospital"),M.value=a.name,a.name&&(U.value=a.name+"临床病例库"),(a.name="医生")&&!a.id&&(M.value=""),"new"==a.order&&(A.push_date="asc"),"read"==a.order&&(A.article_num="desc")})),s((()=>{var a;null==(a=W.value)||a.refresh()}));const F=a=>{1==a?(A.updated_at="desc",A.label_name="",A.article_num="",S.value="更新时间"):2==a?(A.updated_at="",A.label_name="asc",A.article_num="",S.value="疾病名称"):3==a&&(A.updated_at="",A.label_name="",A.article_num="desc",S.value="病例数"),$.value=a,B.value.close(),W.value.reload()},G=(a,e)=>{(async a=>{let e={label_name:M.value};A.article_num||delete A.article_num,A.updated_at||delete A.updated_at,A.label_name||delete A.label_name,(A.article_num||A.updated_at||A.label_name)&&(e.order=A),V.getSearchLabel({...e,...a}).then((a=>{W.value.complete(a.data.data.data),L.value=a.data.data.total})).catch((a=>{W.value.complete(!1)}))})({page:a,page_size:e})},P=a=>{U.value="疾病临床病例库",M.value=a,I.value=[],A.updated_at="desc",A.article_num="",A.label_name="",W.value.reload()};return(a,e)=>{const l=u(d("up-radio"),n),t=c,s=u(d("up-radio-group"),m),V=u(d("up-dropdown-item"),i),L=u(d("up-dropdown"),_),N=u(d("up--image"),p),A=u(d("z-paging"),C);return v(),o(t,{class:"u-page"},{default:r((()=>[f(A,{ref_key:"paging",ref:W,"inside-more":"","loading-more-no-more-text":"咱也是有底线的！","auto-show-back-to-top":!0,modelValue:I.value,"onUpdate:modelValue":e[1]||(e[1]=a=>I.value=a),onQuery:G},{top:r((()=>[f(x,{searchWord:M.value,navName:U.value,type:"case",onChangeWord:P},null,8,["searchWord","navName"]),f(t,{class:"filterbox"},{default:r((()=>[f(L,{class:"u-dropdown",ref_key:"uDropdownRef",ref:B},{default:r((()=>[f(V,{title:S.value},{default:r((()=>[f(t,{class:"dropcontent"},{default:r((()=>[f(s,{onChange:F,modelValue:$.value,"onUpdate:modelValue":e[0]||(e[0]=a=>$.value=a),iconPlacement:"right",placement:"column"},{default:r((()=>[(v(!0),b(g,null,h(q.value,(a=>(v(),o(t,{class:j(["column",[$.value==a.value?"active":""]]),key:a.value},{default:r((()=>[f(l,{activeColor:"#3CC7C0",label:a.label,name:a.value},null,8,["label","name"])])),_:2},1032,["class"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["title"])])),_:1},512)])),_:1})])),default:r((()=>[f(t,{class:"listbox"},{default:r((()=>[(v(!0),b(g,null,h(I.value,((a,e)=>(v(),o(t,{class:"item",key:e,onClick:e=>{return l=a.label_iden,t=a.label_name,void z({url:`/pages/search/search?case_id=${l}&case_name=${t}`});var l,t}},{default:r((()=>[f(t,{class:"title ellipsis"},{default:r((()=>[w(k(a.label_name),1)])),_:2},1024),f(t,{class:"deal"},{default:r((()=>[f(t,{class:"left"},{default:r((()=>[f(t,{class:"count"},{default:r((()=>[w(" 病例数："+k(a.video_num+a.article_num),1),f(N,{src:y(D),width:"32rpx",height:"32rpx"},null,8,["src"])])),_:2},1024)])),_:2},1024),f(t,{class:"time"},{default:r((()=>[f(t,{class:"num"},{default:r((()=>{return[w("更新时间："+k((e=a.last_push_date,Y(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-e040919e"]]);export{W as default};
