1 |
- import{d as E,h as J,r as u,e as L,k as W,P as X,o,c as g,f as a,w as t,a as l,Q as Z,F as x,n as P,q as m,m as i,v as h,t as $,U as aa,z as ea,x as la,y as ta,A as ra,_ as sa,B as oa,C as na,D as ua,G as _a,H as pa,__tla as ca}from"./index-2eab2d23.js";import{_ as ma,__tla as ia}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ya,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ha,D as z,__tla as ba}from"./dict-1ad71b6f.js";import{d as wa,__tla as ka}from"./formatTime-41155543.js";import{b as va,d as xa,__tla as Ca}from"./index-ac0857aa.js";import{g as Ua,__tla as Sa}from"./index-e191a423.js";import{_ as Ta,__tla as Va}from"./UserGroupForm.vue_vue_type_script_setup_true_lang-16c10c67.js";import{u as Da,__tla as Ma}from"./useMessage-171aa63e.js";import{__tla as Na}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-c558f0ec.js";import{__tla as za}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./constants-40f13f5e.js";let A,Aa=Promise.all([(()=>{try{return ca}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{A=E({name:"BpmUserGroup",__name:"index",setup(Fa){const C=Da(),{t:F}=J(),b=u(!0),U=u(0),S=u([]),s=L({pageNo:1,pageSize:10,name:null,status:null,createTime:[]}),T=u(),V=u([]),_=async()=>{b.value=!0;try{const p=await va(s);S.value=p.list,U.value=p.total}finally{b.value=!1}},w=()=>{s.pageNo=1,_()},H=()=>{T.value.resetFields(),w()},D=u(),M=(p,r)=>{D.value.open(p,r)};return W(async()=>{await _(),V.value=await Ua()}),(p,r)=>{const O=aa,d=ea,Y=la,q=ta,B=ra,k=sa,c=oa,G=na,N=ya,n=ua,R=da,I=_a,K=ma,v=X("hasPermi"),Q=pa;return o(),g(x,null,[a(N,null,{default:t(()=>[a(G,{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(O,{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(q,{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,P(l(ha)(l(z).COMMON_STATUS),e=>(o(),m(Y,{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(k,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(c,{onClick:H},{default:t(()=>[a(k,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),h((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(()=>[h((o(),m(I,{data:l(S)},{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,P(e.row.memberUserIds,f=>{var y;return o(),g("span",{key:f,class:"pr-5px"},$((y=l(V).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(R,{type:l(z).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=>[h((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"]]]),h((o(),m(c,{link:"",type:"danger",onClick:f=>(async y=>{try{await C.delConfirm(),await xa(y),C.success(F("common.delSuccess")),await _()}catch{}})(e.row.id)},{default:t(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["bpm:user-group:delete"]]])]),_:1})]),_:1},8,["data"])),[[Q,l(b)]]),a(K,{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(Ta,{ref_key:"formRef",ref:D,onSuccess:_},null,512)],64)}}})});export{Aa as __tla,A as default};
|