Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
5.1KB

  1. import{d as Y,A as U,b as T,r as f,a0 as r,o as $,c as i,e as M,f as L,h as t,i as a,u as v,I as B,k as H,g as d,j as N,F as X}from"./index.0660698f.js";import{E as z}from"./index.248d7be2.js";import{a as F}from"./reviewMeeting.03a088fd.js";import W from"./meetingProjectDialog.df9f324a.js";import{g as h,a as q}from"./getIsShowRegionTree.9a4cfdb8.js";const J={class:"flex"},K={class:"flex justify-between"},Q=d("span",null,"\u5217\u8868",-1),Z=["onClick"],ee=["onClick"],te=Y({name:"reviewMeeting"}),re=Object.assign(te,{setup(ae){const k=U(),l=T({name:void 0,projectName:void 0,times:void 0}),m=f(),R=f(0),I=T([{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"}]),y=f([]),A=e=>{l.regionCode=e.regionCode,l.regionLevel=e.regionLevel,m.value.pageParams.pageNumber=1,u()},u=async(e=m.value.pageParams)=>{var s,p;const n=await F({...e,...l,startTime:((s=l.times)==null?void 0:s[0])||void 0,endTime:((p=l.times)==null?void 0:p[1])||void 0,times:void 0});y.value=n.data.records,R.value=n.data.total},D=()=>{u()},w=()=>{l.name=void 0,l.projectName=void 0,l.times=void 0,m.value.pageParams.pageNumber=1,m.value.pageParams.pageSize=10,u()},P=e=>{k.push({name:"addMeeting"})},C=e=>{k.push({name:"meetingDetail",query:{id:e.meetingId}})},x=e=>{c.value.visible=!0,c.value.meetingId=e.meetingId},c=f({visible:!1,meetingId:void 0}),V=()=>{c.value.visible=!1};return $(()=>{h(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||u()}),(e,n)=>{const s=i("el-col"),p=i("el-input"),_=i("el-form-item"),g=i("el-row"),j=i("el-date-picker"),b=i("el-button"),G=i("el-form"),E=i("el-card"),S=i("table-list");return M(),L(X,null,[t(g,null,{default:a(()=>[v(h)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(M(),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:A},null,8,["params"])]),_:1})):H("",!0),t(s,{span:v(h)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:a(()=>[t(E,{class:"w-full search"},{default:a(()=>[t(G,{model:l,size:"small","label-suffix":":"},{default:a(()=>[t(g,{gutter:16,class:"mb-16"},{default:a(()=>[t(s,{span:12},{default:a(()=>[t(_,{label:"\u4F1A\u8BAE\u540D\u79F0"},{default:a(()=>[t(p,{modelValue:l.name,"onUpdate:modelValue":n[0]||(n[0]=o=>l.name=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:a(()=>[t(_,{label:"\u8BC4\u5BA1\u9879\u76EE"},{default:a(()=>[t(p,{modelValue:l.projectName,"onUpdate:modelValue":n[1]||(n[1]=o=>l.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(_,{label:"\u8BC4\u5BA1\u65F6\u95F4"},{default:a(()=>[t(j,{modelValue:l.times,"onUpdate:modelValue":n[2]||(n[2]=o=>l.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(_,{class:"btn"},{default:a(()=>[d("div",J,[t(b,{type:"primary",onClick:D},{default:a(()=>[N("\u67E5\u8BE2")]),_:1}),t(b,{onClick:w},{default:a(()=>[N("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(E,{class:"w-full mt-8"},{header:a(()=>[d("div",K,[Q,d("div",null,[t(b,{type:"primary",size:"small",icon:"Plus",onClick:P},{default:a(()=>[N("\u65B0\u589E\u4F1A\u8BAE")]),_:1})])])]),default:a(()=>[t(S,{ref_key:"tableListRef",ref:m,column:I,data:y.value,total:R.value,onGetTableData:u},{projectName:a(({scope:o})=>[d("a",{onClick:O=>x(o.row)},"\u67E5\u770B",8,Z)]),action:a(({scope:o})=>[d("a",{onClick:O=>C(o.row)},"\u8BE6\u60C5",8,ee)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1}),t(W,{visible:c.value.visible,"meeting-id":c.value.meetingId,onClose:V},null,8,["visible","meeting-id"])],64)}}});export{re as default};