Commit 0be9fc01 authored by 黄奎's avatar 黄奎

页面修改

parent 28444f32
...@@ -118,7 +118,7 @@ namespace Mall.Model.Extend.TradePavilion ...@@ -118,7 +118,7 @@ namespace Mall.Model.Extend.TradePavilion
/// <summary> /// <summary>
/// 编号 /// 编号
/// </summary> /// </summary>
public string Id { get; set; } public int Id { get; set; }
/// <summary> /// <summary>
/// 名称 /// 名称
......
...@@ -246,10 +246,21 @@ namespace Mall.Module.TradePavilion ...@@ -246,10 +246,21 @@ namespace Mall.Module.TradePavilion
Name = dropdownObj.GetStringValue("Name"), Name = dropdownObj.GetStringValue("Name"),
IsMultiple = dropdownObj.GetBoolValue("IsMultiple"), IsMultiple = dropdownObj.GetBoolValue("IsMultiple"),
IsRequire = dropdownObj.GetBoolValue("IsRequire"), IsRequire = dropdownObj.GetBoolValue("IsRequire"),
OptionValue = dropdownObj.GetStringValue("OptionValue"),
OptionList = new List<SelectOption>(), OptionList = new List<SelectOption>(),
Remark = dropdownObj.GetStringValue("Remark"), Remark = dropdownObj.GetStringValue("Remark"),
}; };
if (selectItem.IsMultiple)
{
List<string> valueList = JsonHelper.DeserializeObject<List<string>>(dropdownObj.GetStringValue("OptionValue"));
if (valueList != null && valueList.Count > 0)
{
selectItem.OptionValue = string.Join(",", valueList);
}
}
else
{
selectItem.OptionValue = dropdownObj.GetStringValue("OptionValue");
}
var optionList = JArray.Parse(dropdownObj.GetStringValue("OptionList")); var optionList = JArray.Parse(dropdownObj.GetStringValue("OptionList"));
if (optionList != null && optionList.Count > 0) if (optionList != null && optionList.Count > 0)
{ {
...@@ -258,7 +269,7 @@ namespace Mall.Module.TradePavilion ...@@ -258,7 +269,7 @@ namespace Mall.Module.TradePavilion
JObject optionObj = JObject.Parse(oItem.ToString()); JObject optionObj = JObject.Parse(oItem.ToString());
SelectOption option = new SelectOption() SelectOption option = new SelectOption()
{ {
Id = optionObj.GetStringValue("Id"), Id = optionObj.GetInt("Id"),
Name = optionObj.GetStringValue("Name"), Name = optionObj.GetStringValue("Name"),
}; };
selectItem.OptionList.Add(option); selectItem.OptionList.Add(option);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment