1 |
- import{d as K,P as Q,r as u,x as X,b as Z,a4 as j,o as n,c as g,f as a,A as t,a as l,a5 as L,F as x,R as z,C as i,D as m,k as b,E as $,a9 as aa,V as ea,S as la,U as ta,I as ra,Q as sa,J as na,W as oa,X as ua,Y as _a,Z as pa,_ as ca,__tla as ia}from"./index-54aa57d8.js";import{_ as ma,__tla as da}from"./index-e6a7fd1e.js";import{_ as fa,__tla as ya}from"./DictTag-638f5ebc.js";import{_ as ga,__tla as ba}from"./ContentWrap-260746ab.js";import{a as ha,D as P,__tla as wa}from"./dict-573b3b04.js";import{d as va,__tla as ka}from"./formatTime-e6197688.js";import{b as xa,d as Ca,__tla as Sa}from"./index-067a18ff.js";import{g as Ua,__tla as Va}from"./index-050fcf20.js";import Ta,{__tla as Da}from"./UserGroupForm-f1a3eae5.js";import{u as Ma,__tla as Na}from"./useMessage-f56cafbb.js";import{__tla as za}from"./index-254a9b5e.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-e7d6628c.js";import{__tla as Ya}from"./Dialog-7bb778a5.js";import"./constants-c811e5ff.js";let Y,Aa=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 Sa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ya}catch{}})()]).then(async()=>{Y=ca(K({name:"BpmUserGroup",__name:"index",setup(Oa){const C=Ma(),{t:A}=Q(),h=u(!0),S=u(0),U=u([]),s=X({pageNo:1,pageSize:10,name:null,status:null,createTime:[]}),V=u(),T=u([]),_=async()=>{h.value=!0;try{const p=await xa(s);U.value=p.list,S.value=p.total}finally{h.value=!1}},w=()=>{s.pageNo=1,_()},O=()=>{V.value.resetFields(),w()},D=u(),M=(p,r)=>{D.value.open(p,r)};return Z(async()=>{await _(),T.value=await Ua()}),(p,r)=>{const F=aa,d=ea,I=la,R=ta,H=ra,v=sa,c=na,W=oa,N=ga,o=ua,q=fa,B=_a,E=ma,k=j("hasPermi"),G=pa;return n(),g(x,null,[a(N,null,{default:t(()=>[a(W,{class:"-mb-15px",model:l(s),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u7EC4\u540D",prop:"name"},{default:t(()=>[a(F,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u540D",clearable:"",onKeyup:L(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(R,{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,z(l(ha)(l(P).COMMON_STATUS),e=>(n(),i(I,{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(H,{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:O},{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(N,null,{default:t(()=>[b((n(),i(B,{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,z(e.row.memberUserIds,f=>{var y;return n(),g("span",{key:f,class:"pr-5px"},$((y=l(T).find(J=>J.id===f))==null?void 0:y.nickname),1)}),128))]),_:1}),a(o,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(q,{type:l(P).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(A("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["bpm:user-group:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,l(h)]]),a(E,{total:l(S),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(Ta,{ref_key:"formRef",ref:D,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/group/index.vue"]])});export{Aa as __tla,Y as default};
|