import{h as s,a as i,u as t,s as r}from"./configs.a3d28f8f.js";import{al as a,a$ as p,ae as o}from"./index.js";import{a as n}from"./status.151ccddb.js";const d=[{type:"selection",width:40,align:"center",hide:({checkList:u})=>!u.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:u})=>!u.includes("\u5E8F\u53F7\u5217")},{label:"\u83DC\u5355\u6570\u636E",prop:t.menu,cellRenderer({row:u}){return a("span",null,{default:()=>u.menu_list.map(({menu_name:e})=>e).join(",")})}},{label:"\u6570\u636E\u6E90\u7528\u6237",width:130,prop:"source_nickname"},{label:"\u6570\u636E\u6E90\u7528\u6237\u7EC4",width:130,prop:"source_group_title"},{label:"\u6570\u636E\u5171\u4EAB\u7528\u6237",width:130,prop:"nickname"},{label:"\u6570\u636E\u5171\u4EAB\u7528\u6237\u7EC4",width:130,prop:"group_title"},{label:"\u72B6\u6001",prop:t.status,cellRenderer({row:u}){return a(p,{type:u[t.status]==="0"?"warning":""},{default:()=>{var e;return((e=n.find(l=>l.value===u.status))==null?void 0:e.label)||"--"}})}},{label:"\u5171\u4EAB\u6743\u9650",prop:t.share,cellRenderer({row:u}){return a(p,null,{default:()=>{var e;return((e=r.find(l=>l.value===u.type))==null?void 0:e.label)||"--"}})}},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",formatter:({addtime:u})=>o(u).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],m={title:"\u6570\u636E\u5171\u4EAB",powers:["001","002","003","004","005","006","007","008"],columns:d,isRequesetArray:!0,apis:{httpList:s,httpStatus:i,httpUpdate:!0,httpAdd:!0}},f={formItems:[{field:"source_nickname",type:"input",placeholder:"\u6570\u636E\u6E90\u7528\u6237"},{field:"source_group_title",type:"input",placeholder:"\u6570\u636E\u6E90\u7528\u6237\u7EC4"},{field:"nickname",type:"input",placeholder:"\u6570\u636E\u5171\u4EAB\u7528\u6237"},{field:"group_title",type:"input",placeholder:"\u6570\u636E\u5171\u4EAB\u7528\u6237\u7EC4",options:r},{field:"type",type:"select",placeholder:"\u5171\u4EAB\u6743\u9650",options:r}]};export{m as c,f as s};
