fix: 修复前端若干类型报错

This commit is contained in:
ah--desktop
2026-03-31 23:44:37 +08:00
parent 7f5803ddda
commit 6b434fbf63
38 changed files with 383 additions and 1981 deletions
@@ -114,13 +114,14 @@ const gridOptions: VxeGridProps<any> = {
};
// 搜索表单配置
const gridReloadRef = ref<(() => void) | null>(null);
const formOptions = computed(() => ({
schema: [
{
component: 'Input',
componentProps: {
placeholder: '请输入状态名称(回车搜索)',
onPressEnter: () => gridApi?.reload(),
onPressEnter: () => gridReloadRef.value?.(),
},
fieldName: 'statusName',
label: '状态名称',
@@ -134,7 +135,7 @@ const formOptions = computed(() => ({
{ label: '不参与自动统计', value: 0 },
],
allowClear: true,
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'autoStatistics',
label: '自动统计',
@@ -152,6 +153,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
showSearchForm: true,
tableTitle: '订单状态配置',
});
gridReloadRef.value = () => gridApi.reload();
// 刷新表格数据
function refreshTable() {
@@ -128,13 +128,14 @@ const gridOptions: VxeGridProps<any> = {
};
// 搜索表单配置
const gridReloadRef = ref<(() => void) | null>(null);
const formOptions = computed(() => ({
schema: [
{
component: 'Input',
componentProps: {
placeholder: '请输入类型名称(回车搜索)',
onPressEnter: () => gridApi?.reload(),
onPressEnter: () => gridReloadRef.value?.(),
},
fieldName: 'typeName',
label: '类型名称',
@@ -148,7 +149,7 @@ const formOptions = computed(() => ({
{ label: '禁用', value: 0 },
],
allowClear: true,
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'isActive',
label: '状态',
@@ -166,6 +167,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
showSearchForm: true,
tableTitle: '推广费用类型配置',
});
gridReloadRef.value = () => gridApi.reload();
// 刷新表格数据
function refreshTable() {