Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Community-Mining-Admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
Community-Mining-Admin
Commits
da30bfc7
Commit
da30bfc7
authored
Sep 28, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
316dbac2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
utils.ts
src/utils/utils.ts
+4
-7
Launch.vue
src/views/mining/Launch.vue
+0
-2
No files found.
src/utils/utils.ts
View file @
da30bfc7
import
dayjs
from
"dayjs"
export
const
getDateTime
=
function
(
s
:
string
)
{
export
const
getDateTime
=
function
(
s
:
string
)
{
const
str
=
Number
(
s
+
'000'
)
const
str
=
Number
(
s
+
'000'
)
const
year
=
new
Date
(
str
).
getFullYear
()
return
dayjs
(
str
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
const
month
=
new
Date
(
str
).
getMonth
()
>=
10
?
new
Date
(
str
).
getMonth
()
+
1
:
'0'
+
(
new
Date
(
str
).
getMonth
()
+
1
)
const
day
=
new
Date
(
str
).
getDate
()
>=
10
?
new
Date
(
str
).
getDate
()
:
'0'
+
new
Date
(
str
).
getDate
()
const
hours
=
new
Date
(
str
).
getHours
()
>=
10
?
new
Date
(
str
).
getHours
()
:
'0'
+
new
Date
(
str
).
getHours
()
const
min
=
new
Date
(
str
).
getMinutes
()
>=
10
?
new
Date
(
str
).
getMinutes
()
:
'0'
+
new
Date
(
str
).
getMinutes
()
const
sec
=
new
Date
(
str
).
getSeconds
()
>=
10
?
new
Date
(
str
).
getSeconds
()
:
'0'
+
new
Date
(
str
).
getSeconds
()
return
year
+
'-'
+
month
+
'-'
+
day
+
' '
+
hours
+
':'
+
min
+
":"
+
sec
}
}
\ No newline at end of file
src/views/mining/Launch.vue
View file @
da30bfc7
...
@@ -285,7 +285,6 @@ export default Vue.extend({
...
@@ -285,7 +285,6 @@ export default Vue.extend({
this
.
getList
()
this
.
getList
()
}
}
})
})
console
.
log
(
'toTop'
)
},
},
statusClick
(
item
:
any
)
{
statusClick
(
item
:
any
)
{
console
.
log
(
item
)
console
.
log
(
item
)
...
@@ -311,7 +310,6 @@ export default Vue.extend({
...
@@ -311,7 +310,6 @@ export default Vue.extend({
},
},
makeSureDel
()
{
makeSureDel
()
{
removePool
({
id
:
this
.
id
}).
then
((
res
:
any
)
=>
{
removePool
({
id
:
this
.
id
}).
then
((
res
:
any
)
=>
{
// if (res.code === 200) {
if
(
res
.
data
.
isSucc
)
{
if
(
res
.
data
.
isSucc
)
{
this
.
delVisible
=
false
this
.
delVisible
=
false
this
.
$message
.
success
(
'删除成功'
)
this
.
$message
.
success
(
'删除成功'
)
...
...
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