1.时间不会被清除 2.现在爬虫启动完成后会提示 xxx爬虫启动,是否返回列表页面

This commit is contained in:
yyhouc 2023-06-09 17:19:56 +08:00
parent 923d4ea2ab
commit 50e43936b3
1 changed files with 12 additions and 7 deletions

View File

@ -313,8 +313,8 @@ const clearCoordinate = () => {
return;
}
state.coordinateList = [];
state.startTime = '';
state.endTime = '';
// state.startTime = '';
// state.endTime = '';
state.addCoord = false
map.value.mapOperations.deleteRectangle()
map.value.mapOperations.off("click", onMapClick)
@ -323,7 +323,6 @@ const clearCoordinate = () => {
//
const editCoordinate = () => {
}
//
const startCrawl = () => {
if (!state.startTime) {
@ -386,10 +385,16 @@ const startCrawl = () => {
var typeStr=typeArr.join('、')
// getData();
ElMessage({
message: 'Successfully launched '+typeStr+' crawler',
type: 'success',
})
//使
ElMessageBox.confirm('The '+typeStr+' data has been crawled, do you want to stay on this page?', 'Prompt', {
confirmButtonText: 'Stay',
cancelButtonText: 'Return to the list',
type: 'warning'
}).then(() => {
}).catch(() => {
emit('response')
});
})
})
}