Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-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
youjj
cloud-platform-ui
Commits
2971677e
Commit
2971677e
authored
Nov 14, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发布时间筛选修复
parent
00e321f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
clapIndex.vue
src/views/discoveryModule/clapIndex.vue
+8
-3
shortVideo.vue
src/views/discoveryModule/shortVideo.vue
+8
-3
No files found.
src/views/discoveryModule/clapIndex.vue
View file @
2971677e
...
@@ -95,6 +95,11 @@
...
@@ -95,6 +95,11 @@
<span>
{{
scope
.
row
.
count
?
scope
.
row
.
count
.
comment
:
0
}}
</span>
<span>
{{
scope
.
row
.
count
?
scope
.
row
.
count
.
comment
:
0
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"发布时间"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
body
.
timeStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"100"
align=
"center"
label=
"来源"
>
<el-table-column
width=
"100"
align=
"center"
label=
"来源"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
source
==
1
?
'后台创建'
:
'app用户'
}}
</span>
<span>
{{
scope
.
row
.
source
==
1
?
'后台创建'
:
'app用户'
}}
</span>
...
@@ -664,17 +669,17 @@
...
@@ -664,17 +669,17 @@
params
.
praise
=
this
.
listQuery
.
praise
?
this
.
listQuery
.
praise
:
undefined
;
params
.
praise
=
this
.
listQuery
.
praise
?
this
.
listQuery
.
praise
:
undefined
;
if
(
this
.
listQuery
.
startTime
&&
(
typeof
this
.
listQuery
.
startTime
==
"object"
)){
if
(
this
.
listQuery
.
startTime
&&
(
typeof
this
.
listQuery
.
startTime
==
"object"
)){
params
.
startTime
=
this
.
listQuery
.
startTime
.
getTime
()
/
1000
;
params
.
startTime
=
this
.
listQuery
.
startTime
.
getTime
();
}
}
if
(
this
.
listQuery
.
endTime
&&
(
typeof
this
.
listQuery
.
endTime
==
"object"
)){
if
(
this
.
listQuery
.
endTime
&&
(
typeof
this
.
listQuery
.
endTime
==
"object"
)){
params
.
endTime
=
this
.
listQuery
.
endTime
.
getTime
()
/
1000
;
params
.
endTime
=
this
.
listQuery
.
endTime
.
getTime
();
}
}
page
(
params
).
then
(
response
=>
{
page
(
params
).
then
(
response
=>
{
let
totalCountRs
=
undefined
;
let
totalCountRs
=
undefined
;
let
listRs
=
undefined
;
let
listRs
=
undefined
;
if
(
!
this
.
$utils
.
isEmpty
(
response
.
data
.
list
)
&&
this
.
$utils
.
isInteger
(
response
.
data
.
total
))
{
if
(
!
this
.
$utils
.
isEmpty
(
response
.
data
.
list
)
&&
this
.
$utils
.
isInteger
(
response
.
data
.
total
))
{
response
.
data
.
list
.
map
(
function
(
item
){
response
.
data
.
list
.
map
(
function
(
item
){
item
.
body
.
timeStr
=
timestamp2Date
(
item
.
body
.
time
);
});
});
listRs
=
response
.
data
.
list
;
listRs
=
response
.
data
.
list
;
totalCountRs
=
response
.
data
.
total
;
totalCountRs
=
response
.
data
.
total
;
...
...
src/views/discoveryModule/shortVideo.vue
View file @
2971677e
...
@@ -95,6 +95,11 @@
...
@@ -95,6 +95,11 @@
<span>
{{
scope
.
row
.
count
?
scope
.
row
.
count
.
comment
:
0
}}
</span>
<span>
{{
scope
.
row
.
count
?
scope
.
row
.
count
.
comment
:
0
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"发布时间"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
body
.
timeStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"100"
align=
"center"
label=
"来源"
>
<el-table-column
width=
"100"
align=
"center"
label=
"来源"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
source
==
1
?
'后台创建'
:
'app用户'
}}
</span>
<span>
{{
scope
.
row
.
source
==
1
?
'后台创建'
:
'app用户'
}}
</span>
...
@@ -652,17 +657,17 @@
...
@@ -652,17 +657,17 @@
params
.
praise
=
this
.
listQuery
.
praise
?
this
.
listQuery
.
praise
:
undefined
;
params
.
praise
=
this
.
listQuery
.
praise
?
this
.
listQuery
.
praise
:
undefined
;
if
(
this
.
listQuery
.
startTime
&&
(
typeof
this
.
listQuery
.
startTime
==
"object"
)){
if
(
this
.
listQuery
.
startTime
&&
(
typeof
this
.
listQuery
.
startTime
==
"object"
)){
params
.
startTime
=
this
.
listQuery
.
startTime
.
getTime
()
/
1000
;
params
.
startTime
=
this
.
listQuery
.
startTime
.
getTime
();
}
}
if
(
this
.
listQuery
.
endTime
&&
(
typeof
this
.
listQuery
.
endTime
==
"object"
)){
if
(
this
.
listQuery
.
endTime
&&
(
typeof
this
.
listQuery
.
endTime
==
"object"
)){
params
.
endTime
=
this
.
listQuery
.
endTime
.
getTime
()
/
1000
;
params
.
endTime
=
this
.
listQuery
.
endTime
.
getTime
();
}
}
page
(
params
).
then
(
response
=>
{
page
(
params
).
then
(
response
=>
{
let
totalCountRs
=
undefined
;
let
totalCountRs
=
undefined
;
let
listRs
=
undefined
;
let
listRs
=
undefined
;
if
(
!
this
.
$utils
.
isEmpty
(
response
.
data
.
list
)
&&
this
.
$utils
.
isInteger
(
response
.
data
.
total
))
{
if
(
!
this
.
$utils
.
isEmpty
(
response
.
data
.
list
)
&&
this
.
$utils
.
isInteger
(
response
.
data
.
total
))
{
response
.
data
.
list
.
map
(
function
(
item
){
response
.
data
.
list
.
map
(
function
(
item
){
item
.
body
.
timeStr
=
timestamp2Date
(
item
.
body
.
time
);
});
});
listRs
=
response
.
data
.
list
;
listRs
=
response
.
data
.
list
;
totalCountRs
=
response
.
data
.
total
;
totalCountRs
=
response
.
data
.
total
;
...
...
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