index-3850d9a7.js 5.1 KB

1
  1. import{d as j,B as E,r as u,g as Q,z as W,T as X,o as n,c as g,i as a,w as t,a as l,U as Z,F as x,C as N,k as i,l as m,D as b,t as $,Y as aa,I as ea,G as la,H as ta,q as ra,n as sa,s as na,J as oa,K as ua,L as _a,M as pa,_ as ca,__tla as ia}from"./index-2f799233.js";import{_ as ma,__tla as da}from"./index-e6cd813f.js";import{_ as fa,__tla as ya}from"./DictTag-ea4c6cc2.js";import{_ as ga,__tla as ba}from"./ContentWrap-9da801df.js";import{a as ha,D as O,__tla as wa}from"./dict-20c916e2.js";import{d as va,__tla as ka}from"./formatTime-2157894c.js";import{b as xa,d as Ca,__tla as Ta}from"./index-6ba7dc5e.js";import{g as Ua,__tla as Sa}from"./index-dd9c509d.js";import Va,{__tla as Da}from"./UserGroupForm-3932e7d5.js";import{u as Ma,__tla as za}from"./useMessage-e567ad40.js";import{__tla as Na}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Oa}from"./el-card-c64c83d1.js";import{__tla as Ya}from"./Dialog-6fd39e06.js";import"./constants-d55a3460.js";let Y,Ha=Promise.all([(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ya}catch{}})()]).then(async()=>{Y=ca(j({name:"BpmUserGroup",__name:"index",setup(qa){const C=Ma(),{t:H}=E(),h=u(!0),T=u(0),U=u([]),s=Q({pageNo:1,pageSize:10,name:null,status:null,createTime:[]}),S=u(),V=u([]),_=async()=>{h.value=!0;try{const p=await xa(s);U.value=p.list,T.value=p.total}finally{h.value=!1}},w=()=>{s.pageNo=1,_()},q=()=>{S.value.resetFields(),w()},D=u(),M=(p,r)=>{D.value.open(p,r)};return W(async()=>{await _(),V.value=await Ua()}),(p,r)=>{const A=aa,d=ea,F=la,P=ta,B=ra,v=sa,c=na,G=oa,z=ga,o=ua,I=fa,K=_a,R=ma,k=X("hasPermi"),J=pa;return n(),g(x,null,[a(z,null,{default:t(()=>[a(G,{class:"-mb-15px",model:l(s),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u7EC4\u540D",prop:"name"},{default:t(()=>[a(A,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u540D",clearable:"",onKeyup:Z(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(P,{modelValue:l(s).status,"onUpdate:modelValue":r[1]||(r[1]=e=>l(s).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(n(!0),g(x,null,N(l(ha)(l(O).COMMON_STATUS),e=>(n(),i(F,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(B,{modelValue:l(s).createTime,"onUpdate:modelValue":r[2]||(r[2]=e=>l(s).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(d,null,{default:t(()=>[a(c,{onClick:w},{default:t(()=>[a(v,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(c,{onClick:q},{default:t(()=>[a(v,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),b((n(),i(c,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>M("create"))},{default:t(()=>[a(v,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[k,["bpm:user-group:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(z,null,{default:t(()=>[b((n(),i(K,{data:l(U)},{default:t(()=>[a(o,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(o,{label:"\u7EC4\u540D",align:"center",prop:"name"}),a(o,{label:"\u63CF\u8FF0",align:"center",prop:"description"}),a(o,{label:"\u6210\u5458",align:"center"},{default:t(e=>[(n(!0),g(x,null,N(e.row.memberUserIds,f=>{var y;return n(),g("span",{key:f,class:"pr-5px"},$((y=l(V).find(L=>L.id===f))==null?void 0:y.nickname),1)}),128))]),_:1}),a(o,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(I,{type:l(O).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(va)},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[b((n(),i(c,{link:"",type:"primary",onClick:f=>M("update",e.row.id)},{default:t(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["bpm:user-group:update"]]]),b((n(),i(c,{link:"",type:"danger",onClick:f=>(async y=>{try{await C.delConfirm(),await Ca(y),C.success(H("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["bpm:user-group:delete"]]])]),_:1})]),_:1},8,["data"])),[[J,l(h)]]),a(R,{total:l(T),page:l(s).pageNo,"onUpdate:page":r[4]||(r[4]=e=>l(s).pageNo=e),limit:l(s).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>l(s).pageSize=e),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(Va,{ref_key:"formRef",ref:D,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/group/index.vue"]])});export{Ha as __tla,Y as default};