1 |
- import{d as Q,Q as W,r as u,x as X,b as Z,a3 as j,o,c as g,f as a,B as t,a as l,a4 as L,F as x,R as Y,A as m,E as i,k as b,G as $,a8 as aa,V as ea,S as la,U as ta,J as ra,_ as sa,K as oa,W as na,X as ua,Y as _a,Z as pa,__tla as ca}from"./index-e8bff8cb.js";import{_ as ma,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{_ as ya,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{a as ba,D as A,__tla as ha}from"./dict-4a54e490.js";import{d as wa,__tla as ka}from"./formatTime-4fdd5566.js";import{b as va,d as xa,__tla as Ca}from"./index-f0018dcd.js";import{g as Sa,__tla as Ua}from"./index-c7aa9935.js";import{_ as Va,__tla as Ta}from"./UserGroupForm.vue_vue_type_script_setup_true_lang-7e4cba19.js";import{u as Ma,__tla as Na}from"./useMessage-de42a595.js";import{__tla as Da}from"./index-35928fe5.js";import"./color-6e929987.js";import{__tla as Ya}from"./el-card-f9558d99.js";import{__tla as Aa}from"./Dialog-4d17ac25.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-c811e5ff.js";let O,Oa=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 Na}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Aa}catch{}})()]).then(async()=>{O=Q({name:"BpmUserGroup",__name:"index",setup(Ra){const C=Ma(),{t:R}=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,_()},z=()=>{V.value.resetFields(),w()},M=u(),N=(p,r)=>{M.value.open(p,r)};return Z(async()=>{await _(),T.value=await Sa()}),(p,r)=>{const B=aa,d=ea,F=la,G=ta,P=ra,k=sa,c=oa,H=na,D=ya,n=ua,K=da,q=_a,E=ma,v=j("hasPermi"),I=pa;return o(),g(x,null,[a(D,null,{default:t(()=>[a(H,{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(B,{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(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(()=>[(o(!0),g(x,null,Y(l(ba)(l(A).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(P,{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:z},{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=>N("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(D,null,{default:t(()=>[b((o(),m(q,{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,Y(e.row.memberUserIds,f=>{var y;return o(),g("span",{key:f,class:"pr-5px"},$((y=l(T).find(J=>J.id===f))==null?void 0:y.nickname),1)}),128))]),_:1}),a(n,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(K,{type:l(A).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=>N("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(R("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["bpm:user-group:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,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:M,onSuccess:_},null,512)],64)}}})});export{Oa as __tla,O as default};
|