1.时间不会被清除 2.现在爬虫启动完成后会提示 xxx爬虫启动,是否返回列表页面
This commit is contained in:
parent
923d4ea2ab
commit
50e43936b3
|
@ -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')
|
||||
});
|
||||
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue