Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fk-spider-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
fk-spider-web
Commits
5739de1a
Commit
5739de1a
authored
Nov 22, 2025
by
liucan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:任务执行记录表格新增运行耗时列
parent
e18ca613
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
request.ts
src/utils/request.ts
+2
-2
index.vue
src/views/os-spiderManager/index.vue
+1
-1
taskCard.vue
src/views/os-taskInformation/components/taskCard.vue
+1
-2
index.vue
src/views/os-taskRecord/index.vue
+7
-1
No files found.
src/utils/request.ts
View file @
5739de1a
...
@@ -19,7 +19,6 @@ instance.interceptors.request.use(
...
@@ -19,7 +19,6 @@ instance.interceptors.request.use(
// 保持与原项目相同的Token头设置
// 保持与原项目相同的Token头设置
config
.
headers
[
"Token"
]
=
token
;
config
.
headers
[
"Token"
]
=
token
;
}
}
return
config
;
return
config
;
},
},
(
err
)
=>
{
(
err
)
=>
{
...
@@ -129,4 +128,4 @@ export interface UserQueryParams {
...
@@ -129,4 +128,4 @@ export interface UserQueryParams {
spacecraft
?:
string
;
spacecraft
?:
string
;
station
?:
string
;
station
?:
string
;
interval
?:
number
[];
interval
?:
number
[];
}
}
\ No newline at end of file
src/views/os-spiderManager/index.vue
View file @
5739de1a
...
@@ -324,7 +324,7 @@ const parseTextToNumbers = (text: string): number[] => {
...
@@ -324,7 +324,7 @@ const parseTextToNumbers = (text: string): number[] => {
const
lines
=
text
.
split
(
/
\r?\n
/
);
const
lines
=
text
.
split
(
/
\r?\n
/
);
//遍历处理
//遍历处理
const
numbers
=
lines
const
numbers
=
lines
.
map
((
line
,
index
)
=>
{
.
map
((
line
)
=>
{
//去除首尾空格
//去除首尾空格
const
trimmedLine
=
line
.
trim
();
const
trimmedLine
=
line
.
trim
();
if
(
trimmedLine
===
""
)
return
null
;
if
(
trimmedLine
===
""
)
return
null
;
...
...
src/views/os-taskInformation/components/taskCard.vue
View file @
5739de1a
...
@@ -43,10 +43,9 @@
...
@@ -43,10 +43,9 @@
>
删除
</el-button
>
删除
</el-button
>
>
</div>
</div>
s
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"item"
>
<div
class=
"item"
>
s
<span
class=
"wordStyle"
>
启用/停止:
</span>
<span
class=
"wordStyle"
>
启用/停止:
</span>
<el-switch
<el-switch
v-model=
"task.status"
v-model=
"task.status"
...
...
src/views/os-taskRecord/index.vue
View file @
5739de1a
...
@@ -57,6 +57,11 @@
...
@@ -57,6 +57,11 @@
{{
scope
.
row
.
run_status
===
"unknown"
?
"已结束"
:
scope
.
row
.
run_status
}}
{{
scope
.
row
.
run_status
===
"unknown"
?
"已结束"
:
scope
.
row
.
run_status
}}
</
template
>
</
template
>
</el-table-column>
</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-column
property=
"create_time"
label=
"采集时间"
width=
"200"
show-overflow-tooltip
/>
</el-table>
</el-table>
</div>
</div>
...
@@ -143,7 +148,6 @@ const searchData = async () => {
...
@@ -143,7 +148,6 @@ const searchData = async () => {
const
endTime
=
timeValue
.
value
[
1
];
const
endTime
=
timeValue
.
value
[
1
];
resTime
.
push
(
startTime
+
" 00:00:00"
);
resTime
.
push
(
startTime
+
" 00:00:00"
);
resTime
.
push
(
endTime
+
" 00:00:00"
);
resTime
.
push
(
endTime
+
" 00:00:00"
);
console
.
log
(
resTime
);
tableLoading
.
value
=
true
;
tableLoading
.
value
=
true
;
const
res
=
await
getSpiderTaskRecord
({
const
res
=
await
getSpiderTaskRecord
({
...
@@ -154,6 +158,8 @@ const searchData = async () => {
...
@@ -154,6 +158,8 @@ const searchData = async () => {
});
});
pageObj
.
value
.
total
=
res
.
data
.
total
;
pageObj
.
value
.
total
=
res
.
data
.
total
;
tableData
.
value
=
res
.
data
.
list
;
tableData
.
value
=
res
.
data
.
list
;
console
.
log
(
tableData
.
value
);
tableLoading
.
value
=
false
;
tableLoading
.
value
=
false
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment