Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6055498c
authored
Jun 27, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'
修复bug See merge request
!512
2 parents
baf74daf
b793724d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
23 deletions
src/views/sop/sopAnalysis/resultList.vue
src/views/sop/sopAnalysis/touchList.vue
src/views/sop/sopAnalysis/resultList.vue
View file @
6055498
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<div
class=
"sort-box"
v-for=
"(item,index) in sortList"
:key=
"index"
>
<div
class=
"sort-box"
v-for=
"(item,index) in sortList"
:key=
"index"
>
<div>
{{
item
.
title
}}
</div>
<div
class=
"sort-title"
>
{{
item
.
title
}}
</div>
<div
class=
"sort"
>
{{
rates
[
item
.
sort
]
?
rates
[
item
.
sort
]
:
0
}}
%
</div>
<div
class=
"sort"
>
{{
rates
[
item
.
sort
]
?
rates
[
item
.
sort
]
:
0
}}
%
</div>
</div>
</div>
</div>
</div>
...
@@ -175,6 +175,9 @@ export default {
...
@@ -175,6 +175,9 @@ export default {
//
position
:
relative
;
//
position
:
relative
;
.sort-box
{
.sort-box
{
margin
:
38px
0
;
margin
:
38px
0
;
.sort-title{
margin-left
:
12px
;
}
}
}
.sort-box
:nth-last-child
(
2
)
{
.sort-box
:nth-last-child
(
2
)
{
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
6055498
...
@@ -170,31 +170,35 @@ export default {
...
@@ -170,31 +170,35 @@ export default {
label
:
'查看总时长'
,
label
:
'查看总时长'
,
prop
:
'viewDuration'
,
prop
:
'viewDuration'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
let
secondTime
=
parseInt
(
cellValue
.
viewDuration
);
// 秒
if
(
!
cellValue
.
viewDuration
)
{
let
minuteTime
=
0
;
// 分
return
'--'
let
hourTime
=
0
;
// 小时
}
else
{
if
(
secondTime
>
60
)
{
//如果秒数大于60,将秒数转换成整数
let
secondTime
=
parseInt
(
cellValue
.
viewDuration
);
// 秒
//获取分钟,除以60取整数,得到整数分钟
let
minuteTime
=
0
;
// 分
minuteTime
=
parseInt
(
secondTime
/
60
);
let
hourTime
=
0
;
// 小时
//获取秒数,秒数取佘,得到整数秒数
if
(
secondTime
>
60
)
{
//如果秒数大于60,将秒数转换成整数
secondTime
=
parseInt
(
secondTime
%
60
);
//获取分钟,除以60取整数,得到整数分钟
//如果分钟大于60,将分钟转换成小时
minuteTime
=
parseInt
(
secondTime
/
60
);
if
(
minuteTime
>
60
)
{
//获取秒数,秒数取佘,得到整数秒数
//获取小时,获取分钟除以60,得到整数小时
secondTime
=
parseInt
(
secondTime
%
60
);
hourTime
=
parseInt
(
minuteTime
/
60
);
//如果分钟大于60,将分钟转换成小时
//获取小时后取佘的分,获取分钟除以60取佘的分
if
(
minuteTime
>
60
)
{
minuteTime
=
parseInt
(
minuteTime
%
60
);
//获取小时,获取分钟除以60,得到整数小时
hourTime
=
parseInt
(
minuteTime
/
60
);
//获取小时后取佘的分,获取分钟除以60取佘的分
minuteTime
=
parseInt
(
minuteTime
%
60
);
}
}
}
}
let
result
=
""
+
parseInt
(
secondTime
)
+
"s"
;
let
result
=
""
+
parseInt
(
secondTime
)
+
"s"
;
if
(
minuteTime
>
0
)
{
if
(
minuteTime
>
0
)
{
result
=
""
+
parseInt
(
minuteTime
)
+
"min"
+
result
;
result
=
""
+
parseInt
(
minuteTime
)
+
"min"
+
result
;
}
}
if
(
hourTime
>
0
)
{
if
(
hourTime
>
0
)
{
result
=
""
+
parseInt
(
hourTime
)
+
"h"
+
result
;
result
=
""
+
parseInt
(
hourTime
)
+
"h"
+
result
;
}
return
result
}
}
return
result
}
}
},
},
],
],
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment