Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
6bc2a8ad
Commit
6bc2a8ad
authored
Jun 21, 2020
by
ZhengJie
Browse files
[代码优化](v2.5): 前端代码生成日期选择改为 date-range-picker 组件
parent
fbd09cf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/resources/template/generator/front/index.ftl
View file @
6bc2a8ad
...
...
@@ -17,16 +17,11 @@
<#if betweens??>
<#list betweens as column>
<#if column.queryType = 'BetWeen'>
<
el-
date-picker
<dat
e-rang
e-picker
v-model="query.$
{
column
.changeColumnName
}
"
:default-time="['00:00:00','23:59:59']"
type="daterange"
range-separator=":"
size="small"
class="date-item"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="$
{
column
.changeColumnName
}
Start"
end-placeholder="$
{
column
.changeColumnName
}
End"
end-placeholder="$
{
column
.changeColumnName
}
Start"
class="date-item"
/>
</#if>
</#list>
...
...
@@ -125,6 +120,7 @@ import crudOperation from '@crud/CRUD.operation'
import
udOperation from '@crud/UD.operation'
import
pagination from '@crud/Pagination'
const
defaultForm =
{
<#
if
columns
??><#
list
columns
as
column
>$
{
column
.changeColumnName
}:
null
<#
if
column_has_next
>
,
</#
if
></#
list
></#
if
>
}
export
default
{
name
:
'$
{
className
}
'
,
...
...
Write
Preview
Supports
Markdown
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