diff --git a/AMESCoreStudio.Web/Controllers/BASController.cs b/AMESCoreStudio.Web/Controllers/BASController.cs index d18d02df..48ced661 100644 --- a/AMESCoreStudio.Web/Controllers/BASController.cs +++ b/AMESCoreStudio.Web/Controllers/BASController.cs @@ -1338,6 +1338,27 @@ namespace AMESCoreStudio.Web.Controllers [HttpGet] public async Task GetRuleStationsByFlowAsync(int flowId, int page = 0, int limit = 10) { + var flow_id = ""; + HttpContext.Request.Cookies.TryGetValue("FlowID4BAS010", out flow_id); + if (flow_id != null) + { + if (flowId == 0) + { + flowId = int.Parse(flow_id.ToString()); + } + else + { + HttpContext.Response.Cookies.Append("FlowID4BAS010", flowId.ToString()); + } + } + else + { + if (flowId > 0) + { + HttpContext.Response.Cookies.Append("FlowID4BAS010", flowId.ToString()); + } + } + var result_total = await _basApi.GetRuleStationsByFlow(flowId, 0, limit); var result = await _basApi.GetRuleStationsByFlow(flowId, page, limit); @@ -1459,6 +1480,8 @@ namespace AMESCoreStudio.Web.Controllers { var _msg = model.CreateDate == System.DateTime.MinValue ? "添加成功!" : "修改成功!"; return RedirectToAction("Refresh", "Home", new { msg = _msg }); + //return RedirectToPage("/BAS/BAS010"); + } else { diff --git a/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml b/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml index f5bed63a..0460c6d7 100644 --- a/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml +++ b/AMESCoreStudio.Web/Views/BAS/BAS010.cshtml @@ -76,6 +76,7 @@ { console.info(result.data); $("#flow").empty();//清空下拉框的值 + $("#flow").prepend(""); $.each(result.data, function (index, item) { $("#flow").append($("