index-124d52d0.js 5.1 KB

1
  1. import{d as L,n as Q,r as u,f as X,B as E,P as W,o as n,c as g,i as a,w as t,a as l,Q as Z,F as x,k as O,l as i,j as m,C as b,t as $,U as aa,H as ea,D as la,G as ta,I as ra,v as sa,J as na,K as oa,L as ua,M as _a,N as pa,_ as ca,__tla as ia}from"./index-af173888.js";import{_ as ma,__tla as da}from"./index-a33d7937.js";import{_ as fa,__tla as ya}from"./DictTag-4a35e2b7.js";import{_ as ga,__tla as ba}from"./ContentWrap-b959c1be.js";import{a as ha,D as P,__tla as wa}from"./dict-093d1dfa.js";import{d as va,__tla as ka}from"./formatTime-8a6f6c49.js";import{b as xa,d as Ca,__tla as Ua}from"./index-9ae0fc12.js";import{g as Sa,__tla as Ta}from"./index-f465cbfa.js";import Va,{__tla as Da}from"./UserGroupForm-d50b7b8d.js";import{u as Ma,__tla as Na}from"./useMessage-170c1b43.js";import{__tla as Oa}from"./index-54b8f773.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-178b9654.js";import{__tla as za}from"./Dialog-987c90a1.js";import"./constants-a3c69b57.js";let z,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 Ua}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{z=ca(L({name:"BpmUserGroup",__name:"index",setup(Ra){const C=Ma(),{t:H}=Q(),h=u(!0),U=u(0),S=u([]),s=X({pageNo:1,pageSize:10,name:null,status:null,createTime:[]}),T=u(),V=u([]),_=async()=>{h.value=!0;try{const p=await xa(s);S.value=p.list,U.value=p.total}finally{h.value=!1}},w=()=>{s.pageNo=1,_()},R=()=>{T.value.resetFields(),w()},D=u(),M=(p,r)=>{D.value.open(p,r)};return E(async()=>{await _(),V.value=await Sa()}),(p,r)=>{const Y=aa,d=ea,F=la,G=ta,A=ra,v=sa,c=na,B=oa,N=ga,o=ua,I=fa,K=_a,j=ma,k=W("hasPermi"),q=pa;return n(),g(x,null,[a(N,null,{default:t(()=>[a(B,{class:"-mb-15px",model:l(s),ref_key:"queryFormRef",ref:T,inline:!0,"label-width":"68px"},{default:t(()=>[a(d,{label:"\u7EC4\u540D",prop:"name"},{default:t(()=>[a(Y,{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(G,{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,O(l(ha)(l(P).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(A,{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:R},{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(K,{data:l(S)},{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,O(e.row.memberUserIds,f=>{var y;return n(),g("span",{key:f,class:"pr-5px"},$((y=l(V).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(I,{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(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"])),[[q,l(h)]]),a(j,{total:l(U),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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/group/index.vue"]])});export{Ha as __tla,z as default};