import{r}from"./index.CN1lNsL-.js";import{a as s}from"./authFunction.qG4aq-Mj.js";const o="/api/system/device_tags/";function n(e){return r({url:o,method:"get",params:e})}function a(e){return r({url:o,method:"post",data:e})}function m(){return r({url:o,method:"get"})}const u=function({crudExpose:e}){return{crudOptions:{request:{pageRequest:async t=>await n(t),addRequest:async({form:t})=>await a(t)},actionbar:{buttons:{add:{show:s("area:Create")}}},toolbar:{show:!1},rowHandle:{buttons:{remove:{show:!1},edit:{show:!1}}},pagination:{show:!1},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},name:{title:"名称",search:{show:!0},treeNode:!0,type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"}}},color:{title:"颜色",type:"input",column:{show:!1,minWidth:120},form:{component:{placeholder:"请填写标签颜色"},rules:[{required:!0,message:"请填写标签颜色"}]}},description:{title:"标签描述",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写标签描述"},rules:[{required:!1,message:"请填写标签描述"}]}},sort:{title:"排序",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写排序"},rules:[{required:!1,message:"请填写排序"}]}}}}}},p=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:u},Symbol.toStringTag,{value:"Module"}));export{m as G,p as a,u as c};
