Commit 164fdf1d by crushh

Merge branch 'feature/ai营销二期' of http://git.gicdev.com/marketing-web/marketing into feature/ai营销二期

parents 9d23498a 7bc34fbf
......@@ -174,7 +174,8 @@ export default {
label: '平均通话时长',
value: '',
key: 'averageCallDuration',
type: 'time'
type: 'number',
unit: 'S'
}
],
[
......@@ -207,9 +208,13 @@ export default {
case 'time':
item.value = '--';
if (typeof value == 'number') {
const h = Math.floor(value / 3600);
const m = Math.floor((value % 3600) / 60);
const s = value % 60;
const h = Math.floor(value / 3600)
.toString()
.padStart(2, '0');
const m = Math.floor((value % 3600) / 60)
.toString()
.padStart(2, '0');
const s = (value % 60).toString().padStart(2, '0');
item.value = `${h}:${m}:${s}`;
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment