|
@@ -69,6 +69,9 @@
|
|
|
<template #exitTime-column-value="{ scope }">
|
|
|
{{scope.row.exitTime ? $util.YMDHms(scope.row.exitTime) : scope.row.exitTime}}
|
|
|
</template>
|
|
|
+ <template #duration-column-value="{ scope }">
|
|
|
+ {{scope.row.duration ? formatDuration(scope.row.duration) : scope.row.duration}}
|
|
|
+ </template>
|
|
|
</CusTable>
|
|
|
</template>
|
|
|
</CusContent>
|
|
@@ -223,6 +226,23 @@ export default defineComponent({
|
|
|
ElMessage.error('导出失败!')
|
|
|
})
|
|
|
}
|
|
|
+ const formatDuration = (second) => {
|
|
|
+ const f = that.$util.comTime(second * 1000)
|
|
|
+ let str = ''
|
|
|
+ if (f.d) {
|
|
|
+ str += f.d + '天'
|
|
|
+ }
|
|
|
+ if (f.h) {
|
|
|
+ str += f.h + '时'
|
|
|
+ }
|
|
|
+ if (f.m) {
|
|
|
+ str += f.m + '分'
|
|
|
+ }
|
|
|
+ if (f.s) {
|
|
|
+ str += f.s + '秒'
|
|
|
+ }
|
|
|
+ return str
|
|
|
+ }
|
|
|
onMounted(() => {
|
|
|
state.back_queryForm = JSON.parse(JSON.stringify(state.queryForm))
|
|
|
initDictionary()
|
|
@@ -237,6 +257,7 @@ export default defineComponent({
|
|
|
onSearch,
|
|
|
onExport,
|
|
|
refreshSearch,
|
|
|
+ formatDuration
|
|
|
}
|
|
|
},
|
|
|
})
|