Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mining-manager
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
mining-manager
Commits
40e9001f
Commit
40e9001f
authored
Apr 25, 2022
by
louyuqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b3abe08e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
date.ts
src/utils/date.ts
+17
-0
newUser.vue
src/views/data/newUser.vue
+1
-1
ruleSet.vue
src/views/data/ruleSet.vue
+10
-4
No files found.
src/utils/date.ts
0 → 100644
View file @
40e9001f
import
dayjs
from
"dayjs"
;
import
type
{
Dayjs
}
from
"dayjs"
;
// import type {DayjsType} from "dayjs";
export
function
getDateTime
(
time
:
string
):
string
{
return
dayjs
(
time
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
}
export
function
getDateTimeByUnix
(
time
:
string
|
number
):
string
{
return
dayjs
.
unix
(
+
time
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
}
export
function
getDate
(
time
:
string
):
string
{
return
dayjs
(
time
).
format
(
'YYYY-MM-DD'
)
}
export
function
getNowUnix
():
number
{
return
dayjs
().
unix
();
}
\ No newline at end of file
src/views/data/newUser.vue
View file @
40e9001f
...
@@ -142,7 +142,7 @@ const cascaderProps={
...
@@ -142,7 +142,7 @@ const cascaderProps={
.control-bar{
.control-bar{
display: flex;
display: flex;
align-items: center;
align-items: center;
/deep/
.control-bar-item+.control-bar-item{
/deep/.control-bar-item+.control-bar-item{
margin-left: 10px;
margin-left: 10px;
}
}
}
}
...
...
src/views/data/ruleSet.vue
View file @
40e9001f
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
<el-table-column
v-for=
"i in config.columnSet"
:prop=
"i.prop"
:label=
"i.label"
>
<el-table-column
v-for=
"i in config.columnSet"
:prop=
"i.prop"
:label=
"i.label"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"管理"
>
<el-table-column
label=
"管理"
#
default=
"scope"
>
<el-button
type=
"text"
@
click=
"deleteData(scope.row.id)"
>
删除
</el-button>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -47,6 +47,7 @@ import {onMounted, reactive, ref} from "vue";
...
@@ -47,6 +47,7 @@ import {onMounted, reactive, ref} from "vue";
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
addWithdraw
,
delWithdraw
,
getWithdrawList
}
from
"../../api/ruleSetSearvice"
;
import
{
addWithdraw
,
delWithdraw
,
getWithdrawList
}
from
"../../api/ruleSetSearvice"
;
import
{
getDateTime
,
getDateTimeByUnix
}
from
"../../utils/date"
;
onMounted
(()
=>
{
onMounted
(()
=>
{
getData
();
getData
();
})
})
...
@@ -87,7 +88,12 @@ const data=reactive({
...
@@ -87,7 +88,12 @@ const data=reactive({
const
getData
=
()
=>
{
const
getData
=
()
=>
{
getWithdrawList
({
page
:
params
.
page
,
pageSize
:
params
.
pageSize
,
ty
:
type
.
value
}).
then
(
res
=>
{
getWithdrawList
({
page
:
params
.
page
,
pageSize
:
params
.
pageSize
,
ty
:
type
.
value
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
console
.
log
(
res
.
data
)
data
.
tableData
=
res
.
data
.
list
;
data
.
tableData
=
res
.
data
.
list
.
map
((
da
:
any
)
=>
{
return
{
...
da
,
createAtString
:
getDateTimeByUnix
(
da
.
createAt
)
}
});
data
.
count
=+
res
.
data
.
count
data
.
count
=+
res
.
data
.
count
})
})
}
}
...
@@ -125,7 +131,7 @@ const addRule=()=>{
...
@@ -125,7 +131,7 @@ const addRule=()=>{
.control-bar{
.control-bar{
display: flex;
display: flex;
align-items: center;
align-items: center;
/deep/
.control-bar-item+.control-bar-item{
/deep/.control-bar-item+.control-bar-item{
margin-left: 10px;
margin-left: 10px;
}
}
}
}
...
...
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