import{G as i,U as n,D as d,A as u}from"./api.b275bfb8.js";import{H as c,p as h,X as m}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{SbBaseColumn as w}from"./commonTabColumn.00155e2b.js";import{q as p}from"./vue.95e072e2.js";import"./echarts.72dc8373.js";const S=function({crudExpose:f,context:s}){const a=async e=>{const t=h(s.value);return m.assign(e,t),await i(e)},o=async({form:e,row:t})=>(e.id=t.id,await n(e)),l=async({row:e})=>await d(e.id),r=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:r,editRequest:o,delRequest:l},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}},resolvedExpression_value:{title:"商品和分类",column:{fixed:"left",width:250,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}},ASIN:{title:"ASIN",column:{align:"left",width:130}},suggestedBid:{title:"建议竞价",column:{width:130,align:"right"}},bid:{title:"出价",column:{width:80,align:"left",sortable:!0,formatter:e=>"$"+e.value}},suggestedBid_lower:{column:{show:!1}},suggestedBid_upper:{column:{show:!1}},...w}}}};export{S as createCrudOptions};
