1 |
- import{d as Q,P as W,r as u,x as X,b as j,a3 as L,o,c as g,f as a,A as t,a as l,a4 as Z,F as x,Q as O,C as m,D as i,k as b,E as $,a8 as aa,U as ea,R as la,S as ta,I as ra,_ as sa,J as oa,V as na,W as ua,X as _a,Y as pa,__tla as ca}from"./index-f65577b8.js";import{_ as ma,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{_ as ya,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{a as ba,D as Y,__tla as ha}from"./dict-fa3ffbd2.js";import{d as wa,__tla as ka}from"./formatTime-411ed1a1.js";import{b as va,d as xa,__tla as Ca}from"./index-fd75f20a.js";import{g as Sa,__tla as Ua}from"./index-87264ddf.js";import{_ as Va,__tla as Ta}from"./UserGroupForm.vue_vue_type_script_setup_true_lang-3a6f00af.js";import{u as Da,__tla as Ma}from"./useMessage-4dbf0ae4.js";import{__tla as Na}from"./index-1896261a.js";import"./color-6e929987.js";import{__tla as Oa}from"./el-card-ab53e6aa.js";import{__tla as Ya}from"./Dialog-bd3317a7.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-c811e5ff.js";let z,za=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Ya}catch{}})()]).then(async()=>{z=Q({name:"BpmUserGroup",__name:"index",setup(Pa){const C=Da(),{t:P}=W(),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 va(s);U.value=p.list,S.value=p.total}finally{h.value=!1}},w=()=>{s.pageNo=1,_()},R=()=>{V.value.resetFields(),w()},D=u(),M=(p,r)=>{D.value.open(p,r)};return j(async()=>{await _(),T.value=await Sa()}),(p,r)=>{const A=aa,d=ea,F=la,H=ta,I=ra,k=sa,c=oa,J=na,N=ya,n=ua,q=da,B=_a,E=ma,v=L("hasPermi"),G=pa;return o(),g(x,null,[a(N,null,{default:t(()=>[a(J,{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(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(H,{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(()=>[(o(!0),g(x,null,O(l(ba)(l(Y).COMMON_STATUS),e=>(o(),m(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(I,{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(k,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(c,{onClick:R},{default:t(()=>[a(k,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),b((o(),m(c,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>M("create"))},{default:t(()=>[a(k,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[v,["bpm:user-group:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:t(()=>[b((o(),m(B,{data:l(U)},{default:t(()=>[a(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(n,{label:"\u7EC4\u540D",align:"center",prop:"name"}),a(n,{label:"\u63CF\u8FF0",align:"center",prop:"description"}),a(n,{label:"\u6210\u5458",align:"center"},{default:t(e=>[(o(!0),g(x,null,O(e.row.memberUserIds,f=>{var y;return o(),g("span",{key:f,class:"pr-5px"},$((y=l(T).find(K=>K.id===f))==null?void 0:y.nickname),1)}),128))]),_:1}),a(n,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(q,{type:l(Y).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(wa)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[b((o(),m(c,{link:"",type:"primary",onClick:f=>M("update",e.row.id)},{default:t(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["bpm:user-group:update"]]]),b((o(),m(c,{link:"",type:"danger",onClick:f=>(async y=>{try{await C.delConfirm(),await xa(y),C.success(P("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["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(Va,{ref_key:"formRef",ref:D,onSuccess:_},null,512)],64)}}})});export{za as __tla,z as default};
|