| | |
| | | |
| | | this.$axios.get("/api/scheme/all") |
| | | .then(data_ => { |
| | | console.log(data_); |
| | | if (data_.data.success) { |
| | | var datas = data_.data.data; |
| | | this.tableData = datas; |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | // console.log(error); |
| | | }); |
| | | this.$axios.get("/api/scheme/typesCnt") |
| | | .then(data_ => { |
| | | console.log(data_); |
| | | // console.log(data_); |
| | | if (data_.data.success) { |
| | | var datas = data_.data.data; |
| | | |
| | |
| | | this.initChart(datas.typeCnt); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | // console.log(error); |
| | | }); |
| | | this.date_ = this.$moment(new Date).format('YYYY年MM月DD日'); |
| | | this.$axios.get("/api/detail/dayTask") |
| | | .then(data_ => { |
| | | console.log(data_); |
| | | // console.log(data_); |
| | | if (data_.data.success) { |
| | | var datas = data_.data.data; |
| | | datas.map(el => { |
| | |
| | | this.overview1 = datas; |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | // console.log(error); |
| | | }) |
| | | // this.overview1 = [ |
| | | // {name: "我的任务", count: 15, warning: "已逾期11"}, |
| | |
| | | }, |
| | | |
| | | see_click() { |
| | | this.$router.push('/list'); |
| | | this.$router.push('/list').catch(err => {err}); |
| | | }, |
| | | |
| | | setActiveTableData(currentRow, oldCurrentRow) { |
| | | this.activeTableData = currentRow; |
| | | this.$axios.get("/api/scheme/daywork/" + currentRow.id) |
| | | .then(data_ => { |
| | | console.log(data_); |
| | | // console.log(data_); |
| | | if (data_.data.success) { |
| | | var datas = data_.data.data; |
| | | this.card3Count = datas; |
| | |
| | | |
| | | } |
| | | }).catch(error => { |
| | | console.log(error); |
| | | // console.log(error); |
| | | }) |
| | | }, |
| | | initChart(val) { |