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; 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')
});
}) })
}) })
} }