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

页面修改

parent 28444f32
......@@ -118,7 +118,7 @@ namespace Mall.Model.Extend.TradePavilion
/// <summary>
/// 编号
/// </summary>
public string Id { get; set; }
public int Id { get; set; }
/// <summary>
/// 名称
......
......@@ -246,10 +246,21 @@ namespace Mall.Module.TradePavilion
Name = dropdownObj.GetStringValue("Name"),
IsMultiple = dropdownObj.GetBoolValue("IsMultiple"),
IsRequire = dropdownObj.GetBoolValue("IsRequire"),
OptionValue = dropdownObj.GetStringValue("OptionValue"),
OptionList = new List<SelectOption>(),
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"));
if (optionList != null && optionList.Count > 0)
{
......@@ -258,7 +269,7 @@ namespace Mall.Module.TradePavilion
JObject optionObj = JObject.Parse(oItem.ToString());
SelectOption option = new SelectOption()
{
Id = optionObj.GetStringValue("Id"),
Id = optionObj.GetInt("Id"),
Name = optionObj.GetStringValue("Name"),
};
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