import{G as n,U as l,D as c,A as d}from"./api.ef61348f.js";import{SdMatchedDeliveryColumn as u}from"./commonTabColumn.c5d53eee.js";import{p as h,X as m}from"./index.ad3efb29.js";import{B as f}from"./vue.adf17aba.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const v=function({crudExpose:p,context:a}){const s=async t=>{const e=h(a.value);return m.assign(t,e),await n(t)},o=async({form:t,row:e})=>(t.id=e.id,await l(t)),r=async({row:t})=>await c(t.id),i=async({form:t})=>await d(t);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:s,addRequest:i,editRequest:o,delRequest:r},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}},matchedTargetAsin:{title:"匹配的投放",column:{fixed:"left",width:180,sortable:!0}},tactic:{title:"投放类型",column:{width:120,align:"center",formatter:t=>{switch(t.value){case"T00030":return"受众";case"T00020":return"商品";default:return"--"}}}},expression:{title:"定向投放",column:{width:260,align:"left"}},campaignName:{title:"广告活动名称",column:{width:340,align:"left"}},adGroupName:{title:"广告组名称",column:{width:340,align:"left"}},costType:{title:"成本类型",column:{width:90,align:"center"}},...u}}}};export{v as createCrudOptions};
