From 8fbcbc9c365e911b561d17834f8e350974ca1439 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 20 5月 2025 12:43:13 +0800
Subject: [PATCH] 22
---
HIAWms/hiawms_web/src/widgets/WmsContainer/Controllers/WmsContainer.ts | 30 +++++++++++++++++++++++-------
1 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/HIAWms/hiawms_web/src/widgets/WmsContainer/Controllers/WmsContainer.ts b/HIAWms/hiawms_web/src/widgets/WmsContainer/Controllers/WmsContainer.ts
index 97ecbec..65b9471 100644
--- a/HIAWms/hiawms_web/src/widgets/WmsContainer/Controllers/WmsContainer.ts
+++ b/HIAWms/hiawms_web/src/widgets/WmsContainer/Controllers/WmsContainer.ts
@@ -51,7 +51,11 @@
title: '',
isAdd: false,
})
-
+ const dialogConfigForQuery = reactive({
+ visible: false,
+ title: '',
+ isAdd: false,
+ })
const dialogSettingConfig = reactive({
visible: false,
title: '',
@@ -149,6 +153,15 @@
sort.value = params.totalCount + 1
}
+ //鐐瑰嚮鎸夐挳銆愰珮绾ф煡璇€��
+ const onAdvancedQuery = () => {
+ const params = tableRef.value?.getPaginationParams()
+ current.value = null
+ dialogConfigForQuery.visible = true
+ dialogConfigForQuery.isAdd = true
+ dialogConfigForQuery.title = '楂樼骇鏌ヨ'
+ }
+
const onConfirmWmsContainer = async () => {
dialogConfig.visible = false
if (dialogConfig.isAdd) {
@@ -167,12 +180,13 @@
current.value = row
}
}
- /**
- * 瀵煎嚭
- */
- const onExport = () => {
- const params = tableRef.value?.getParams()
- exportFile('/api/v1/HIAWms/wmsContainer/export', params, 'wmsContainer')
+ /**
+
+ * 瀵煎嚭
+ */
+ const onExport = (data = {}) => {
+ //const params = tableRef.value?.getParams()
+ exportFile('/api/v1/HIAWms/wmsContainer/export', data, '鎵樼洏绠$悊')
}
/**
@@ -241,6 +255,7 @@
current,
search,
sort,
+ dialogConfigForQuery,
wmsContainerColumns,
paginationParams,
headers,
@@ -253,6 +268,7 @@
onRowClick,
onConfirmWmsContainer,
onCheck,
+ onAdvancedQuery,
onAddWmsContainer,
}
}
--
Gitblit v1.9.3