index.85953c90.js 2.7 KB

1
  1. import"./remote-select.36ee67a3.js";import{ak as o,al as h,a as E,C as B,c as C,j as F,h as g,f as b,u as e}from"./index.4d061c66.js";import"./useNav.5e73c372.js";/* empty css *//* empty css */import{u as y}from"./use-page-search.0f272301.js";import{S as l}from"./status.2b37e8be.js";import{c as p,r as s}from"./column-helper.64ceba17.js";import{P as A}from"./page-auth.ffc7568b.js";import{P as _}from"./page-container.b859125f.js";import"./useAsync.df7387ce.js";import"./usePermission.8064505c.js";import"./btnList.6c44b4ef.js";import"./page-content.e0c7af12.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";import"./image.4c97dbe3.js";import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";const m=[{id:"1",label:"\u7EC4\u5185\u5171\u4EAB \xB7 \u53EF\u7F16\u8F91"},{id:"2",label:"\u7EC4\u5185\u5171\u4EAB \xB7 \u53EA\u8BFB"},{id:"3",label:"\u4E0D\u5171\u4EAB"}],D={formItems:[{field:"title",type:"input",placeholder:"\u7528\u6237\u7EC4\u540D\u79F0"},{field:"nickname",type:"input",placeholder:"\u6210\u5458"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:p(l)},{field:"type",type:"select",placeholder:"\u5171\u4EAB\u7C7B\u578B",options:p(m)}]},c=D,{VITE_PROXY_DOMAIN_REAL:u}=h();async function k(t={}){return o.request("post",`${u}admin/getDataGroupList`,{data:t})}async function x(t={}){return o.request("post",`${u}admin/deleteDataGroup`,{data:t})}async function P(t={}){return o.request("post",`${u}admin/editDataGroup`,{data:t})}async function S(t={}){return o.request("post",`${u}admin/statusDataGroup`,{data:t})}const v=[{type:"selection",width:55,hide:({checkList:t})=>!t.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:t})=>!t.includes("\u5E8F\u53F7\u5217")},{prop:"title",label:"\u7528\u6237\u7EC4\u540D\u79F0"},{prop:"nickname",label:"\u6210\u5458"},{prop:"remark",label:"\u5907\u6CE8"},{prop:"type",label:"\u5171\u4EAB\u7C7B\u578B",...s(m,"type")},{prop:"status",label:"\u72B6\u6001",...s(l)},{prop:"creater",label:"\u521B\u5EFA\u4EBA"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",sortable:!0},{label:"\u64CD\u4F5C",fixed:"right",width:60,slot:"operation"}],$={title:"\u7528\u6237\u7EC4",columns:v,apis:{httpList:k,httpDelete:x,httpUpdate:P,httpStatus:S}},O=$,Z=E({__name:"index",setup(t){const a="group",r="/interest/handoverDetail",{push:n}=B(),d={pageSearchHook:()=>y(void 0,void 0,c)},f={content:{preview:({id:i})=>n(`${r}?id=${i}`),create:()=>n(r)}};return(i,w)=>(C(),F(e(A),{pageName:a},{default:g(()=>[b(e(_),{hooks:d,events:f,pageName:a,"search-config":e(c),"content-config":e(O)},null,8,["search-config","content-config"])]),_:1}))}});export{Z as default};