username@email.com
2024-01-12 0e5c4a8e17dcefcc10b2507da61b099be12451d8
zhengcaioa/zhengcaioa/Controllers/LiaotianController.cs
@@ -283,7 +283,7 @@
        #region 编辑
        [CheckLogin]
        public ActionResult Edit(string id = null)
        public ActionResult Edit(string id = null, string Questiontype = null, string Problemtype = null)
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
@@ -305,6 +305,18 @@
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(Questiontype))
                {
                    liaotianDTO.Questiontype = Questiontype;
                }
                if (!string.IsNullOrEmpty(Problemtype))
                {
                    liaotianDTO.Problemtype = Problemtype;
                }
            }
            ViewData.Model = liaotianDTO;
@@ -315,6 +327,12 @@
            ViewData["problemtype"] = _liaotianService.GetSYScode("Liaotian", "problemtype").Where(x=>x.Contents == liaotianDTO.Questiontype).ToList();
            //ViewData["Questiontypesel"] = Questiontype;
            //ViewData["Problemtypesel"] = Problemtype;
            return View();
        }