import{r as e,p as i,X as d}from"./index.34b03be2.js";import{SpCampaignPuchasedOtherProductsColumn as l}from"./commonTabColumn.c5d53eee.js";import{B as u}from"./vue.adf17aba.js";const a="/api/ad_manage/spotherproducts/";function c(t){return e({url:a+"list",method:"post",data:t})}function g(t){return e({url:a+"total",method:"post",data:t})}function b(t){return t.dateRangeType="D",e({url:a+"daily",method:"post",data:t})}function w(t){return t.dateRangeType="W",e({url:a+"daily",method:"post",data:t})}function y(t){return t.dateRangeType="M",e({url:a+"daily",method:"post",data:t})}const p=function({crudExpose:t,context:r}){const s=async o=>{const n=i(r.value);return d.assign(o,n),await c(o)};return u("$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},search:{show:!1},toolbar:{buttons:{search:{show:!0},compact:{show:!1}}},request:{pageRequest:s},rowHandle:{show:!1},columns:{adProduct:{title:"推广商品",column:{width:"250px"}},purchasedProduct:{title:"购买的其它商品"},state:{title:"状态"},campaignName:{title:"广告活动名称",column:{width:"200px"},search:{show:!0,component:{props:{clearable:!0}}},form:{rules:[{required:!0,message:"必填项"}]}},adGroupName:{title:"广告组名称",column:{width:"200px"}},matchType:{title:"定向"},...l}}}},x=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:p},Symbol.toStringTag,{value:"Module"}));export{b as a,y as b,w as c,p as d,x as e,g};