import{G as l,U as n,D as d,A as u}from"./api.d15f195b.js";import{H as c,p as h,X as m}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{SdBaseColumn as p}from"./commonTabColumn.9307c435.js";import{q as w}from"./vue.6daa721c.js";import"./echarts.72dc8373.js";const q=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 w("$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:{title:"定向投放",column:{fixed:"left",width:320,sortable:!0}},state:{title:"状态",column:{width:"90px",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:180}},adGroupName:{title:"广告组名称",column:{width:180}},suggestedBid:{title:"建议竞价",column:{width:130,align:"right"}},bid:{title:"出价",column:{width:80,align:"center",sortable:!0,formatter:e=>e.value?"$"+e.value:"--"}},suggestedBid_lower:{column:{show:!1}},suggestedBid_upper:{column:{show:!1}},...p}}}};export{q as createCrudOptions};
