import{G as n,U as l,D as c,A as d}from"./api.c1e653d0.js";import{p as u,X as h}from"./index.ad3efb29.js";import{BaseColumn as p}from"./commonTabColumn.c5d53eee.js";import{B as m}from"./vue.adf17aba.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const O=function({crudExpose:f,context:s}){const o=async t=>{const e=u(s.value);return h.assign(t,e),await n(t)},a=async({form:t,row:e})=>(t.id=e.id,await l(t)),r=async({row:t})=>await c(t.id),i=async({form:t})=>await d(t);return m("$hasPermissions"),{crudOptions:{table:{height:750,headerCellStyle:{backgroundColor:"#f6f7fa",height:"20px"},cellStyle:{border:"none",borderBottom:"0.5px solid #ddd"}},container:{fixedHeight:!1},actionbar:{show:!0,color:"#626aef",buttons:{add:{show:!1},create:{text:"添加广告",color:"#626aef",plain:!0,show:!0,click(){}}}},search:{show:!0,buttons:{search:{show:!1},reset:{show:!1}}},toolbar:{buttons:{search:{show:!0},compact:{show:!1}}},request:{pageRequest:o,addRequest:i,editRequest:a,delRequest:r},rowHandle:{fixed:"right",width:80,buttons:{view:{show:!1},edit:{iconRight:"Edit",type:"text",text:null},remove:{iconRight:"Delete",type:"text",text:null}}},columns:{adGroupName:{title:"广告组名称",column:{width:230,fixed:"left"}},state:{title:"状态",column:{width:"100px"}},...p}}}};export{O as createCrudOptions};
