diff --git a/src/views/ebiz/institutionalPerform/UnderOffice.vue b/src/views/ebiz/institutionalPerform/UnderOffice.vue index 78c0dee94..2dc19607e 100644 --- a/src/views/ebiz/institutionalPerform/UnderOffice.vue +++ b/src/views/ebiz/institutionalPerform/UnderOffice.vue @@ -132,9 +132,9 @@ export default { data() { return { showText: true, - YearColumns: ['2020', '2019'], + YearColumns: [], minDate: new Date(2019, 0, 1), - maxDate: new Date(2020, 10, 1), + maxDate: new Date(), currentMonthDate: new Date(), currentYearDate: new Date(), currentDate: new Date(), @@ -271,7 +271,6 @@ export default { // 日 this.dateType = 'd' this.dateVal = this.dateFormat(this.currentDate) - console.log(this.dateVal) // 左侧时间实时赋值 this.timeVal = this.dateVal } else if (this.curTab == 2) { @@ -336,7 +335,6 @@ export default { branchOfficeApi(data) .then(res => { if (res.result == 0) { - console.log(res.content.list) $this.tableData = res.content.list $this.ysjsTotal = 0 @@ -356,7 +354,6 @@ export default { $this.cbbfTotal = Number($this.cbbfTotal) + Number(val.cbbf) $this.bzbfTotal = Number($this.bzbfTotal) + Number(val.bzbf) }) - console.log($this.tableData) } }) .catch(err => {}) @@ -379,6 +376,10 @@ export default { mounted() { // this.timeVal=this.$route.query.timeVal||"" // this.showText=this.$route.query.showText + let currentYear = new Date().getFullYear() + for (let year = 2019; year <= currentYear; year++) { + this.YearColumns.unshift(year) + } this.getCurrentDate() setInterval(this.getCurrentDate, 1000 * 60)