| | |
| | | import { initData, download } from '@/api/data' |
| | | import { parseTime, downloadFile } from '@/utils/index' |
| | | import Vue from 'vue' |
| | | import store from '@/store/index' |
| | | |
| | | /** |
| | | * CRUD配置 |
| | |
| | | }, |
| | | created() { |
| | | for (const k in this.$crud) { |
| | | if (this.$crud[k].queryOnPresenterCreated) { |
| | | this.$crud[k].toQuery() |
| | | // if (this.$crud[k].queryOnPresenterCreated) { |
| | | // this.$crud[k].toQuery() |
| | | // } |
| | | |
| | | // 首页跳转到日志带参数就不加载,直接走带参查询 |
| | | if (store.state.taskId != undefined || store.state.projectId != undefined || store.state.planTime != undefined || store.state.taskName != undefined) { |
| | | console.log("store.state.planTime:" + store.state.planTime) |
| | | this.queryOnPresenterCreated = false |
| | | } else { |
| | | if (this.$crud[k].queryOnPresenterCreated) { |
| | | this.$crud[k].toQuery() |
| | | } |
| | | } |
| | | } |
| | | }, |