1 |
- import{G as s,U as c,D as u,A as d}from"./api.4881c432.js";import{H as p}from"./index.ad090ffd.js";import"./elementPlus.59866ea5.js";import{q as m}from"./vue.95e072e2.js";const b=[{label:"分时调价",value:1},{label:"分时预算",value:2},{label:"广告活动",value:3},{label:"定向规则",value:4},{label:"添加搜索词",value:5},{label:"添加否定词",value:6}],h=function({crudExpose:w,context:t}){const{editTmpl:a}=t,o=async e=>await s(e),l=async({form:e,row:r})=>(e.id=r.id,await c(e)),i=async({row:e})=>await u(e.id),n=async({form:e})=>await d(e);return m("$hasPermissions"),{crudOptions:{table:{height:900,size:"default",border:!1},container:{fixedHeight:!1},request:{pageRequest:o,addRequest:n,editRequest:l,delRequest:i},rowHandle:{fixed:"right",width:100,buttons:{view:{show:!1},edit:{text:null,iconRight:"Edit",type:"text",order:1,tooltip:{placement:"top",content:"编辑"},click:e=>{a(e.row)}},custom:{text:null,iconRight:"SetUp",type:"text",order:2,tooltip:{placement:"top",content:"关联广告活动"}},remove:{iconRight:"Delete",type:"text",text:null,order:3,tooltip:{placement:"top",content:"删除"}}}},actionbar:{show:!0,buttons:{add:{show:!1}}},columns:{id:{title:"ID",column:{width:100,align:"center"}},name:{title:"模板名称",column:{width:"150px"},search:{show:!1}},"rule.type":{title:"模板类型",type:"dict-select",dict:p({data:b}),search:{show:!0,component:{props:{clearable:!0}}}},campaignNumber:{title:"广告活动数量"},creator_username:{title:"创建人"},modifier_username:{title:"修改人"}}}}},v=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:h},Symbol.toStringTag,{value:"Module"}));export{b as T,v as a,h as c};
|