| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <TaskDetail v-if="isShowDetail" ref="DetailRef" @success="SubSuccess('isShowDetail')" /> |
| | | <VisReportDetail v-if="isShowReport" ref="VisReportDetailRef" @success="SubSuccess('isShowReport')" /> |
| | | <DangetDetail v-if="isShowDanger" ref="DangetDetailRef" @success="SubSuccess('isShowDanger')" /> |
| | | <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" @success="SubSuccess('isShowDriver')" /> |
| | | <!-- 用车申请 --> |
| | | <OperaCarUseBookWindow ref="OperaDetailsWindow" @success="getTaskList" /> |
| | | <!-- 隐患 --> |
| | | <OperaHiddenDangerWindow ref="OperaHiddenDangerWindow" @success="getTaskList" /> |
| | | <!-- 预约详情 --> |
| | | <OperaVisitsDesWindow ref="OperaVisitsDesWindow" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | getAppHeaderNav |
| | | } from '@/api' |
| | | import { level } from '@/api/business/visits' |
| | | import TaskDetail from '@/views/task/visSubDetail.vue' |
| | | import VisReportDetail from '@/views/task/visReportDetail.vue' |
| | | import DangetDetail from '@/views/task/dangetDetail.vue' |
| | | import DriverDetail from '@/views/task/driverDetail.vue' |
| | | import OperaCarUseBookWindow from '@/components/business/OperaCarUseBookWindow' |
| | | import OperaHiddenDangerWindow from '@/components/business/OperaHiddenDangerWindow' |
| | | import OperaVisitsDesWindow from '@/components/business/OperaVisitsDesWindow' |
| | | const colors = ['#52a4f7', '#7678f7', '#5fc6d5'] |
| | | export default { |
| | | components: { |
| | | TaskDetail, |
| | | VisReportDetail, |
| | | DangetDetail, |
| | | DriverDetail, |
| | | OperaCarUseBookWindow, |
| | | OperaHiddenDangerWindow, |
| | | OperaVisitsDesWindow |
| | | }, |
| | | data() { |
| | | return { |
| | | colors, |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.updateDate() |
| | | setInterval(() => { |
| | | this.updateDate() |
| | | }, 1000 * 60 * 60) |
| | | // this.updateDate() |
| | | // setInterval(() => { |
| | | // this.updateDate() |
| | | // }, 1000 * 60 * 60) |
| | | }, |
| | | mounted() { |
| | | this.initData() |
| | | // this.initData() |
| | | }, |
| | | methods: { |
| | | SubSuccess(str) { |