Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
0be9fc01
Commit
0be9fc01
authored
Aug 31, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
28444f32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
RB_Custom_Form_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Custom_Form_Extend.cs
+1
-1
CustomFormModule.cs
Mall.Module.TradePavilion/CustomFormModule.cs
+13
-2
No files found.
Mall.Model/Extend/TradePavilion/RB_Custom_Form_Extend.cs
View file @
0be9fc01
...
...
@@ -118,7 +118,7 @@ namespace Mall.Model.Extend.TradePavilion
/// <summary>
/// 编号
/// </summary>
public
string
Id
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 名称
...
...
Mall.Module.TradePavilion/CustomFormModule.cs
View file @
0be9fc01
...
...
@@ -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
.
Get
StringValue
(
"Id"
),
Id
=
optionObj
.
Get
Int
(
"Id"
),
Name
=
optionObj
.
GetStringValue
(
"Name"
),
};
selectItem
.
OptionList
.
Add
(
option
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment