1 |
- import{d as H,r as u,a as s,b as K,o as $,c as m,e as h,f as w,w as q,v as G,g as r,h as o,i as b,t as J,F as M,j as S,k as T,n as P,l as Q,m as X,u as Z,_ as ee}from"./index.76214426.js";import te from"./el-calendars.d300b50e.js";import{_ as ae}from"./index.vue_vue_type_style_index_0_lang.b32990ac.js";import{a as le}from"./clerk_shift.e931e1f6.js";import"./BlockGroup.vue_vue_type_script_name_TaskChartBlockGroup_setup_true_lang.eb9b0ff3.js";import"./BlockRow.vue_vue_type_script_name_TaskChartBlockRow_setup_true_lang.ed30c1fd.js";/* empty css */import"./BlockColumn.ac164ade.js";/* empty css */import"./LeftBar.vue_vue_type_script_name_TaskChartLeftBar_setup_true_lang.0ebb6928.js";import"./TimeLine.vue_vue_type_script_name_TaskChartTimeLine_setup_true_lang.3099fea1.js";import"./isBetween.70fe76ba.js";import"./MenuItem.72d400ce.js";/* empty css */import"./TaskItem.d6b95c0a.js";/* empty css *//* empty css */import"./OccupyModal.vue_vue_type_script_setup_true_lang.59970c56.js";import"./SubscribeModal.e8d84492.js";import"./better-scroll.esm.6fe6b2c0.js";const ue={style:{width:"calc(100% - 10px)",height:"100vh",display:"flex","justify-content":"space-between",margin:"0px 5px",background:"transparent"}},se={style:{width:"230px",height:"100vh","background-color":"#fff"}},oe={style:{width:"100%",display:"flex","justify-content":"center","padding-top":"17px","padding-bottom":"17px","border-bottom":"solid #409EFF 1px","border-top":"solid #409EFF 1px"}},ie={style:{width:"100%",height:"59px",display:"flex","justify-content":"center","padding-bottom":"17px","flex-wrap":"wrap"}},de={style:{width:"100%",height:"14px","padding-top":"17px","margin-left":"10px",color:"red"}},re=Q('<div style="width:100%;height:59px;display:flex;justify-content:space-around;padding-bottom:17px;align-items:center;" data-v-0308d9b7><div style="display:flex;align-items:center;" data-v-0308d9b7><div style="width:7px;height:7px;background-color:rgb(42, 130, 228);border-radius:1px;" data-v-0308d9b7></div><div style="width:22px;height:22px;background-color:rgb(229, 229, 229);border-radius:50%;display:flex;margin-left:8px;align-items:center;justify-content:center;" data-v-0308d9b7> \u9C7C </div><div style="width:auto;height:auto;border-radius:1px;margin-left:8px;" data-v-0308d9b7><div data-v-0308d9b7>511 - \u5458\u5DE511</div><div data-v-0308d9b7>[\u670D\u52A1] \u603B\u76D1 \u6D17\u526A\u5439</div></div></div><div style="width:auto;height:auto;border-radius:1px;margin-left:8px;" data-v-0308d9b7><div data-v-0308d9b7>09:15</div><div data-v-0308d9b7>45\u5206\u949F</div></div></div>',1),ne={style:{width:"100%",height:"52px","background-color":"#fff",display:"flex","align-items":"center"}},ce=X("\u6392\u7248\u7BA1\u7406"),ve={style:{width:"100%",height:"calc(100vh - 57px)","background-color":"#fff",overflow:"scroll","margin-top":"5px"}},pe=H({setup(me){const g=u(),t=a=>s(new Date).format("YYYY-MM-DD ")+a;s(new Date).format("YYYY-MM-DD ");const k=u([{id:1,name:"\u5C0F\u72F81",role:"\u603B\u88C1",children:[{id:11,start:"2024-07-17 10:00:00",end:"2024-07-17 18:00:00",taskArray:[{id:111,name:"\u5BA2\u62371",isNew:!0,start:"2024-07-17 09:00:00",end:"2024-07-17 10:00:00"},{id:111,name:"\u5BA2\u62371",isNew:!0,start:"2024-07-17 09:00:00",end:"2024-07-17 10:00:00"},{id:111,name:"\u5BA2\u62371",isNew:!0,start:"2024-07-17 09:00:00",end:"2024-07-17 10:00:00"},{id:111,name:"\u5BA2\u62371",isNew:!0,start:"2024-07-17 10:00:00",end:"2024-07-17 10:30:00"},{id:112,name:"\u5BA2\u62372",isNew:!0,start:"2024-07-17 11:00:00",end:"2024-07-17 11:30:00"}]},{id:11,start:t("09:00:00"),end:t("12:00:00"),taskArray:[{id:111,name:"\u5BA2\u62371",isNew:!0,start:t("09:00:00"),end:t("10:00:00")},{id:111,name:"\u5BA2\u62371",isNew:!0,start:t("10:00:00"),end:t("10:30:00")},{id:112,name:"\u5BA2\u62372",isNew:!0,start:t("11:00:00"),end:t("11:30:00")},{id:112,name:"\u5BA2\u62372",isNew:!0,start:t("12:00:00"),end:t("12:00:00")}]}]},{id:1,name:"\u5C0F\u72F82",role:"\u603B\u88C1",children:[{id:11,start:t("09:00:00"),end:t("13:00:00"),taskArray:[{id:111,name:"\u5BA2\u62371",isNew:!0,start:t("09:00:00"),end:t("10:00:00")},{id:111,name:"\u5BA2\u62371",isNew:!0,start:t("10:00:00"),end:t("10:30:00")},{id:112,name:"\u5BA2\u62372",isNew:!0,start:t("11:00:00"),end:t("11:30:00")}]}]}]),D=u(120),V=u(s()),Y=u([s().startOf("week"),s().endOf("week")]),d=u([]),A=[s().startOf("day").set("hour",0).set("minute",0).set("second",0).valueOf(),s().endOf("day").valueOf()],f=u(30),N=a=>f.value=a,O=()=>{var a,e,i;if(p.value==="week"){const n=~~((((a=document.getElementById("iscroll"))==null?void 0:a.offsetWidth)||0)/7),c=s().startOf("week"),v=s().endOf("week");D.value=n>120?n:120,f.value=1440,d.value=[c,v],(e=g.value)==null||e.enableScroller()}else f.value=30,d.value[0]=s(Math.min(...A)),d.value[1]=s(Math.max(...A)),(i=g.value)==null||i.enableScroller();console.log("times.value",d.value),setTimeout(()=>{g.value.refresh()},1e3)},p=u("date"),E=()=>{const a=Z(p);O(),console.log("init",a)};E();const j=a=>{p.value=a,E()},L=()=>{console.log("reload")},B=u("value"),W=u([{value:"value",label:"\u9884\u7EA6\u65E5\u5386"},{value:"value1",label:"\u9884\u7EA6\u65E5\u53861"},{value:"value2",label:"\u9884\u7EA6\u65E5\u53862"},{value:"value3",label:"\u9884\u7EA6\u65E5\u53863"}]),F=u("value"),R=u([{value:"value",label:"\u5168\u90E8\u5458\u5DE5"},{value:"value1",label:"\u5458\u5DE5\u5206\u7C7B1"},{value:"value2",label:"\u5458\u5DE5\u5206\u7C7B2"},{value:"value3",label:"\u5458\u5DE5\u5206\u7C7B3"}]),C=u(["Value selected and disabled","Value A"]),x=u(!0),z=u(!1);K([{}]);const U=a=>{console.log(a)},I=()=>{x.value=!x.value};$(()=>{setTimeout(()=>{z.value=!0},3e3)});const _=()=>{var a=new Date().getTime(),e=new Date(a),i=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),c=e.getDate().toString().padStart(2,"0"),v=e.getHours().toString().padStart(2,"0"),y=e.getMinutes().toString().padStart(2,"0"),l=e.getSeconds().toString().padStart(2,"0");return{year:i,month:n,date:c,hour:v,minute:y,second:l}};return(()=>{let a=[d.value[0].format("YYYY-MM-DD"),d.value[1].format("YYYY-MM-DD")];le({search_date:a}).then(e=>{console.log(e),k.value=e})})(),(a,e)=>{const i=m("el-checkbox"),n=m("el-checkbox-group"),c=m("el-option"),v=m("el-select"),y=m("el-button");return h(),w("div",ue,[q(r("div",se,[r("div",null,[o(te,{dates:Y.value,taskMode:p.value,onChangTime:U,onCollapse:I,onTaskModeChange:j},null,8,["dates","taskMode"])]),r("div",oe,[o(n,{modelValue:C.value,"onUpdate:modelValue":e[0]||(e[0]=l=>C.value=l),class:"check_group",style:{width:"216px",display:"flex","flex-wrap":"wrap"},"text-color":"#000"},{default:b(()=>[o(i,{class:"hs",label:"\u5F85\u786E\u5B9A",style:{"margin-right":"0px"},value:"value1"}),o(i,{class:"ls",label:"\u5F85\u5230\u5E97",style:{"margin-right":"0px"},value:"value2"}),o(i,{class:"lvs",label:"\u5DF2\u6D88\u8D39",style:{"margin-right":"0px"},value:"value3"}),o(i,{class:"hes",label:"\u5DF2\u53D6\u6D88",style:{"margin-right":"0px"},value:"value4"}),o(i,{class:"hos",label:"\u5DF2\u8FC7\u671F",style:{"margin-right":"0px"},value:"value5"})]),_:1},8,["modelValue"])]),r("div",ie,[r("div",de,J("\u4ECA\u65E5"+_().year+"\u5E74"+_().month+"\u6708"+_().date+"\u65E5"),1),re])],512),[[G,x.value]]),r("div",{style:P([{width:x.value?"calc(100% - 235px)":"100%"},{height:"100vh"}])},[r("div",ne,[o(v,{modelValue:B.value,"onUpdate:modelValue":e[1]||(e[1]=l=>B.value=l),placeholder:"Select",size:"small",style:{width:"121px",height:"24px",border:"solid #409EFF 1px","border-radius":"5px","margin-left":"13px"}},{default:b(()=>[(h(!0),w(M,null,S(W.value,l=>(h(),T(c,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o(y,{style:{"margin-left":"13px",height:"28px"},type:"primary"},{default:b(()=>[ce]),_:1}),o(v,{modelValue:F.value,"onUpdate:modelValue":e[2]||(e[2]=l=>F.value=l),placeholder:"Select",size:"small",style:{width:"121px",height:"24px",border:"solid #409EFF 1px","border-radius":"5px","margin-left":"13px"}},{default:b(()=>[(h(!0),w(M,null,S(R.value,l=>(h(),T(c,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),r("div",ve,[o(ae,{ref_key:"taskChartRef",ref:g,cellWidth:D.value,currentTime:V.value,datas:k.value,endTime:d.value[1],scale:f.value,startTime:d.value[0],taskMode:p.value,dataKey:"id",onReload:L,onScaleChange:N},null,8,["cellWidth","currentTime","datas","endTime","scale","startTime","taskMode"])])],4)])}}});const Oe=ee(pe,[["__scopeId","data-v-0308d9b7"]]);export{Oe as default};
|