Commit 396e842a authored by wuhao's avatar wuhao 🎯

asd

parent 10f429a5
Pipeline #6599 passed with stages
in 8 minutes and 55 seconds
...@@ -655,15 +655,10 @@ function Checkhomework() { ...@@ -655,15 +655,10 @@ function Checkhomework() {
[ [
{ {
title: "实验时长", title: "实验时长",
dataIndex: "useTime", dataIndex: "testTime",
key: "useTime", key: "testTime",
render: (text, record) => { render: (text, record) => {
function secondsToMinutesAndSeconds(seconds) { return record.testTime + '分';
var minutes = Math.floor(seconds / 60);
var remainingSeconds = seconds % 60;
return minutes + " 分 " + remainingSeconds + " 秒";
}
return secondsToMinutesAndSeconds(record?.useTime);
}, },
}, },
{ {
......
...@@ -615,15 +615,11 @@ function Dolessons() { ...@@ -615,15 +615,11 @@ function Dolessons() {
[ [
{ {
title: "实验时长", title: "实验时长",
dataIndex: "useTime", dataIndex: "testTime",
key: "useTime", key: "testTime",
render: (text, record) => { render: (text, record) => {
function secondsToMinutesAndSeconds(seconds) { return record.testTime + '分';
var minutes = Math.floor(seconds / 60);
var remainingSeconds = seconds % 60;
return minutes + " 分 " + remainingSeconds + " 秒";
}
return secondsToMinutesAndSeconds(record?.useTime);
}, },
}, },
{ {
......
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