Files
aiot-platform-ui/apps/web-antd/dist/js/data-CE3Cpjb2.js
lzh cb81829d4c
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 24s
chore: build and deploy web-antd
2026-01-14 14:15:09 +08:00

2 lines
4.4 KiB
JavaScript

import{g as n}from"./index-CuWtfjAw.js";import{as as o,at as l}from"./bootstrap-CvQmCMXe.js";import{C as a}from"./biz-system-enum-BAorzMA8.js";import{D as e}from"./dict-enum-DRf9W45H.js";function m(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"字典名称",component:"Input",componentProps:{placeholder:"请输入字典名称"},rules:"required"},{fieldName:"type",label:"字典类型",component:"Input",componentProps:t=>({placeholder:"请输入字典类型",disabled:!!t.id}),rules:"required",dependencies:{triggerFields:[""]}},{fieldName:"status",label:"状态",component:"RadioGroup",componentProps:{options:l(e.COMMON_STATUS,"number"),buttonStyle:"solid",optionType:"button"},rules:o().default(a.ENABLE)},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注"}}]}function u(){return[{fieldName:"name",label:"字典名称",component:"Input",componentProps:{placeholder:"请输入字典名称",allowClear:!0}},{fieldName:"type",label:"字典类型",component:"Input",componentProps:{placeholder:"请输入字典类型",allowClear:!0}},{fieldName:"status",label:"状态",component:"Select",componentProps:{options:l(e.COMMON_STATUS,"number"),placeholder:"请选择状态",allowClear:!0}}]}function c(){return[{type:"checkbox",width:40},{field:"id",title:"字典编号",minWidth:100},{field:"name",title:"字典名称",minWidth:200},{field:"type",title:"字典类型",minWidth:220},{field:"status",title:"状态",minWidth:120,cellRender:{name:"CellDict",props:{type:e.COMMON_STATUS}}},{field:"remark",title:"备注",minWidth:180},{field:"createTime",title:"创建时间",minWidth:180,formatter:"formatDateTime"},{title:"操作",minWidth:120,fixed:"right",slots:{default:"actions"}}]}const i=[{value:"",label:"无"},{value:"processing",label:"主要"},{value:"success",label:"成功"},{value:"default",label:"默认"},{value:"warning",label:"警告"},{value:"error",label:"危险"},{value:"pink",label:"pink"},{value:"red",label:"red"},{value:"orange",label:"orange"},{value:"green",label:"green"},{value:"cyan",label:"cyan"},{value:"blue",label:"blue"},{value:"purple",label:"purple"}];function f(){return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"dictType",label:"字典类型",component:"ApiSelect",componentProps:t=>({api:n,placeholder:"请输入字典类型",labelField:"name",valueField:"type",disabled:!!t.id}),rules:"required",dependencies:{triggerFields:[""]}},{fieldName:"label",label:"数据标签",component:"Input",componentProps:{placeholder:"请输入数据标签"},rules:"required"},{fieldName:"value",label:"数据键值",component:"Input",componentProps:{placeholder:"请输入数据键值"},rules:"required"},{fieldName:"sort",label:"显示排序",component:"InputNumber",componentProps:{placeholder:"请输入显示排序"},rules:"required"},{fieldName:"status",label:"状态",component:"RadioGroup",componentProps:{options:l(e.COMMON_STATUS,"number"),placeholder:"请选择状态",buttonStyle:"solid",optionType:"button"},rules:o().default(a.ENABLE)},{fieldName:"colorType",label:"颜色类型",component:"Select",componentProps:{options:i,placeholder:"请选择颜色类型"}},{fieldName:"cssClass",label:"CSS Class",component:"Input",componentProps:{placeholder:"请输入 CSS Class"},help:"输入 hex 模式的颜色, 例如 #108ee9"},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注"}}]}function b(){return[{fieldName:"label",label:"字典标签",component:"Input",componentProps:{placeholder:"请输入字典标签",allowClear:!0}},{fieldName:"status",label:"状态",component:"Select",componentProps:{options:l(e.COMMON_STATUS,"number"),placeholder:"请选择状态",allowClear:!0}}]}function h(){return[{type:"checkbox",width:40},{field:"id",title:"字典编码",minWidth:100},{field:"label",title:"字典标签",minWidth:180},{field:"value",title:"字典键值",minWidth:100},{field:"sort",title:"字典排序",minWidth:100},{field:"status",title:"状态",minWidth:100,cellRender:{name:"CellDict",props:{type:e.COMMON_STATUS}}},{field:"colorType",title:"颜色类型",minWidth:120,slots:{default:"colorType"}},{field:"cssClass",title:"CSS Class",minWidth:120,slots:{default:"cssClass"}},{title:"创建时间",field:"createTime",minWidth:180,formatter:"formatDateTime"},{title:"操作",minWidth:120,fixed:"right",slots:{default:"actions"}}]}export{b as a,c as b,u as c,f as d,m as e,h as u};