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
9b0b965f
Commit
9b0b965f
authored
Jul 24, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除日期修改
parent
5cc88147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
index.vue
pages/exception/index.vue
+9
-3
No files found.
pages/exception/index.vue
View file @
9b0b965f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</
template
>
</
template
>
<
template
slot=
"buttons"
>
<
template
slot=
"buttons"
>
<DatePicker
type=
"date"
v-model=
"end"
placeholder=
"选择终止日期"
style=
"width: 150px"
></DatePicker>
<DatePicker
type=
"date"
v-model=
"end"
placeholder=
"选择终止日期"
style=
"width: 150px"
></DatePicker>
<Button
type=
"error"
@
click=
"clear"
>
清理
</Button>
<Button
type=
"error"
@
click=
"clear"
:disabled=
"dis"
>
清理
</Button>
</
template
>
</
template
>
</DataGrid>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
fullscreen
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
fullscreen
footer-hide
>
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
],
],
};
};
},
},
moun
ted
()
{
crea
ted
()
{
var
date
=
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
5
;
var
date
=
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
5
;
this
.
end
=
new
Date
(
date
);
this
.
end
=
new
Date
(
date
);
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
clear
(){
clear
(){
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
title
:
"确认"
,
title
:
"确认"
,
content
:
"确认要删除"
+
this
.
end
+
"以前的数据吗"
,
content
:
"确认要删除"
+
this
.
$u
.
toDate
(
this
.
end
)
+
"以前的数据吗"
,
onOk
:()
=>
{
onOk
:()
=>
{
Api
.
deleteAll
(
this
.
end
).
then
(
r
=>
{
Api
.
deleteAll
(
this
.
end
).
then
(
r
=>
{
if
(
r
.
success
){
if
(
r
.
success
){
...
@@ -263,6 +263,12 @@ export default {
...
@@ -263,6 +263,12 @@ export default {
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
},
},
computed
:{
dis
(){
var
num
=
(
new
Date
().
getTime
()
-
this
.
end
.
getTime
())
/
(
1000
*
60
*
60
*
24
);
return
num
<
1
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
...
...
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