Commit 5739de1a by liucan

feat:任务执行记录表格新增运行耗时列

parent e18ca613
......@@ -19,7 +19,6 @@ instance.interceptors.request.use(
// 保持与原项目相同的Token头设置
config.headers["Token"] = token;
}
return config;
},
(err) => {
......@@ -129,4 +128,4 @@ export interface UserQueryParams {
spacecraft?: string;
station?: string;
interval?: number[];
}
}
\ No newline at end of file
......@@ -324,7 +324,7 @@ const parseTextToNumbers = (text: string): number[] => {
const lines = text.split(/\r?\n/);
//遍历处理
const numbers = lines
.map((line, index) => {
.map((line) => {
//去除首尾空格
const trimmedLine = line.trim();
if (trimmedLine === "") return null;
......
......@@ -43,10 +43,9 @@
>删除</el-button
>
</div>
s
<div class="info">
<div class="item">
s
<span class="wordStyle">启用/停止: </span>
<el-switch
v-model="task.status"
......
......@@ -57,6 +57,11 @@
{{ scope.row.run_status === "unknown" ? "已结束" : scope.row.run_status }}
</template>
</el-table-column>
<el-table-column label="运行耗时/ms">
<template #default="scope">
{{ scope.row.duration == 0 ? "-" : scope.row.duration }}
</template>
</el-table-column>
<el-table-column property="create_time" label="采集时间" width="200" show-overflow-tooltip />
</el-table>
</div>
......@@ -143,7 +148,6 @@ const searchData = async () => {
const endTime = timeValue.value[1];
resTime.push(startTime + " 00:00:00");
resTime.push(endTime + " 00:00:00");
console.log(resTime);
tableLoading.value = true;
const res = await getSpiderTaskRecord({
......@@ -154,6 +158,8 @@ const searchData = async () => {
});
pageObj.value.total = res.data.total;
tableData.value = res.data.list;
console.log(tableData.value);
tableLoading.value = false;
};
......
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