data-Bp12LQ4O.js 5.6 KB

1
  1. var c=(e,n,i)=>new Promise((r,t)=>{var p=l=>{try{a(i.next(l))}catch(s){t(s)}},d=l=>{try{a(i.throw(l))}catch(s){t(s)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(p,d);a((i=i.apply(e,n)).next())});import{l as o}from"./index-D6-fj_Lr.js";import{c as u}from"./resourceApi-D9gL48ec.js";import{s as m}from"./sysMenuApi-DXmvpZg5.js";import{b6 as f}from"./entry/index-BaQQ7BQ_.js";import{n as b,S as h}from"./antd-ILpsl5AZ.js";import{l as y}from"./vue-CF9JqwIh.js";const q=[{label:"CBB库名称",field:"name",required:!0,component:"Input",componentProps:{placeholder:"请输入菜单名称"},colProps:{span:24}},{ifShow:!1,label:"二级分类",field:"typeValue",component:"Input"},{ifShow:!1,label:"二级分类",field:"categoryName",component:"Input"},{label:"所属分类",field:"categoryId",required:!0,component:"ApiSelect",componentProps:({formActionType:e,formModel:n})=>({api:u,valueField:"id",labelField:"name",resultField:"data",getPopupContainer:()=>document.body,params:{type:"CBB"},onSelect:(i,r)=>c(void 0,null,function*(){const t=yield m({parentId:i});n.categoryName=r==null?void 0:r.label,(t==null?void 0:t.length)>0?(yield e.updateSchema([{label:"二级分类",field:"typeDict",ifShow:!0,required:!0,component:"Select",componentProps:({formModel:p})=>({options:t==null?void 0:t.map(d=>({label:d.name,value:d.id})),onChange:(d,a)=>c(void 0,null,function*(){p.typeValue=a==null?void 0:a.label})})}]),n.typeDict=void 0):yield e.updateSchema([{ifShow:!1,label:"二级分类",field:"typeDict",component:"Input"}])})})},{ifShow:!1,label:"二级分类",field:"typeDict",component:"Input"},{label:"审批人",field:"reviewBy",required:!0,itemProps:{validateTrigger:"blur"},component:"ApiSelect",componentProps:()=>({placeholder:"请选择审批人",api:f,showSearch:!0,filterOption:!1,mode:"multiple",resultField:"data",labelField:"nickname",valueField:"id",getPopupContainer:()=>document.body}),colProps:{span:24}},{label:"排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入CBB库排序"}},{label:"建设时间",field:"createTime",component:"DatePicker",required:!0,componentProps:{style:{width:"100%"},format:"YYYY-MM-DD",placeholder:"请输入上传日期",valueFormat:"YYYY-MM-DD"},defaultValue:b().format("YYYY-MM-DD")}],B=[{label:"id",field:"id",ifShow:!1,component:"Input"},{label:"菜单名称",field:"name",required:!0,component:"Input",componentProps:{placeholder:"请输入菜单名称"}},{label:"排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入排序编码"}},{label:"启用情况",field:"enable",ifShow:({values:e})=>e.id!=null,component:"ApiRadioGroup",componentProps:()=>({api:o,params:{dictCode:"sys_enable_type"}})}],_=[{title:"CBB库名称",dataIndex:"name",align:"left"},{title:"所属分类",dataIndex:"categoryName",align:"left"},{title:"二级分类",dataIndex:"typeValue",align:"left"},{title:"排序",dataIndex:"sort",width:80,align:"left"},{title:"创建时间",dataIndex:"createTime",align:"left"},{title:"下属菜单",dataIndex:"menuNameList",align:"left"},{title:"审批人",dataIndex:"reviewByName",ellipsis:!0,align:"left"},{title:"更新时间",dataIndex:"updateTime",align:"left"},{title:"状态",dataIndex:"status",align:"left"}],D=[{field:"name",label:"",component:"Input",componentProps:({formModel:e})=>({placeholder:"请输入要搜索的内容",onChange:n=>{e.blurry=n.target.value}}),renderComponentContent:()=>({prefix:()=>y(h)}),colProps:{span:24}}],Y=[{title:"菜单名称",dataIndex:"name",align:"left"},{title:"排序",dataIndex:"sort",align:"left"},{title:"核心字段",dataIndex:"fieldNameList",align:"left"},{title:"更新时间",dataIndex:"updateTime",align:"left"},{title:"启用情况",dataIndex:"enable",align:"left"}],F=[{title:"字段",dataIndex:"fieldKey",align:"left"},{title:"字段名称",dataIndex:"fieldName",align:"left"},{title:"排序",dataIndex:"sort",align:"left"},{title:"是否显示",dataIndex:"show",align:"left"},{title:"是否增改",dataIndex:"editable",align:"left"},{title:"是否必填",dataIndex:"required",align:"left"},{title:"模糊搜索",dataIndex:"fuzzySearch",align:"left"},{title:"精准查询",dataIndex:"exactSearch",align:"left"},{title:"字段类型",dataIndex:"inputBoxType",align:"left"}],N=[{label:"id",field:"id",ifShow:!1,component:"Input"},{label:"字段键值",field:"fieldKey",required:!0,component:"Input",componentProps:({formModel:e})=>({placeholder:"请输入字段键值",disabled:!!e.id})},{label:"字段名称",field:"fieldName",required:!0,component:"Input",componentProps:{placeholder:"请输入字段名称"}},{label:"字段排序",field:"sort",required:!0,component:"InputNumber",componentProps:{placeholder:"请输入排序编码"}},{label:"是否显示",field:"show",component:"ApiRadioGroup",componentProps:{api:o,params:{dictCode:"sys_true_false"}},defaultValue:"0"},{label:"是否增改",field:"editable",component:"ApiRadioGroup",componentProps:{api:o,params:{dictCode:"sys_true_false"}},defaultValue:"0"},{label:"是否必填",field:"required",component:"ApiRadioGroup",componentProps:{api:o,params:{dictCode:"sys_true_false"}},defaultValue:"0"},{label:"模糊搜索",field:"fuzzySearch",component:"ApiRadioGroup",componentProps:{api:o,params:{dictCode:"sys_true_false"}},defaultValue:"0"},{label:"精准查询",field:"exactSearch",component:"ApiRadioGroup",componentProps:{api:o,params:{dictCode:"sys_true_false"}},defaultValue:"0"},{label:"字段类型",required:!0,field:"inputBoxType",component:"ApiSelect",componentProps:{api:o,params:{dictCode:"biz_feild_type"}}},{label:"选项值",ifShow:({values:e})=>e.inputBoxType==="select"||e.inputBoxType==="multipleSelect",field:"options",slot:"options"}];export{N as a,B as b,_ as c,q as d,F as f,Y as m,D as s};