| | |
| | | import { ElTable } from 'element-plus'; |
| | | import { FormInstance, FormRules, ElMessage } from 'element-plus'; |
| | | import { inspectRecordApi } from '/@/api/intellectInspectSystem/inspectRecord'; |
| | | import { inspectIndexApi } from '/@/api/intellectInspectSystem/inspectIndex' |
| | | import { useRouter } from 'vue-router'; |
| | | import * as echarts from 'echarts' |
| | | import inspectRecordDialog from './components/inspectRecordDialog.vue'; |
| | |
| | | // 页面载入时执行方法 |
| | | onMounted(() => { |
| | | getInspectRecord(); |
| | | getListExcepOrder(); |
| | | getDayData(); |
| | | getDepartmentData(); |
| | | initXjLine() |
| | |
| | | myChart.resize(); |
| | | }); |
| | | } |
| | | // 分页获取工作时段列表 |
| | | // 分页获取 |
| | | const getInspectRecord = async () => { |
| | | const data = { pageSize: state.pageSize, pageIndex: state.pageIndex }; |
| | | let res = await inspectRecordApi().getInspectRecordByIndex(data); |
| | | if (res.data.code === '200') { |
| | | state.tableData = res.data.data.records; |
| | | state.totalSize = res.data.data.total; |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }; |
| | | // 分页获取 |
| | | const getListExcepOrder = async () => { |
| | | const data = { pageSize: state.pageSize, pageIndex: state.pageIndex }; |
| | | let res = await inspectIndexApi().getListExcepOrderByPage(data); |
| | | if (res.data.code === '200') { |
| | | console.log(res.data,'res') |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | line-height: 34px; |
| | | top: 0; |
| | | right: 20px; |
| | | z-index: 99999; |
| | | } |
| | | .topChart{ |
| | | .chart-item{ |