index.7b7429.js 2.7 KB

1
  1. import{al as d,a$ as c,ae as y,_ as B,d as b,w as f,r as k,o as w,c as E,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 N}from"./use-page-search.f7bc460e.js";import{a as m}from"./status.151ccddb.js";import{s as C,u as a,G as S}from"./group-modal.d6676d.js";import{h as A,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:m},{field:"type",type:"select",placeholder:"\u5171\u4EAB\u7C7B\u578B",options:C}]},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 d(c,{type:e.status==="0"?"warning":""},{default:()=>{var t;return((t=m.find(n=>Number(n.value)===Number(e[a.status])))==null?void 0:t.label)||"--"}})}},{label:"\u5171\u4EAB\u7C7B\u578B",prop:a.type,cellRenderer({row:e}){return d(c,null,{default:()=>{var t;return((t=C.find(n=>Number(n.value)===Number(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"}],G={title:"\u7528\u6237\u7EC4",columns:j,apis:{httpList:A,httpStatus:M,httpUpdate:!0,httpAdd:!0}};const T={class:"main role"},U={"w-full":""},H={name:"group"},I=b({...H,setup(e){const t=f(null),{pageContentRef:n,handleResetClick:r,handleSearchClick:_}=N(),i=f([]),{permission:g,contentConfigRef:h}=P({contentConfig:G,pageName:"group",callback:p=>i.value=p});return(p,o)=>{const v=k("PagePower");return w(),E("div",T,[u(v,{"is-show":s(g).list},{default:F(()=>[R("div",U,[u(s(x),{"form-config":s(Y),onSearchBtnClick:s(_),onResetBtnClick:s(r)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(s(D),{ref_key:"pageContentRef",ref:n,powers:i.value,"content-config":s(h),onCreateBtnClick:o[0]||(o[0]=()=>t.value.onDisplay()),onUpdateBtnClick:o[1]||(o[1]=({id:l})=>t.value.onDisplay(l)),onPreviewBtnClick:o[2]||(o[2]=({id:l})=>t.value.onDisplay(l,!0))},null,8,["powers","content-config"])])]),_:1},8,["is-show"]),u(S,{ref_key:"groupModalRef",ref:t,onReload:o[3]||(o[3]=()=>s(r)())},null,512)])}}});var K=B(I,[["__scopeId","data-v-0b243277"],["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/interest/group/index.vue"]]);export{K as default};