Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 51887078
authored
Apr 11, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 数据重跑功能
1 parent
fc468a13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
27 deletions
src/views/DataRerun/DataRerun.vue
src/views/DataRerun/DataRerunApi.js
src/views/DataRerun/DataRerun.vue
View file @
5188707
...
...
@@ -310,36 +310,11 @@ export default {
// 新需求:数据重跑
const
initializeWebSocket2
=
function
(
scheduleType
)
{
if
(
webSocketMap
[
scheduleType
]
!==
undefined
)
{
webSocketMap
[
scheduleType
].
close
()
}
// const targetUrl = `${window._socketUrl}/recal/schedule/${scheduleType}`
const
targetUrl
=
''
webSocketMap
[
scheduleType
]
=
new
WebSocket
(
targetUrl
)
webSocketMap
[
scheduleType
].
onopen
=
()
=>
{
// 查询条件
queryData
(
scheduleType
)
}
webSocketMap
[
scheduleType
].
onmessage
=
function
(
event
)
{
let
message
=
JSON
.
parse
(
event
.
data
)
dealMessage
(
message
)
if
(
message
.
stepCount
===
1
)
{
webSocketMap
[
scheduleType
].
close
()
}
}
}
const
confirmSearch2
=
function
()
{
resultList
.
value
=
[]
informationList
.
value
=
[]
for
(
const
scheduleType
of
queryForm
.
scheduleTypeList
)
{
initializeWebSocket2
(
scheduleType
)
for
(
const
scheduleType
of
queryForm
.
scheduleTypeList
)
{
// 请求接口
}
}
...
...
src/views/DataRerun/DataRerunApi.js
View file @
5188707
...
...
@@ -22,6 +22,16 @@ class DataRerunApi {
}
)
}
//
getResult2
(
data
,
type
)
{
return
axiosInstance
.
request
(
{
method
:
'POST'
,
url
:
`
${
map
[
type
]}
`
,
data
:
data
}
)
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment