| | |
| | | <div class="main_home"> |
| | | <!-- <div style="position: fixed;z-index: 99999"><video style="height: 100px;width: 500px" src="rtsp://10.50.250.253:554/openUrl/K2y2vE4" controls></video></div> --> |
| | | <div class="home_header"> |
| | | <div class="mb10 fs17">下午好,{{ userInfo.realname }}</div> |
| | | <div class="mb10 fs17">{{timeInfo}}好,{{ userInfo.realname }}</div> |
| | | <div class="fs13"> |
| | | 今天是 {{ nowDate }} {{ nowWeek }},欢迎访问智慧物流园区安消一体化系统 |
| | | </div> |
| | |
| | | nowDate: '', |
| | | nowWeek: '', |
| | | headerData: {}, |
| | | timeInfo:'上午', |
| | | staticData: {}, |
| | | manningRatio: [], |
| | | taskList: [], |
| | |
| | | { name: '访客报备', path: '', url: require('@/assets/icons/home_func1.png'), path: '/business/reportRecord' }, |
| | | { name: '隐患随手拍', path: '', url: require('@/assets/icons/home_func2.png'), path: '/operation/danger/record' }, |
| | | { name: '预约会议室', path: '', url: require('@/assets/icons/home_func3.png'), path: '/meeting/bookings' }, |
| | | { name: '公务车预约', path: '', url: require('@/assets/icons/home_func5.png'), path: '/operation/serviceCar/apprRecord' }, |
| | | { name: '考勤工作台', path: '', url: require('@/assets/icons/home_func4.png') }, |
| | | { name: '食堂消费', path: '', url: require('@/assets/icons/8.png') } |
| | | ], |
| | |
| | | this.$router.push(item.path) |
| | | }, |
| | | updateDate () { |
| | | this.timeInfo = new Date().getHours()<12?'上午':'下午' |
| | | this.nowDate = dayjs().format('YYYY年M月D日') |
| | | this.nowWeek = weeks[new Date().getDay()] |
| | | }, |
| | |
| | | }, |
| | | getWorkBody () { |
| | | getWorkbenchData({ queryType: 2 }).then(res => { |
| | | console.log(res) |
| | | this.staticData = res || {} |
| | | this.initEchart2() |
| | | this.initEchart21() |
| | |
| | | if (!document.getElementById('echart2')) { |
| | | return |
| | | } |
| | | echarts.dispose(document.getElementById('echart2')) |
| | | const myChart = echarts.init(document.getElementById('echart2')) |
| | | const that = this |
| | | var ydata = that.staticData.internalList.map(i => i.num) |
| | |
| | | }) |
| | | }, |
| | | initEchart21 () { |
| | | console.log('initEchart21') |
| | | console.log('initEchart21',this.staticData.lwList) |
| | | if (!document.getElementById('echart21')) { |
| | | return |
| | | } |
| | | |
| | | echarts.dispose(document.getElementById('echart21')) |
| | | const myChart = echarts.init(document.getElementById('echart21')) |
| | | const that = this |
| | | var le1 = that.staticData.internalList.length |