1 |
- import{r}from"./index.D9MSRuO0.js";import{a as o}from"./authFunction.gOycM0k4.js";const n="/api/system/device/category/";function i(e){return r({url:n,method:"get",params:e})}function u(e){return r({url:n+e+"/",method:"get"})}function s(e){return r({url:n,method:"post",data:e})}function h(){return r({url:n,method:"get"})}const a=function({crudExpose:e}){return{crudOptions:{request:{pageRequest:async t=>await i(t),addRequest:async({form:t})=>await s(t),getDetail:async({row:t})=>await u(t.id)},actionbar:{buttons:{add:{show:o("area:Create")}}},pagination:{show:!1},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},code:{title:"分类编码",type:"input",column:{minWidth:120},form:{show:!1}},name:{title:"名称",search:{show:!0},treeNode:!0,type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"}}},description:{title:"设备描述",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写设备描述"},rules:[{required:!0,message:"请填写设备描述"}]}},parent:{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:!0,message:"请填写排序"}]}},status:{title:"状态",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写状态"},rules:[{required:!0,message:"请填写状态"}]}},tenant:{title:"租户",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写租户"},rules:[{required:!1,message:"请填写租户"}]}}}}}},f=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:a},Symbol.toStringTag,{value:"Module"}));export{h as G,f as a,a as c};
|