From 41a5531dc31a642623f0a7a766fbe9c256ba9247 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 11 二月 2025 13:53:29 +0800
Subject: [PATCH] 优化WMS前端
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs"
index 6a8c66b..4ecf1f0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs"
@@ -59,7 +59,7 @@
}
[HttpPost, Route("Del")]
- public virtual ActionResult Del(object key)
+ public virtual ActionResult Del([FromBody] object[] key)
{
return Json(InvokeService("DeleteData", new object[] { key }));
}
@@ -77,7 +77,7 @@
return Json(result);
}
- [HttpPost, Route("DownLoadTemplate")]
+ [HttpPost, HttpGet, Route("DownLoadTemplate")]
public virtual ActionResult DownLoadTemplate()
{
WebResponseContent result = InvokeService("DownLoadTemplate", new object[] { }) as WebResponseContent;
@@ -94,7 +94,12 @@
public virtual ActionResult Import(List<IFormFile> fileInput)
{
return Json(InvokeService("Import", new object[] { fileInput }));
+ }
+ [HttpPost, Route("ExportSeedData"), AllowAnonymous]
+ public ActionResult ExportSeedData()
+ {
+ return Json(InvokeService("ExportSeedData", new object[] { }));
}
private object InvokeService(string methodName, object[] parameters)
--
Gitblit v1.9.3