|
@@ -104,18 +104,18 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
showMoreFilters (newVal) {
|
|
|
- if (newVal) {
|
|
|
- try {
|
|
|
- if (this.timerId) clearTimeout(this.timerId)
|
|
|
- this.timerId = setTimeout(() => {
|
|
|
+ try {
|
|
|
+ if (this.timerId) clearTimeout(this.timerId)
|
|
|
+ this.timerId = setTimeout(() => {
|
|
|
+ if (newVal) {
|
|
|
this.$refs.keySelector.computRow()
|
|
|
- if (this.resultShow) {
|
|
|
- this.$refs.result.calcStickyNav()
|
|
|
- }
|
|
|
- }, 200)
|
|
|
- } catch (error) {
|
|
|
- console.log(error)
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (this.resultShow) {
|
|
|
+ this.$refs.result.calcStickyNav()
|
|
|
+ }
|
|
|
+ }, 200)
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
}
|
|
|
},
|
|
|
bigKeywordsData () {
|
|
@@ -282,6 +282,7 @@ export default {
|
|
|
// 整理数据,并赋值给filters
|
|
|
loadedFilters (filters) {
|
|
|
this.showMoreFilters = false
|
|
|
+ this.$emit('refreshTab2')
|
|
|
// 当前页面分析过,则不恢复filters
|
|
|
if (this.analysisDone) return
|
|
|
if (filters.keys) {
|
|
@@ -291,10 +292,11 @@ export default {
|
|
|
if (filters.selectTime) {
|
|
|
this.filters.selectTime = filters.selectTime
|
|
|
}
|
|
|
- if (filters.selectTimeExtra) {
|
|
|
- this.filters.selectTimeExtra = filters.selectTimeExtra
|
|
|
- }
|
|
|
- this.restoreFilterTimes(filters.selectTime, filters.selectTimeExtra)
|
|
|
+ // if (filters.selectTimeExtra) {
|
|
|
+ // this.filters.selectTimeExtra = filters.selectTimeExtra
|
|
|
+ // }
|
|
|
+ // this.restoreFilterTimes(filters.selectTime, filters.selectTimeExtra)
|
|
|
+ this.restoreFilterTimes(filters.selectTime)
|
|
|
|
|
|
if (filters.area) {
|
|
|
this.filters.area = filters.area
|
|
@@ -331,6 +333,12 @@ export default {
|
|
|
end: selectTimeArr[1] * 1000,
|
|
|
exact: extra ? extra : 'exact'
|
|
|
}
|
|
|
+
|
|
|
+ if (!extra) {
|
|
|
+ const date = new Date(struct.end)
|
|
|
+ const timeString = date.pattern('yyyy/MM/dd')
|
|
|
+ struct.end = new Date(timeString).getTime()
|
|
|
+ }
|
|
|
this.$refs.timeSelector.setState(struct)
|
|
|
},
|
|
|
restoreFilterArea (area) {
|