WokerTask/public/admin/assets/taskCalendar.7708b5bf.js

2 lines
3.3 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{I as L,Q as R}from"./element-plus.9816852d.js";import{u as S}from"./vue-router.9f65afb1.js";import{v as h}from"./index.4eaf9bd5.js";import{E as B,a as F}from"./editTow.82f153e0.js";import{_ as I}from"./calendar.vue_vue_type_style_index_0_lang.da31ccbb.js";import{d as C,r as t,s as k,$ as M,o as D,c as $,M as P,u as s,K as Y,L as b,U as T,n as z}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./list_two.a92f2c9e.js";import"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import"./usePaging.2ad8e1e6.js";import"./useDictOptions.a2448547.js";import"./map.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.dd6833e8.js";import"./edit.vue_vue_type_script_setup_true_name_taskTemplateEdit_lang.9a119849.js";import"./dialog_index_personnel.vue_vue_type_script_setup_true_name_companyLists_lang.02428d4c.js";import"./role.873a2bd3.js";import"./vue-simple-calendar.4032adb4.js";const K=C({name:"task"}),Pt=C({...K,setup(N){const n=S();t(new Date);const m=t({create_user_id:0,end_time:"",id:0,scheduling_id:0,start_time:"",status:0,template_id:0,template_name:""}),p=t("add"),q=e=>{p.value="show",m.value=u.value.find(o=>o.id==e)||null,x()},l=t(!0);k();const c=k();t(!1);const _=t(!1),r=M({scheduling_id:"",start_time:"",end_time:"",page_no:1,page_size:300});n.query.id&&(r.scheduling_id=n.query.id.toString());const v=t("");n.query.company_id&&(v.value=n.query.company_id);const u=t([]),f=async()=>{F(r).then(e=>{u.value=e.lists,l.value=!1})},d=t(""),w=t(""),y=(e="")=>{const o=e?new Date(e):new Date,a=o.getFullYear(),i=o.getMonth(),g=new Date(a,i+1,0).getDay(),E=new Date(a,i,1).getDay();d.value=h(new Date(a,i,1-E).getTime()),w.value=h(new Date(a,i+1,6-g).getTime()),r.start_time!=d.value&&(r.start_time=d.value,r.end_time=w.value,l.value=!0,f())};y();const x=async()=>{var e,o;p.value="show",_.value=!0,await z(),(e=c.value)==null||e.open("show"),(o=c.value)==null||o.updatedForm(m.value)};return t(0),(e,o)=>{const a=L,i=R;return D(),$("div",null,[P((D(),Y(a,{class:"!border-none",shadow:"never"},{default:b(()=>[T(I,{list:s(u),onClickItem:q,onInitShowDate:y},null,8,["list"])]),_:1})),[[i,s(l)]]),T(B,{ref_key:"editTowRef",ref:c,task:s(m),type:s(p),company_id:s(v),onSuccess:f,onClose:o[0]||(o[0]=g=>_.value=!1)},null,8,["task","type","company_id"])])}}});export{Pt as default};