import{G as l,U as n,D as c,A as u}from"./api.5436d480.js";import{H as d,p as h,X as m}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{BaseColumn as p}from"./commonTabColumn.c5d53eee.js";import{B as f}from"./vue.adf17aba.js";import"./echarts.72dc8373.js";const E=function({crudExpose:w,context:a}){const s=async e=>{const t=h(a.value);return m.assign(e,t),await l(e)},o=async({form:e,row:t})=>(e.id=t.id,await n(e)),r=async({row:e})=>await c(e.id),i=async({form:e})=>await u(e);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: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}},asin:{title:"商品",column:{width:"130px",align:"left",fixed:"left"}},state:{title:"状态",column:{width:"90px",align:"center",sortable:!0},type:"dict-select",search:{show:!0},dict:d({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:{width:"180px",align:"center"}},...p}}}};export{E as createCrudOptions};
