|
@@ -166,38 +166,38 @@ export default {
|
|
|
created() {
|
|
|
this.getJSON()
|
|
|
this.$util.autoVueFn(
|
|
|
- [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.commentStatistics,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.hotWords,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.comprehensive,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.commentDistribution,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.getStatistics,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ time: 1000 * 60,
|
|
|
+ fn: this.getTrendAnalysis,
|
|
|
+ },
|
|
|
+ ],
|
|
|
{
|
|
|
- time: 1000 * 60,
|
|
|
- fn: this.commentStatistics,
|
|
|
- },
|
|
|
- {
|
|
|
- time: 1000 * 60,
|
|
|
- fn: this.hotWords,
|
|
|
- },
|
|
|
- {
|
|
|
- time: 1000 * 60,
|
|
|
- fn: this.comprehensive,
|
|
|
- },
|
|
|
- {
|
|
|
- time: 1000 * 60,
|
|
|
- fn: this.commentDistribution,
|
|
|
- },
|
|
|
- // {
|
|
|
- // time: 1000 * 60,
|
|
|
- // fn: this.getStatistics,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // time: 1000 * 60,
|
|
|
- // fn: this.getTrendAnalysis,
|
|
|
- // },
|
|
|
- ],
|
|
|
- {
|
|
|
- vm: this,
|
|
|
- batEnd() {
|
|
|
- this.autoVueFnInit = true
|
|
|
- },
|
|
|
- }
|
|
|
+ vm: this,
|
|
|
+ batEnd() {
|
|
|
+ this.autoVueFnInit = true
|
|
|
+ },
|
|
|
+ }
|
|
|
)
|
|
|
},
|
|
|
mounted() {
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.hotWordsList = [];
|
|
|
res.forEach(e => {
|
|
|
- this.hotWordsList.push({value:e.value, name:e.label})
|
|
|
+ this.hotWordsList.push({value: e.value, name: e.label})
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -259,8 +259,45 @@ export default {
|
|
|
commentDistribution() {
|
|
|
return this.$http
|
|
|
.get(`/api/screen/dspj/commentDistribution`)
|
|
|
+ .then((res) => {
|
|
|
+ this.statisticsData = res.list
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getStatistics() {
|
|
|
+ return this.$http
|
|
|
+ .get(`/api/screen/dspj/thisYearOnYear`)
|
|
|
+ .then((res) => {
|
|
|
+ const area = []
|
|
|
+ const dataArray = {
|
|
|
+ LastYear: [],
|
|
|
+ thisYear: [],
|
|
|
+ }
|
|
|
+ res.forEach((element) => {
|
|
|
+ area.push(element.label)
|
|
|
+ dataArray.thisYear.push(element.value)
|
|
|
+ })
|
|
|
+ this.trendarea = area
|
|
|
+ this.trendDataArray = dataArray
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getTrendAnalysis() {
|
|
|
+ return this.$http
|
|
|
+ .get(`/api/screen/dspj/trande`)
|
|
|
.then((res) => {
|
|
|
|
|
|
+ const area = []
|
|
|
+ const dataArray = {
|
|
|
+ LastYear: [],
|
|
|
+ thisYear: [],
|
|
|
+ }
|
|
|
+ res.forEach((element) => {
|
|
|
+ area.push(element.month)
|
|
|
+ dataArray.thisYear.push(element.thisYear)
|
|
|
+ dataArray.LastYear.push(element.lastYear)
|
|
|
+ })
|
|
|
+ console.log(dataArray,2222222222222222)
|
|
|
+ this.Weatherarea = area
|
|
|
+ this.WeatherdataArray = dataArray
|
|
|
})
|
|
|
},
|
|
|
async getJSON() {
|