import{G as i,U as d,D as c,A as p}from"./api.0c2b52c8.js";import{H as E,p as m,X as h}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{BaseColumn as C}from"./commonTabColumn.c5d53eee.js";import{B as F,U as e,ai as a,S as f}from"./vue.adf17aba.js";import"./echarts.72dc8373.js";const y=function({crudExpose:D,context:l}){const r=async u=>{const t=m(l.value);return h.assign(u,t),await i(u)},s=async({form:u,row:t})=>(u.id=t.id,await d(u)),o=async({row:u})=>await c(u.id),n=async({form:u})=>await p(u);return F("$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:r,addRequest:n,editRequest:s,delRequest:o},rowHandle:{fixed:"right",width:80,buttons:{view:{show:!1},edit:{iconRight:"Edit",type:"text",text:null},remove:{iconRight:"Delete",type:"text",text:null}}},columns:{id:{title:"ID",column:{show:!1},form:{show:!1}},resolvedExpression_value:{title:"商品和分类",column:{width:"130px",align:"left",fixed:"left"}},state:{title:"状态",column:{width:"90px",align:"center",sortable:!0},type:"dict-select",search:{show:!0},dict:E({data:[{value:"PAUSED",label:"已暂停",color:"warning"},{value:"ENABLED",label:"投放中",color:"success"}]})},campaignName:{title:"广告活动名称",column:{width:"180px",align:"left"},search:{show:!0,component:{props:{clearable:!0}}},form:{rules:[{required:!0,message:"必填项"}]}},adGroupName:{title:"广告组名称",column:{align:"left",width:"180px"}},suggestedBid:{title:"建议竞价",column:{align:"right",width:"130px"}},bid:{title:"出价",column:{align:"center",sortable:!0}},TopOfSearchImpressionShare:{title:"搜索结果顶部展示份额",column:{align:"right",sortable:!0,width:"220px",renderHeader(){return e("span",null,[e(a("el-tooltip"),{placement:"top",content:"广告活动获得的搜索结果顶部展示量占其获得的所有符合条件的搜索结果顶部展示量的百分比。<br /> 符合条件与否由各种因素所决定，包括广告活动状态和投放状态。该指标适用于品牌推广活动和商品推广活动。<br /> 对于商品推广，该指标提供了搜索结果顶部（首页）的展示量份额。<br /> 默认展示所选时间范围内展示份额的最高值，如需查看分天的数据趋势，请点击数据详情按钮。","raw-content":!0},{default:()=>[e("span",null,[e(a("el-icon"),{size:"14",style:"display:inline-block; padding-top:2px; margin-right:3px;"},{default:()=>[e(a("InfoFilled"),null,null)]})])]}),e("span",null,[f("搜索结果顶部展示份额")])])},formatter:u=>u.value!==null?u.value:"--"}},...C}}}};export{y as createCrudOptions};
