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
@@ -178,6 +178,7 @@ const gridOptions: VxeGridProps<any> = {
};
// 搜索表单配置
const gridReloadRef = ref<(() => void) | null>(null);
const formOptions = computed(() => ({
schema: [
{
@@ -187,7 +188,7 @@ const formOptions = computed(() => ({
// TODO: 这里需要从店铺API获取店铺列表
options: [],
allowClear: true,
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'shopId',
label: '店铺',
@@ -199,7 +200,7 @@ const formOptions = computed(() => ({
// TODO: 这里需要从推广费类型API获取类型列表
options: [],
allowClear: true,
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'feeTypeId',
label: '推广费类型',
@@ -210,7 +211,7 @@ const formOptions = computed(() => ({
placeholder: '请选择平台',
options: platformOptions,
allowClear: true,
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'platform',
label: '平台',
@@ -220,7 +221,7 @@ const formOptions = computed(() => ({
componentProps: {
placeholder: '开始日期',
style: { width: '100%' },
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'feeDateStart',
label: '发生日期',
@@ -230,7 +231,7 @@ const formOptions = computed(() => ({
componentProps: {
placeholder: '结束日期',
style: { width: '100%' },
onChange: () => gridApi?.reload(),
onChange: () => gridReloadRef.value?.(),
},
fieldName: 'feeDateEnd',
label: '至',
@@ -255,6 +256,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
showSearchForm: true,
tableTitle: '推广费管理',
});
gridReloadRef.value = () => gridApi.reload();
// 处理新增
const handleAdd = () => {