index.f491a1.js 2.7 KB

1
  1. import{al as p,a$ as d,ae as y,_ as B,d as k,w as v,r as w,o as E,c as b,j as u,C as F,h as R,l as s,bo as x,bp as D}from"./index.js";import{u as P}from"./use-permission.2c59d35c.js";import{u as A}from"./use-page-search.f7bc460e.js";import{a as f}from"./status.151ccddb.js";import{s as m,u as a,G}from"./group-modal.f84969.js";import{h as S,a as M}from"./index.a9cb0efc.js";const Y={formItems:[{field:"title",type:"input",placeholder:"\u7EC4\u540D\u79F0"},{field:"nickname",type:"input",placeholder:"\u7EC4\u6210\u5458"},{field:"status",type:"select",placeholder:"\u5F53\u524D\u72B6\u6001",options:f},{field:"type",type:"select",placeholder:"\u5171\u4EAB\u7C7B\u578B",options:m}]},j=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u7EC4\u540D\u79F0",prop:a.name},{label:"\u7EC4\u6210\u5458",prop:"nickname"},{label:"\u72B6\u6001",prop:a.status,cellRenderer({row:e}){return p(d,{type:e.status==="0"?"warning":""},{default:()=>{var t;return((t=f.find(n=>n.value===e[a.status]))==null?void 0:t.label)||"--"}})}},{label:"\u5171\u4EAB\u7C7B\u578B",prop:a.type,cellRenderer({row:e}){return p(d,null,{default:()=>{var t;return((t=m.find(n=>n.value===e[a.type]))==null?void 0:t.label)||"--"}})}},{label:"\u5907\u6CE8",prop:a.remark},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",formatter:({addtime:e})=>y(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],c={title:"\u7528\u6237\u7EC4",powers:["001","002","003","004","005","006","007","008"],isRequesetArray:!0,columns:j,apis:{httpList:S,httpStatus:M,httpUpdate:!0,httpAdd:!0}};const N={class:"main role"},T={"w-full":""},U={name:"userGroup"},H=k({...U,setup(e){const t=v(null),{pageContentRef:n,handleResetClick:l,handleSearchClick:C}=A(),{permission:_,contentConfigRef:h}=P({pageName:"userGroup",contentConfig:c,callback:i=>c.powers=i});return(i,o)=>{const g=w("PagePower");return E(),b("div",N,[u(g,{"is-show":s(_).list},{default:F(()=>[R("div",T,[u(s(x),{"form-config":s(Y),onSearchBtnClick:s(C),onResetBtnClick:s(l)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(s(D),{ref_key:"pageContentRef",ref:n,"content-config":s(h),onCreateBtnClick:o[0]||(o[0]=()=>t.value.onDisplay()),onUpdateBtnClick:o[1]||(o[1]=({id:r})=>t.value.onDisplay(r)),onPreviewBtnClick:o[2]||(o[2]=({id:r})=>t.value.onDisplay(r,!0))},null,8,["content-config"])])]),_:1},8,["is-show"]),u(G,{ref_key:"groupModalRef",ref:t,onReload:o[3]||(o[3]=()=>s(l)())},null,512)])}}});var J=B(H,[["__scopeId","data-v-47d078ac"],["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/userGroup/index.vue"]]);export{J as default};