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
23ed2387
Commit
23ed2387
authored
Oct 28, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间控件
parent
8bbe81be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
28 deletions
+23
-28
range.png
assets/imgicon/range.png
+0
-0
dateRange.vue
components/page/dateRange.vue
+20
-25
add.vue
pages/project/project/add.vue
+1
-1
iview.js
plugins/iview.js
+2
-2
No files found.
assets/imgicon/range.png
0 → 100644
View file @
23ed2387
206 Bytes
components/page/
timeDifferenc
e.vue
→
components/page/
dateRang
e.vue
View file @
23ed2387
<
template
>
<div
class=
"time-view"
v-if=
"timeValue.startDate && timeValue.endDate"
>
<span>
{{
timeValue
.
startDate
}}
</span
>
<span
class=
"line"
>
————
</span>
<!--
{{
date
}}
-->
<span>
{{
timeValue
.
endDate
}}
</span>
<div
class=
"jian-tou"
></div>
<div
class=
"day-time"
>
{{
date
}}
</div>
<div>
{{
timeValue
.
startDate
}}
</div>
<div
class=
"jian-tou"
>
<div>
{{
date
}}
</div>
</div>
<div>
{{
timeValue
.
endDate
}}
</div>
</div>
</
template
>
<
script
>
...
...
@@ -69,7 +68,7 @@ export default {
}
else
if
(
this
.
work
==
1
)
{
result
=
""
+
parseInt
(
dayC
)
+
"天"
;
}
else
if
(
this
.
work
==
0
)
{
result
=
""
+
parseInt
(
hourC
)
+
"
小时
"
;
result
=
""
+
parseInt
(
hourC
)
+
"
h
"
;
}
// if (monthC >= 1) {
// result = "" + parseInt(monthC) + "月";
...
...
@@ -96,25 +95,21 @@ export default {
</
script
>
<
style
lang=
"less"
>
.time-view {
width: 300px;
position: relative;
.day-time {
position: absolute;
bottom: 11px;
left: 83px;
}
.line {
font-size: 18px;
}
// width: 600px;
display: -webkit-flex;
display: flex;
.jian-tou {
position: absolute;
bottom: 9px;
left: 144px;
width: 7px;
height: 7px;
border-top: 2px solid #666;
border-right: 2px solid #666;
transform: rotate(45deg);
width: 55px;
text-align: center;
margin: 5px;
background-image: url("../../assets/imgicon/range.png");
background-size: 100%;
background-repeat: no-repeat;
margin-top: 7px;
div {
margin-top: -13px;
}
}
}
</
style
>
pages/project/project/add.vue
View file @
23ed2387
...
...
@@ -87,7 +87,7 @@
style=
"width: 300px"
></DatePicker>
</FormItem
></Col>
<!--
<
TimeDifference
:timeValue=
"timeValue"
:wrok=
"1"
></TimeDifferenc
e>
-->
<!--
<
DateDRange
:timeValue=
"timeValue"
:wrok=
"1"
></DateDRang
e>
-->
<Col
:span=
"12"
><FormItem
:label=
"l('type')"
prop=
"type"
>
<Dictionary
...
...
plugins/iview.js
View file @
23ed2387
...
...
@@ -76,7 +76,7 @@ import InputCode from '@/components/page/inputCode.vue'
import
Pictrue
from
'@/components/page/pictrue.vue'
import
WordTree
from
'@/components/page/wordTree.vue'
import
Actions
from
'@/components/page/actions.vue'
import
TimeDifference
from
'@/components/page/timeDifferenc
e.vue'
import
DateDRange
from
'@/components/page/dateRang
e.vue'
import
FilesViewer
from
'@/components/page/filesViewer.vue'
...
...
@@ -158,7 +158,7 @@ Vue.component("InputCode", InputCode)
Vue
.
component
(
"Pictrue"
,
Pictrue
)
Vue
.
component
(
"WordTree"
,
WordTree
)
Vue
.
component
(
"Actions"
,
Actions
)
Vue
.
component
(
"
TimeDifference"
,
TimeDifferenc
e
)
Vue
.
component
(
"
DateDRange"
,
DateDRang
e
)
Vue
.
component
(
"Life"
,
Life
)
Vue
.
component
(
"FilesViewer"
,
FilesViewer
)
...
...
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