import{r as a,p as i,X as l}from"./index.ad3efb29.js";import{BaseColumn as d}from"./commonTabColumn.c5d53eee.js";import{B as c}from"./vue.adf17aba.js";const o="/api/ad_manage/spsearchterms/";function u(e){return a({url:o+"list",method:"post",data:e})}function g(e){return a({url:o+"total",method:"post",data:e})}function w(e){return e.dateRangeType="D",a({url:o+"daily",method:"post",data:e})}function b(e){return e.dateRangeType="W",a({url:o+"daily",method:"post",data:e})}function y(e){return e.dateRangeType="M",a({url:o+"daily",method:"post",data:e})}const m=function({crudExpose:e,context:r}){const s=async t=>{const n=i(r.value);return l.assign(t,n),await u(t)};return c("$hasPermissions"),{crudOptions:{table:{height:800,rowKey:t=>t.keywordId+t.searchTerm,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:{searchTerm:{title:"搜索词",column:{width:130,fixed:"left"}},matchType:{title:"定向",column:{width:90}},campaignName:{title:"广告活动",column:{width:180}},adGroupName:{title:"广告组",column:{width:180}},...d}}}},x=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:m},Symbol.toStringTag,{value:"Module"}));export{w as a,y as b,b as c,m as d,x as e,g};
