Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
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
bltdc
DataCenter_Core2.1_20190520
Commits
ae923ba2
Commit
ae923ba2
authored
Jan 11, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:组件功能
parent
255d5329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
TableService.cs
Bailun.DC.Services/Component/TableService.cs
+2
-2
el-form-control.js
Bailun.DC.Web/wwwroot/js/component/el-form-control.js
+14
-1
No files found.
Bailun.DC.Services/Component/TableService.cs
View file @
ae923ba2
...
@@ -95,7 +95,7 @@ namespace Bailun.DC.Services.Component
...
@@ -95,7 +95,7 @@ namespace Bailun.DC.Services.Component
{
{
entity
=
this
.
Get
(
queryFilter
.
Code
);
entity
=
this
.
Get
(
queryFilter
.
Code
);
}
}
if
(
entity
!=
null
&&
(!
string
.
IsNullOrWhiteSpace
(
entity
.
ColumnValue
)))
if
(
entity
!=
null
&&
(!
string
.
IsNullOrWhiteSpace
(
entity
.
ColumnValue
)
||
entity
.
ListColumn
?.
Count
()
>
0
))
{
{
switch
(
entity
.
ColumnType
)
switch
(
entity
.
ColumnType
)
{
{
...
@@ -115,7 +115,7 @@ namespace Bailun.DC.Services.Component
...
@@ -115,7 +115,7 @@ namespace Bailun.DC.Services.Component
#
region
本地配置
#
region
本地配置
case
ColumnTypeEnum
.
Config
:
case
ColumnTypeEnum
.
Config
:
list
=
DeserializeCollection
<
dynamic
>(
entity
.
ColumnValue
)
.
ToList
();
list
=
!
string
.
IsNullOrWhiteSpace
(
entity
.
ColumnValue
)
?
DeserializeCollection
<
dynamic
>(
entity
.
ColumnValue
).
ToList
()
:
entity
.
ListColumn
.
ToList
();
break
;
break
;
#
endregion
#
endregion
...
...
Bailun.DC.Web/wwwroot/js/component/el-form-control.js
View file @
ae923ba2
...
@@ -135,8 +135,21 @@
...
@@ -135,8 +135,21 @@
}
}
}
}
break
;
break
;
//
日期
//
年月
case
'month'
:
case
'month'
:
var
date
=
new
Date
();
switch
(
that
.
item
.
defaultValue
)
{
case
"new Date()"
:
case
"curr month()"
:
date
=
new
Date
(
date
.
setDate
(
1
));
break
;
case
"prev month()"
:
date
=
new
Date
(
new
Date
(
date
.
setMonth
(
date
.
getMonth
()
-
1
)).
setDate
(
1
));
break
;
}
that
.
$set
(
that
,
"item_value"
,
date
);
break
;
//日期
case
'date'
:
case
'date'
:
that
.
$set
(
that
,
"item_value"
,
that
.
item
.
defaultValue
==
'new Date()'
?
new
Date
()
:
that
.
item
.
defaultValue
);
that
.
$set
(
that
,
"item_value"
,
that
.
item
.
defaultValue
==
'new Date()'
?
new
Date
()
:
that
.
item
.
defaultValue
);
break
;
break
;
...
...
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