diff --git a/.env.development b/.env.development
index 22ef690e..74be489f 100644
--- a/.env.development
+++ b/.env.development
@@ -14,7 +14,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
# app入口
-VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
+#VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001'
# VITE_APP_BASE_API_Url = 'http://25.16.122.91:9786'
# VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786'
diff --git a/src/pages/courseRecord/components/practiceRecordItem.vue b/src/pages/courseRecord/components/practiceRecordItem.vue
index 94d44492..eb7ecc94 100644
--- a/src/pages/courseRecord/components/practiceRecordItem.vue
+++ b/src/pages/courseRecord/components/practiceRecordItem.vue
@@ -40,7 +40,7 @@
- 练习时长:{{ formatDuration(item_list.exrStartTm, item_list.exrEndTm) }}
+ 练习时长:{{ item_list.item_list || '--' }}
@@ -61,7 +61,7 @@
import { computed, ref, reactive } from 'vue';
import common from '@/common/common';
import { queryPracticeHis } from '@/api/courseRecord.js';
- import { useItemList, formatDuration } from '../useItemList.js';
+ import { useItemList } from '../useItemList.js';
const props = defineProps({
item: {
diff --git a/src/pages/courseRecord/components/studyRecordItem.vue b/src/pages/courseRecord/components/studyRecordItem.vue
index 7941a248..61bae4c6 100644
--- a/src/pages/courseRecord/components/studyRecordItem.vue
+++ b/src/pages/courseRecord/components/studyRecordItem.vue
@@ -40,7 +40,7 @@
- 学习时长:{{ formatDuration(item_list.startTm, item_list.endTm) }}
+ 学习时长:{{ item_list.item_list || '--' }}
@@ -61,7 +61,7 @@
import { computed } from 'vue';
import common from '@/common/common';
import { queryStdyBatchByCrsId } from '@/api/courseRecord.js';
- import { useItemList, formatDuration, secondsToHours } from '../useItemList.js';
+ import { useItemList, secondsToHours } from '../useItemList.js';
const props = defineProps({
item: {
type: Object,
diff --git a/src/pages/courseRecord/useItemList.js b/src/pages/courseRecord/useItemList.js
index 2ff3c9b1..dca33100 100644
--- a/src/pages/courseRecord/useItemList.js
+++ b/src/pages/courseRecord/useItemList.js
@@ -7,25 +7,25 @@ import {
// 计算两个标准时间的时间差值
-export const formatDuration = (startTm, endTm) => {
- if (endTm === null || startTm === null) return "00:00:00";
- // 解析时间字符串为时间戳(毫秒)
- const startTime = new Date(startTm).getTime();
- const endTime = new Date(endTm).getTime();
-
- // 计算时间差(秒),确保为正数
- const seconds = Math.abs(Math.floor((endTime - startTime) / 1000));
- // 计算时、分、秒
- const hours = Math.floor(seconds / 3600);
- const minutes = Math.floor((seconds % 3600) / 60);
- const remainingSeconds = seconds % 60;
-
- // 补零格式化函数(统一处理所有单位)
- const formatNumber = (num) => num.toString().padStart(2, '0');
-
- // 小时、分钟、秒均保持两位数格式
- return `${formatNumber(hours)}:${formatNumber(minutes)}:${formatNumber(remainingSeconds)}`;
-};
+// export const formatDuration = (startTm, endTm) => {
+// if (endTm === null || startTm === null) return "00:00:00";
+// // 解析时间字符串为时间戳(毫秒)
+// const startTime = new Date(startTm).getTime();
+// const endTime = new Date(endTm).getTime();
+//
+// // 计算时间差(秒),确保为正数
+// const seconds = Math.abs(Math.floor((endTime - startTime) / 1000));
+// // 计算时、分、秒
+// const hours = Math.floor(seconds / 3600);
+// const minutes = Math.floor((seconds % 3600) / 60);
+// const remainingSeconds = seconds % 60;
+//
+// // 补零格式化函数(统一处理所有单位)
+// const formatNumber = (num) => num.toString().padStart(2, '0');
+//
+// // 小时、分钟、秒均保持两位数格式
+// return `${formatNumber(hours)}:${formatNumber(minutes)}:${formatNumber(remainingSeconds)}`;
+// };
// 秒数转换成小时,带小数点的小时
export const secondsToHours = (seconds) => {