Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
249bfcbe
Commit
249bfcbe
authored
Oct 29, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间控件
parent
0685f966
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
dateRange.vue
components/page/dateRange.vue
+6
-4
add.vue
pages/project/project/add.vue
+2
-1
No files found.
components/page/dateRange.vue
View file @
249bfcbe
<
template
>
<div
class=
"time-view"
>
<div
class=
"time-view"
v-if=
"startDate && endDate"
>
<div>
{{
startDate
}}
</div>
<div
class=
"jian-tou"
v-if=
"startDate && endDate"
>
<div
class=
"jian-tou"
>
<div>
{{
jg
}}
{{
unit
}}
</div>
</div>
<div>
{{
endDate
}}
</div>
...
...
@@ -47,8 +47,10 @@ export default {
},
methods
:
{
init
(
v
)
{
this
.
startDate
=
v
[
this
.
start
];
this
.
endDate
=
v
[
this
.
end
];
if
(
v
)
{
this
.
startDate
=
v
[
this
.
start
];
this
.
endDate
=
v
[
this
.
end
];
}
this
.
unit
=
this
.
mode
;
var
date1
=
new
Date
(
this
.
startDate
).
getTime
();
//开始时间,时间戳
...
...
pages/project/project/add.vue
View file @
249bfcbe
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"100"
>
<!--
<DateDRange
:value=
"timeValue"
></DateDRange>
-->
<Row>
<Col
span=
"8"
class=
"projct-img"
>
<FormItem
:label=
"l('picture')"
prop=
"picture"
>
...
...
@@ -87,7 +88,7 @@
style=
"width: 300px"
></DatePicker>
</FormItem
></Col>
<!--
<DateDRange
:timeValue=
"timeValue"
:wrok=
"1"
></DateDRange>
-->
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
...
...
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