|
@@ -489,30 +489,29 @@ export default {
|
|
|
this.chartLine.render()
|
|
|
},
|
|
|
toCalendar () {
|
|
|
- getCalendarNotice().then(res => {
|
|
|
- const router = this.$router
|
|
|
- if (res.data.calendar_date !== null) {
|
|
|
- // this.modalVisible = true
|
|
|
- this.$confirm({
|
|
|
- title: '提示',
|
|
|
- content: '七天内需要完成的任务!',
|
|
|
- okText: '去查看',
|
|
|
- icon: 'info-circle',
|
|
|
- onOk () {
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- router.push({ path: '/repaire/calendar' })
|
|
|
- resolve()
|
|
|
- }).catch(err => {
|
|
|
- this.$message.error({
|
|
|
- title: '错误',
|
|
|
- description: err.message
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- onCancel () {}
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ // getCalendarNotice().then(res => {
|
|
|
+ // const router = this.$router
|
|
|
+ // if (res.data.calendar_date !== null) {
|
|
|
+ // this.$confirm({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '七天内需要完成的任务!',
|
|
|
+ // okText: '去查看',
|
|
|
+ // icon: 'info-circle',
|
|
|
+ // onOk () {
|
|
|
+ // return new Promise((resolve, reject) => {
|
|
|
+ // router.push({ path: '/repaire/calendar' })
|
|
|
+ // resolve()
|
|
|
+ // }).catch(err => {
|
|
|
+ // this.$message.error({
|
|
|
+ // title: '错误',
|
|
|
+ // description: err.message
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ // onCancel () {}
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
/* getLineCharts (id, data) {
|
|
|
this.chartLine = new Chart({
|