|
- import{d as Y,y as U,b as M,r as _,Z as r,o as $,c as i,e as h,f as L,h as t,i as a,u as v,G as B,k as H,g as d,j as N,F as X}from"./index.88314652.js";import{E as z}from"./index.095525b5.js";import{b as F}from"./reviewMeeting.f2a98bd0.js";import W from"./meetingProjectDialog.02ba9505.js";import{g as k,a as q}from"./getIsShowRegionTree.6f629642.js";const Z={class:"flex"},J={class:"flex justify-between"},K=["onClick"],Q=["onClick"],ee=Y({name:"reviewMeeting"}),ie=Object.assign(ee,{setup(te){const y=U(),n=M({name:void 0,projectName:void 0,times:void 0}),m=_(),R=_(0),D=M([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4F1A\u8BAE\u540D\u79F0",key:"meetingName",prop:"meetingName",minWidth:"180",showOverflowTooltip:!0},{label:"\u8BC4\u5BA1\u9879\u76EE",key:"projectName",slot:"projectName",minWidth:"80"},{label:"\u8BC4\u5BA1\u65F6\u95F4",key:"startTime",prop:"startTime",width:"290",render:e=>r("span",e.startTime+"~"+e.endTime)},{label:"\u4F1A\u8BAE\u72B6\u6001",key:"status",prop:"status",width:"80",render:e=>[r("span",{class:["dot mr-4",`${e.status===1?"bg-success":e.status===3?"bg-danger":""}`]}),r("span",{class:`${e.status===1?"text-success":e.status===3?"text-danger":""}`},e.status===1?"\u6B63\u5E38":"\u5DF2\u53D6\u6D88")]},{label:"\u62BD\u53D6\u65B9\u5F0F",key:"inviteType",prop:"inviteType",width:"80",render:e=>r("span",e.inviteType===1?"\u968F\u673A\u62BD\u53D6":"\u6307\u5B9A\u62BD\u53D6")},{label:"\u62BD\u53D6\u72B6\u6001",key:"inviteStatus",prop:"inviteStatus",width:"80",render:e=>r("span",e.inviteStatus?"\u62BD\u53D6\u7ED3\u675F":"\u62BD\u53D6\u4E2D")},{label:"\u540D\u5355\u786E\u8BA4\u72B6\u6001",key:"confirmedRoster",prop:"confirmedRoster",width:"120",render:e=>[r("span",{class:`${e.confirmedRoster?"text-success":""}`},e.confirmedRoster?"\u5DF2\u786E\u8BA4":"\u672A\u786E\u8BA4")]},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createOn",prop:"createOn",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"80",fixed:"right"}]),E=_([]),I=e=>{n.regionCode=e.regionCode,n.regionLevel=e.regionLevel,m.value.pageParams.pageNumber=1,u()},u=async(e=m.value.pageParams)=>{var s,c;const l=await F({...e,...n,startTime:((s=n.times)==null?void 0:s[0])||void 0,endTime:((c=n.times)==null?void 0:c[1])||void 0,times:void 0});E.value=l.data.records,R.value=l.data.total},A=()=>{u()},w=()=>{n.name=void 0,n.projectName=void 0,n.times=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,u()},P=e=>{y.push({name:"addMeeting"})},C=e=>{y.push({name:"meetingDetail",query:{id:e.meetingId}})},x=e=>{p.value.visible=!0,p.value.meetingId=e.meetingId},p=_({visible:!1,meetingId:void 0}),V=()=>{p.value.visible=!1};return $(()=>{k(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||u()}),(e,l)=>{const s=i("el-col"),c=i("el-input"),f=i("el-form-item"),g=i("el-row"),j=i("el-date-picker"),b=i("el-button"),G=i("el-form"),T=i("el-card"),S=i("table-list");return h(),L(X,null,[t(g,null,{default:a(()=>[v(k)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(h(),B(s,{key:0,style:{"padding-right":"16px"},span:4},{default:a(()=>[t(z,{params:v(q)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!0}),onGetTree:I},null,8,["params"])]),_:1})):H("",!0),t(s,{span:v(k)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:a(()=>[t(T,{class:"w-full search"},{default:a(()=>[t(G,{model:n,size:"small","label-suffix":":"},{default:a(()=>[t(g,{gutter:16,class:"mb-16"},{default:a(()=>[t(s,{span:12},{default:a(()=>[t(f,{label:"\u4F1A\u8BAE\u540D\u79F0"},{default:a(()=>[t(c,{modelValue:n.name,"onUpdate:modelValue":l[0]||(l[0]=o=>n.name=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:a(()=>[t(f,{label:"\u8BC4\u5BA1\u9879\u76EE"},{default:a(()=>[t(c,{modelValue:n.projectName,"onUpdate:modelValue":l[1]||(l[1]=o=>n.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(g,{gutter:16},{default:a(()=>[t(s,{span:16},{default:a(()=>[t(f,{label:"\u8BC4\u5BA1\u65F6\u95F4"},{default:a(()=>[t(j,{modelValue:n.times,"onUpdate:modelValue":l[2]||(l[2]=o=>n.times=o),type:"datetimerange",editable:!1,format:"YYYY-MM-DD HH:mm","value-format":"YYYY-MM-DD HH:mm","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:a(()=>[t(f,{class:"btn"},{default:a(()=>[d("div",Z,[t(b,{type:"primary",onClick:A},{default:a(()=>l[3]||(l[3]=[N("\u67E5\u8BE2")])),_:1}),t(b,{onClick:w},{default:a(()=>l[4]||(l[4]=[N("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(T,{class:"w-full mt-8"},{header:a(()=>[d("div",J,[l[6]||(l[6]=d("span",null,"\u5217\u8868",-1)),d("div",null,[t(b,{type:"primary",size:"small",icon:"Plus",onClick:P},{default:a(()=>l[5]||(l[5]=[N("\u65B0\u589E\u4F1A\u8BAE")])),_:1})])])]),default:a(()=>[t(S,{ref_key:"tableListRef",ref:m,column:D,data:E.value,total:R.value,onGetTableData:u},{projectName:a(({scope:o})=>[d("a",{onClick:O=>x(o.row)},"\u67E5\u770B",8,K)]),action:a(({scope:o})=>[d("a",{onClick:O=>C(o.row)},"\u8BE6\u60C5",8,Q)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),t(W,{visible:p.value.visible,"meeting-id":p.value.meetingId,onClose:V},null,8,["visible","meeting-id"])],64)}}});export{ie as default};
|