import{r as o,H as l,p as i,X as n}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{BaseColumn as c}from"./commonTabColumn.c5d53eee.js";import{B as u}from"./vue.adf17aba.js";import"./echarts.72dc8373.js";const d="/api/ad_manage/sbgroupdetail/targets/";function p(e){return o({url:d+"list/",method:"get",params:e})}const x=function({crudExpose:e,context:s}){const a=async t=>{const r=i(s.value);return n.assign(t,r),await p(t)};return u("$hasPermissions"),{crudOptions:{table:{height:750,headerCellStyle:{backgroundColor:"#f6f7fa",height:"20px"},cellStyle:{border:"none",borderBottom:"0.5px solid #ddd"}},container:{fixedHeight:!1},actionbar:{show:!1},search:{show:!0,buttons:{search:{show:!1},reset:{show:!1}}},request:{pageRequest:a},rowHandle:{show:!1},columns:{resolvedExpression_value:{title:"商品和分类",column:{width:"200px",fixed:"left",align:"left"}},state:{title:"状态",column:{width:"90px",align:"center",sortable:!0},type:"dict-select",search:{show:!0},dict:l({data:[{value:"paused",label:"已暂停",color:"warning"},{value:"enabled",label:"投放中",color:"success"}]})},ASIN:{title:"ASIN",column:{width:"130px",align:"center"}},suggestedBid:{title:"建议竞价",column:{width:"100px",align:"center"}},bid:{title:"出价",column:{width:"60px",align:"center"}},...c}}}};export{x as createCrudOptions};
