自动填充组件api搜索

代码生成路径大小写修正
折叠组件样式修改
信息体组件可带出部门
详情页子表样式调整:按钮下移
栅格字段栅格数配置不生效
自动编号页面样式修正、增加编号配置可排序用于修改编号配置生成规则、修正自动编号编辑缺陷
列表页样式修正
详情页按钮间距修正
This commit is contained in:
yaoyn
2024-05-17 17:05:14 +08:00
parent 21eb71d35d
commit 5fa642dc64
19 changed files with 162 additions and 76 deletions

View File

@ -87,13 +87,18 @@
{
title: t('步长'),
dataIndex: 'stepValue',
width: 120,
width: 100,
},
{
title: t('初始值'),
dataIndex: 'initValue',
width: 120,
width: 100,
},
{
title: t('排序'),
dataIndex: 'sortNum',
width: 100,
},
{
title: t('说明'),
dataIndex: 'description',
@ -128,7 +133,13 @@
setFieldsValue({
...record,
});
setTableData(JSON.parse({ ...record }.formatJson));
let datas=JSON.parse({ ...record }.formatJson);
datas.forEach((data)=>{
if(!data.sortNum){
data.sortNum=0;
}
});
setTableData(datas);
} else {
setTableData([]);
}
@ -147,6 +158,10 @@
dataIndex: 'action',
slots: { customRender: 'action' },
},
formConfig: {
showResetButton: false,
showSubmitButton: false
}
});
const getTitle = computed(() => (!unref(isUpdate) ? t('新增单据编码') : t('编辑单据编码')));
@ -154,7 +169,11 @@
async function handleSubmit() {
try {
const values = await validate();
values.formatJson = JSON.stringify(getDataSource());
let data=getDataSource();
data.sort((a,b)=>{
return a.sortNum-b.sortNum;
});
values.formatJson = JSON.stringify(data);
setModalProps({ confirmLoading: true });
if (values.formatJson === '[]') {
notification.warning({