主数据bug修复
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
const { filterFormSchemaAuth } = usePermission();
|
||||
const { mergeFormSchemas,mergeFormEventConfigs } = useFormConfig();
|
||||
const { currentRoute } = useRouter();
|
||||
|
||||
const isView = currentRoute.value.query.isView
|
||||
const RowKey = 'id';
|
||||
const emits = defineEmits(['changeUploadComponentIds','loadingCompleted', 'form-mounted']);
|
||||
const props = defineProps({
|
||||
@ -44,6 +44,11 @@
|
||||
let customFormEventConfigs=[];
|
||||
|
||||
onMounted(async () => {
|
||||
formProps.schemas?.forEach(v => {
|
||||
if (v.field === 'code') {
|
||||
v.component = 'Input'
|
||||
}
|
||||
})
|
||||
try {
|
||||
// 合并渲染覆盖配置中的字段配置、表单事件配置
|
||||
await mergeCustomFormRenderConfig();
|
||||
|
||||
@ -15,11 +15,6 @@ export const searchFormSchema: FormSchema[] = [
|
||||
label: '银行名称/简称',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'code',
|
||||
label: '编码',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
field: 'bankCode',
|
||||
label: '联行号',
|
||||
@ -38,6 +33,11 @@ export const searchFormSchema: FormSchema[] = [
|
||||
getPopupContainer: () => document.body,
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'code',
|
||||
label: '编码',
|
||||
component: 'Input',
|
||||
},
|
||||
// {
|
||||
// field: 'fullName',
|
||||
// label: '银行名称',
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex" class="cusFormStyle">
|
||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex" class="cusFormStyle bankStyle">
|
||||
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
||||
|
||||
<template #toolbar>
|
||||
@ -215,7 +215,8 @@ const logPath = ref('/mdm/bank/datalog');
|
||||
query: {
|
||||
formPath: 'mdm/Bank',
|
||||
formName: formName,
|
||||
formId:currentRoute.value.meta.formId
|
||||
formId:currentRoute.value.meta.formId,
|
||||
isView: true
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -374,6 +375,9 @@ const logPath = ref('/mdm/bank/datalog');
|
||||
.cusFormStyle .cusSearchForm .advanceRow> div:nth-of-type(3){
|
||||
display: none;
|
||||
}
|
||||
.bankStyle .w-full .advanceRow> div:nth-of-type(4){
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user