unit-list-item.779fc91e.js 2.5 KB

1
  1. import{d as q,ag as v,c as t,q as a,ai as g,F as d,e as I}from"./index.332c7f08.js";import{i as D}from"./icon-edit.664c5ff1.js";import{i as w}from"./icon-muit-message.0a72e92d.js";import{C}from"./index.324108a5.js";import{C as u}from"./index.91135ff9.js";import{I as _}from"./index.96a8db5e.js";const T="_unitTest_wtvqq_1",B="_searchBand_wtvqq_1",E="_cellGroup_wtvqq_7",f="_img_wtvqq_15",G="_unitTitle_wtvqq_20",N="_pass_wtvqq_28",y="_unitSection_wtvqq_31",b="_name_wtvqq_35",h="_endTime_wtvqq_41",A="_unitBtnGroup_wtvqq_45",F="_liveList_wtvqq_58",W="_unitDetail_wtvqq_61",M="_tabsWrap_wtvqq_64",x="_tabsWrapIcon_wtvqq_68",L="_DialogTitle_wtvqq_74",Y="_DialogConent_wtvqq_94";var Q={unitTest:T,searchBand:B,cellGroup:E,img:f,unitTitle:G,"no-start":"_no-start_wtvqq_25",pass:N,unitSection:y,name:b,endTime:h,unitBtnGroup:A,liveList:F,unitDetail:W,tabsWrap:M,tabsWrapIcon:x,DialogTitle:L,DialogConent:Y};const j="_unitItem_1atnt_1",S="_testName_1atnt_9",k="_editImg_1atnt_16",U="_msgImg_1atnt_21",V="_testContent_1atnt_25",$="_testItem_1atnt_31",O="_name_1atnt_42";var e={unitItem:j,testName:S,editImg:k,msgImg:U,testContent:V,testItem:$,name:O},X=q({name:"unit-list-item",props:{item:{type:Object,default:()=>{}}},setup(s){const c=v(),r=n=>{var i;n.stopPropagation(),I({api:"joinChatGroup",content:{type:"multi",id:(i=s.item)==null?void 0:i.imGroupId}})},p=()=>{c.push({path:"/unitDetail",query:{id:s.item.id}})};return()=>t(d,null,[t(C,{inset:!0,class:e.unitItem,onClick:p},{default:()=>[t(u,{center:!0},{icon:()=>t(_,{src:D,class:e.editImg},null),title:()=>{var n;return t("div",{class:["van-ellipsis",e.testName]},[((n=s.item)==null?void 0:n.name)||"--"])},extra:()=>t(_,{src:w,class:e.msgImg,onClick:r},null)}),t(u,null,{title:()=>{var n,i,o,m,l;return t("div",{class:e.testContent},[t("div",{class:e.testItem},[t("span",{class:e.name},[a("\u73ED\u7EA7\u540D\u79F0")]),t("p",null,[(n=s.item)==null?void 0:n.classGroupName])]),t("div",{class:e.testItem},[t("span",{class:e.name},[a("\u4E50\u56E2\u540D\u79F0")]),t("p",null,[(i=s.item)==null?void 0:i.orchestraName])]),t("div",{class:e.testItem},[t("span",{class:e.name},[a("\u622A\u6B62\u65F6\u95F4")]),t("p",null,[g((o=s.item)==null?void 0:o.expiryDate).format("YYYY-MM-DD")])]),t("div",{class:e.testItem},[t("span",{class:e.name},[a("\u63D0\u4EA4\u4EBA\u6570")]),t("p",null,[((m=s.item)==null?void 0:m.commitNum)||0,a("\u4EBA")])]),t("div",{class:e.testItem},[t("span",{class:e.name},[a("\u8FBE\u6807\u4EBA\u6570")]),t("p",{style:{color:"var(--van-primary)"}},[((l=s.item)==null?void 0:l.passNum)||0,a("\u4EBA")])])])}})]})])}});export{X as U,Q as s};