Commit 51887078 by Tianqing Liu

feat: 数据重跑功能

1 parent fc468a13
...@@ -310,36 +310,11 @@ export default { ...@@ -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() { const confirmSearch2 = function() {
resultList.value = [] resultList.value = []
informationList.value = [] informationList.value = []
for (const scheduleType of queryForm.scheduleTypeList) for (const scheduleType of queryForm.scheduleTypeList) {
{ // 请求接口
initializeWebSocket2(scheduleType)
} }
} }
......
...@@ -22,6 +22,16 @@ class DataRerunApi { ...@@ -22,6 +22,16 @@ class DataRerunApi {
} }
) )
} }
//
getResult2(data, type) {
return axiosInstance.request(
{
method: 'POST',
url: `${map[type]}`,
data: data
}
)
}
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!