import{G as l,U as n,D as d,A as u}from"./api.e24841a8.js";import{H as c,p as h,X as m}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{SdBaseColumn as w}from"./commonTabColumn.c5d53eee.js";import{B as p}from"./vue.adf17aba.js";import"./echarts.72dc8373.js";const R=function({crudExpose:f,context:s}){const a=async e=>{const t=h(s.value);return m.assign(e,t),await l(e)},o=async({form:e,row:t})=>(e.id=t.id,await n(e)),r=async({row:e})=>await d(e.id),i=async({form:e})=>await u(e);return p("$hasPermissions"),{crudOptions:{table:{height:800,headerCellStyle:{backgroundColor:"#f6f7fa",height:"20px",borderRight:"none"},cellStyle:{border:"none",borderBottom:"0.5px solid #ddd"},showSummary:!0,stripe:!1},container:{fixedHeight:!1},actionbar:{show:!1,buttons:{add:{show:!1}}},search:{show:!1},toolbar:{buttons:{search:{show:!0},compact:{show:!1}}},request:{pageRequest:a,addRequest:i,editRequest:o,delRequest:r},rowHandle:{fixed:"right",width:100,align:"center",buttons:{view:{show:!1},edit:{iconRight:"Edit",type:"text",text:null},remove:{show:!1}}},columns:{id:{title:"ID",column:{show:!1},form:{show:!1}},expression_value:{title:"商品和分类",column:{fixed:"left",width:280,sortable:!0}},state:{title:"状态",column:{width:90,align:"center",sortable:!0},type:"dict-select",search:{show:!0},dict:c({data:[{value:"paused",label:"已暂停",color:"warning"},{value:"enabled",label:"投放中",color:"success"}]})},campaignName:{title:"广告活动名称",column:{width:230}},adGroupName:{title:"广告组名称",column:{width:230}},suggestedBid:{title:"建议竞价",column:{width:130,align:"right"}},bid:{title:"出价",column:{width:80,align:"center",sortable:!0,formatter:e=>"$"+e.value}},suggestedBid_lower:{column:{show:!1}},suggestedBid_upper:{column:{show:!1}},...w}}}};export{R as createCrudOptions};
