diff --git a/src/views/dataService/multimediaData/component/boot.vue b/src/views/dataService/multimediaData/component/boot.vue index 0cbaac0..f82dc01 100644 --- a/src/views/dataService/multimediaData/component/boot.vue +++ b/src/views/dataService/multimediaData/component/boot.vue @@ -236,10 +236,11 @@ const openDialog = (row) => { state.isShowDialog = true; } const getDate = () => { - getList(1, 10, { disasterId: state.data.disasterId }).then(res => { + getList(1, 9999, { disasterId: state.data.disasterId }).then(res => { let data = res.records; for (let index = 0; index < data.length; index++) { const element = data[index]; + if (element.type == 2) { state.baidu = element; } @@ -310,12 +311,12 @@ const start = (text) => { if(text =='baidu' || text == 'bing'){ news(ret[0].disasterId, keywords, page, (text == "baidu"), ret[0].id).then(res => { ElMessage.success("Data is being acquired!") - getData(); + getDate(); }) }else if(text == 'twitter'){ twitter(ret[0].disasterId,keywords,state.twitter.date[0],state.twitter.date[1],ret[0].id).then(res=>{ ElMessage.success("Data is being acquired!") - getData(); + getDate(); }) } } diff --git a/src/views/dataService/remoteSensingData/components/searchCondition.vue b/src/views/dataService/remoteSensingData/components/searchCondition.vue index 75e178c..b81abb0 100644 --- a/src/views/dataService/remoteSensingData/components/searchCondition.vue +++ b/src/views/dataService/remoteSensingData/components/searchCondition.vue @@ -339,9 +339,16 @@ const startCrawl = () => { }) //调用爬虫服务 rs2(state.data.disasterId,arrParams,state.startTime,state.endTime).then(res => { + //获取arrParams中的type 使用,分割 + var typeArr=[]; + arrParams.forEach(item=>{ + typeArr.push(item.type) + }) + var typeStr=typeArr.join('、') + // getData(); ElMessage({ - message: 'Success, Start crawling. sentinel', + message: 'Successfully launched '+typeStr+' crawler', type: 'success', }) }) diff --git a/src/views/system/dic/dialog.vue b/src/views/system/dic/dialog.vue index 67497c6..829753f 100644 --- a/src/views/system/dic/dialog.vue +++ b/src/views/system/dic/dialog.vue @@ -25,14 +25,14 @@ - +