提交 731fcd29 作者: 施汉文

修改时间展示

上级 0e8febea
...@@ -72,10 +72,15 @@ ...@@ -72,10 +72,15 @@
{{ value.cser_name }} {{ value.cser_name }}
</div> </div>
</div> </div>
<div class="flex space-x-[16px] text-[#323335]"> <div
class="flex space-x-[16px] text-[#323335]"
v-if="value.source_session.allot_time"
>
<div class="w-[56px] text-[#86909C]">来源会话</div> <div class="w-[56px] text-[#86909C]">来源会话</div>
<div class="flex-1 flex items-center text-[14px] break-words"> <div class="flex-1 flex items-center text-[14px] break-words">
2025-12-22 14:21:12至2025-12-22 15:21:12 {{ value.source_session.allot_time }}{{
value.source_session.close_time
}}
</div> </div>
</div> </div>
<div class="flex space-x-[16px] text-[#323335]"> <div class="flex space-x-[16px] text-[#323335]">
...@@ -103,12 +108,17 @@ ...@@ -103,12 +108,17 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex space-x-[16px] text-[#323335]"> <div
class="flex space-x-[16px] text-[#323335]"
v-if="value.complete_session.allot_time"
>
<div class="w-[56px] text-[#86909C]">完成会话</div> <div class="w-[56px] text-[#86909C]">完成会话</div>
<div <div
class="flex-1 flex items-center text-[14px] break-words flex-wrap gap-[6px]" class="flex-1 flex items-center text-[14px] break-words flex-wrap gap-[6px]"
> >
2025-12-22 14:21:12至2025-12-22 15:21:12 {{ value.complete_session.allot_time }}{{
value.complete_session.close_time
}}
</div> </div>
</div> </div>
</div> </div>
...@@ -174,7 +184,7 @@ export default { ...@@ -174,7 +184,7 @@ export default {
JSON.stringify({ JSON.stringify({
related_task_id: v.related_task_id, related_task_id: v.related_task_id,
related_task_type: v.related_task_type, related_task_type: v.related_task_type,
}) }),
); );
// 跳转到申请记录 // 跳转到申请记录
this.$router.push({ this.$router.push({
...@@ -221,10 +231,10 @@ export default { ...@@ -221,10 +231,10 @@ export default {
// 计算一行文字的高度(假设行高为1.5倍字体大小) // 计算一行文字的高度(假设行高为1.5倍字体大小)
const lineHeight = parseInt( const lineHeight = parseInt(
window.getComputedStyle(tempEl).lineHeight window.getComputedStyle(tempEl).lineHeight,
); );
const fontHeight = parseInt( const fontHeight = parseInt(
window.getComputedStyle(tempEl).fontSize window.getComputedStyle(tempEl).fontSize,
); );
const expectedLineHeight = lineHeight || fontHeight * 1.5; const expectedLineHeight = lineHeight || fontHeight * 1.5;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论