1.时间不会被清除 2.现在爬虫启动完成后会提示 xxx爬虫启动,是否返回列表页面
This commit is contained in:
parent
923d4ea2ab
commit
50e43936b3
|
@ -313,8 +313,8 @@ const clearCoordinate = () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state.coordinateList = [];
|
state.coordinateList = [];
|
||||||
state.startTime = '';
|
// state.startTime = '';
|
||||||
state.endTime = '';
|
// state.endTime = '';
|
||||||
state.addCoord = false
|
state.addCoord = false
|
||||||
map.value.mapOperations.deleteRectangle()
|
map.value.mapOperations.deleteRectangle()
|
||||||
map.value.mapOperations.off("click", onMapClick)
|
map.value.mapOperations.off("click", onMapClick)
|
||||||
|
@ -323,7 +323,6 @@ const clearCoordinate = () => {
|
||||||
// 编辑坐标点
|
// 编辑坐标点
|
||||||
const editCoordinate = () => {
|
const editCoordinate = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 开始爬虫
|
// 开始爬虫
|
||||||
const startCrawl = () => {
|
const startCrawl = () => {
|
||||||
if (!state.startTime) {
|
if (!state.startTime) {
|
||||||
|
@ -386,10 +385,16 @@ const startCrawl = () => {
|
||||||
var typeStr=typeArr.join('、')
|
var typeStr=typeArr.join('、')
|
||||||
|
|
||||||
// getData();
|
// getData();
|
||||||
ElMessage({
|
//使用英语询问是否停留在当前页,还是返回到列表页
|
||||||
message: 'Successfully launched '+typeStr+' crawler',
|
ElMessageBox.confirm('The '+typeStr+' data has been crawled, do you want to stay on this page?', 'Prompt', {
|
||||||
type: 'success',
|
confirmButtonText: 'Stay',
|
||||||
})
|
cancelButtonText: 'Return to the list',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
}).catch(() => {
|
||||||
|
emit('response')
|
||||||
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue