mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 00:29:19 +08:00
feat: 整理SQL
This commit is contained in:
@@ -170,14 +170,15 @@ const gridOptions: VxeGridProps<any> = {
|
||||
},
|
||||
};
|
||||
|
||||
// 搜索表单配置
|
||||
// 搜索表单配置(避免 formOptions 与 gridApi 循环推断)
|
||||
const gridReloadRef = ref<(() => void) | null>(null);
|
||||
const formOptions = computed(() => ({
|
||||
schema: [
|
||||
{
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
placeholder: '请输入平台订单号(回车搜索)',
|
||||
onPressEnter: () => gridApi?.reload(),
|
||||
onPressEnter: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'platformOrderNo',
|
||||
label: '平台订单号',
|
||||
@@ -188,7 +189,7 @@ const formOptions = computed(() => ({
|
||||
placeholder: '请选择店铺',
|
||||
options: shopOptions,
|
||||
allowClear: true,
|
||||
onChange: () => gridApi?.reload(),
|
||||
onChange: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'shopId',
|
||||
label: '店铺',
|
||||
@@ -200,7 +201,7 @@ const formOptions = computed(() => ({
|
||||
min: 0,
|
||||
precision: 2,
|
||||
style: { width: '100%' },
|
||||
onPressEnter: () => gridApi?.reload(),
|
||||
onPressEnter: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'minBrushAmount',
|
||||
label: '金额范围',
|
||||
@@ -212,7 +213,7 @@ const formOptions = computed(() => ({
|
||||
min: 0,
|
||||
precision: 2,
|
||||
style: { width: '100%' },
|
||||
onPressEnter: () => gridApi?.reload(),
|
||||
onPressEnter: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'maxBrushAmount',
|
||||
label: '',
|
||||
@@ -224,7 +225,7 @@ const formOptions = computed(() => ({
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
style: { width: '100%' },
|
||||
onChange: () => gridApi?.reload(),
|
||||
onChange: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'startBrushTime',
|
||||
label: '刷单时间',
|
||||
@@ -236,7 +237,7 @@ const formOptions = computed(() => ({
|
||||
showTime: true,
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
style: { width: '100%' },
|
||||
onChange: () => gridApi?.reload(),
|
||||
onChange: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'endBrushTime',
|
||||
label: '',
|
||||
@@ -261,6 +262,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
showSearchForm: true,
|
||||
tableTitle: '刷单记录管理',
|
||||
});
|
||||
gridReloadRef.value = () => gridApi.reload();
|
||||
|
||||
// 处理新增
|
||||
const handleAdd = () => {
|
||||
|
||||
@@ -13,13 +13,13 @@ export default defineConfig(async () => {
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
// 后端服务地址
|
||||
target: 'http://192.168.3.101:8080',
|
||||
target: 'http://localhost:8080',
|
||||
ws: true,
|
||||
},
|
||||
// 静态资源代理 - 用于访问上传的图片和文件
|
||||
'/uploads': {
|
||||
changeOrigin: true,
|
||||
target: 'http://192.168.3.101:8080',
|
||||
target: 'http://localhost:8080',
|
||||
ws: false,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user