2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{G as H,H as K,L as Q,M as Z,N as z,O as J,B as W,C as X,w as Y,D as ee}from"./element-plus.2acb577d.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{f as oe,b as le}from"./index.81df6f20.js";import{u as ae}from"./usePaging.23706826.js";import{u as ne}from"./useDictOptions.4fbfb4d7.js";import{_ as ue,a as se,b as ie,c as re}from"./edit.vue_vue_type_script_setup_true_name_oaPlanEdit_lang.7fbe4097.js";import"./lodash.6bfd3540.js";import{_ as pe}from"./detail.vue_vue_type_script_setup_true_name_customdetail_lang.21d15cf3.js";import{d as P,s as me,r as k,Z as de,am as ce,o as s,c as fe,U as t,L as o,u as l,R as p,M as v,K as m,a as $,i as _e,Q as A,n as D}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.f292cd50.js";const ve={class:"mt-4"},Ce={class:"flex mt-4 justify-end"},Ee=P({name:"oaPlanLists"}),lt=P({...Ee,setup(be){const C=me(),E=k(!1),y=k(null),b=k(!1),d=de({title:"",type:""}),B=k([]),R=n=>{B.value=n.map(({id:e})=>e)},{dictData:L}=ne(""),{pager:f,getLists:w,resetParams:S,resetPage:N}=ae({fetchFun:re,params:d}),O=async()=>{var n;E.value=!0,await D(),(n=C.value)==null||n.open("add")},h=async n=>{var e,i;E.value=!0,await D(),(e=C.value)==null||e.open("edit"),(i=C.value)==null||i.setFormData(n)},T=async n=>{var i,c;let e=await se({id:n});b.value=!0,await D(),(i=y.value)==null||i.open(),(c=y.value)==null||c.setFormData(e)},g=async n=>{await oe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:n}),w()};return w(),(n,e)=>{const i=W,c=X,_=H,U=K,r=Y,I=ee,x=Q,M=le,u=Z,j=z,q=te,F=ce("perms"),G=J;return s(),fe("div",null,[t(x,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(I,{class:"mb-[-16px]",model:l(d),inline:""},{default:o(()=>[t(c,{label:"\u5DE5\u4F5C\u5B89\u6392\u4E3B\u9898",prop:"title"},{default:o(()=>[t(i,{class:"w-[280px]",modelValue:l(d).title,"onUpdate:modelValue":e[0]||(e[0]=a=>l(d).title=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u4F5C\u5B89\u6392\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),t(c,{label:"\u65E5\u7A0B\u4F18\u5148\u7EA7",prop:"type",class:"w-[260px]"},{default:o(()=>[t(U,{modelValue:l(d).type,"onUpdate:modelValue":e[1]||(e[1]=a=>l(d).type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u65E5\u7A0B\u4F18\u5148\u7EA7",class:"flex-1"},{default:o(()=>[t(_,{label:"\u7D27\u6025",value:4}),t(_,{label:"\u91CD\u8981",value:3}),t(_,{label:"\u6B21\u8981",value:2}),t(_,{label:"\u4E0D\u91CD\u8981",value:1}),t(_,{label:"\u65E0\u4F18\u5148\u7EA7",value:1})]),_:1},8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(r,{type:"primary",onClick:l(N)},{default:o(()=>e[7]||(e[7]=[p("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(r,{onClick:l(S)},{default:o(()=>e[8]||(e[8]=[p("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((s(),m(x,{class:"!border-none",shadow:"never"},{default:o(()=>[v((s(),m(r,{type:"primary",onClick:O},{icon:o(()=>[t(M,{name:"el-icon-Plus"})]),default:o(()=>[e[9]||(e[9]=p(" \u65B0\u589E "))]),_:1})),[[F,["works.rcbg.oa_plan/add"]]]),v((s(),m(r,{disabled:!l(B).length,onClick:e[2]||(e[2]=a=>g(l(B)))},{default:o(()=>e[10]||(e[10]=[p(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[F,["works.rcbg.oa_plan/delete"]]]),$("div",ve,[t(j,{data:l(f).lists,onSelectionChange:R},{default:o(()=>[t(u,{type:"selection",width:"55"}),t(u,{label:"\u5DE5\u4F5C\u5B89\u6392\u4E3B\u9898",prop:"title","show-overflow-tooltip":""}),t(u,{label:"\u65E5\u7A0B\u4F18\u5148\u7EA7",prop:"type_text","show-overflow-tooltip":""}),t(u,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"start_time","show-overflow-tooltip":""}),t(u,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"end_time","show-overflow-tooltip":""}),t(u,{label:"\u63D0\u9192\u7C7B\u578B",prop:"remind_type_text","show-overflow-tooltip":""}),t(u,{label:"\u63CF\u8FF0",prop:"remark","show-overflow-tooltip":""}),t(u,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:a})=>[v((s(),m(r,{type:"primary",link:"",onClick:V=>h(a)},{default:o(()=>e[11]||(e[11]=[p(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[F,["works.rcbg.oa_plan/edit"]]]),v((s(),m(r,{type:"danger",link:"",onClick:V=>g(a.id)},{default:o(()=>e[12]||(e[12]=[p(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[F,["works.rcbg.oa_plan/delete"]]]),t(r,{type:"primary",link:"",onClick:V=>T(a.id)},{default:o(()=>e[13]||(e[13]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),$("div",Ce,[t(q,{modelValue:l(f),"onUpdate:modelValue":e[3]||(e[3]=a=>_e(f)?f.value=a:null),onChange:l(w)},null,8,["modelValue","onChange"])])]),_:1})),[[G,l(f).loading]]),l(E)?(s(),m(ue,{key:0,ref_key:"editRef",ref:C,"dict-data":l(L),onSuccess:l(w),onClose:e[4]||(e[4]=a=>E.value=!1)},null,8,["dict-data","onSuccess"])):A("",!0),l(b)?(s(),m(pe,{key:1,ref_key:"detailRef",ref:y,onSuccess:e[5]||(e[5]=a=>b.value=!1),onClose:e[6]||(e[6]=a=>b.value=!1)},null,512)):A("",!0)])}}});export{lt as default};
|