| | |
| | | </div> |
| | | </div> |
| | | <div class="chart"> |
| | | <el-table :data="tableData" stripe border :header-cell-style="isFull==true?{background: none}:{ background: '#fafafa' }"> |
| | | <el-table :data="tableData" stripe border :header-cell-style="{ background: '#fafafa' }"> |
| | | <el-table-column label="任务信息" align="center"> |
| | | <template #default="scope"> |
| | | <div class="left-info"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="chart"> |
| | | <el-table :data="unusualData" stripe border :header-cell-style="isFull==true?{background: none}:{ background: '#fafafa' }"> |
| | | <el-table :data="unusualData" stripe border :header-cell-style="{ background: '#fafafa' }"> |
| | | <el-table-column prop="num" label="工单编号" align="center"/> |
| | | <el-table-column prop="spot" label="异常巡检点" align="center"/> |
| | | <el-table-column prop="time" label="巡检(发现)时间" align="center"/> |
| | |
| | | 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'; |
| | |
| | | groupName: string; |
| | | } |
| | | export default { |
| | | name: 'workingHours', |
| | | name: 'inspectIndex', |
| | | components: { inspectRecordDialog, inspectList, unusualList }, |
| | | setup() { |
| | | const router = useRouter(); |
| | |
| | | // 页面载入时执行方法 |
| | | onMounted(() => { |
| | | getInspectRecord(); |
| | | getListExcepOrder(); |
| | | getDayData(); |
| | | getDepartmentData(); |
| | | initXjLine() |
| | | initSbtj() |
| | | }); |
| | | const toFullscreen =()=>{ |
| | | console.log(state.isFull,'quanp',state.themeColor) |
| | | const element = document.getElementById('bigScreen') |
| | | if (!screenfull.isEnabled) { |
| | | ElMessage.warning('暂不不支持全屏'); |
| | | return false; |
| | | } |
| | | screenfull.toggle(element); |
| | | state.isFull = !state.isFull |
| | | if(state.isFull == true){ |
| | | state.themeColor = '#11FEEE' |
| | |
| | | } |
| | | initXjLine() |
| | | initSbtj() |
| | | console.log(state.isFull,'quanp',state.themeColor) |
| | | const element = document.getElementById('bigScreen') |
| | | if (!screenfull.isEnabled) { |
| | | ElMessage.warning('暂不不支持全屏'); |
| | | return false; |
| | | } |
| | | screenfull.toggle(element); |
| | | } |
| | | const checkAllRecord =()=>{ |
| | | inspectListRef.value.departmentList = state.departmentList |
| | |
| | | myChart.resize(); |
| | | }); |
| | | } |
| | | // 分页获取工作时段列表 |
| | | // 分页获取 |
| | | const getInspectRecord = async () => { |
| | | const data = { pageSize: state.pageSize, pageIndex: state.pageIndex }; |
| | | let res = await inspectRecordApi().getInspectRecordByIndex(data); |
| | |
| | | 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', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }; |
| | | //获取部门 |
| | | const getDepartmentData = async () => { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | line-height: 34px; |
| | | top: 0; |
| | | right: 20px; |
| | | z-index: 99999; |
| | | } |
| | | .topChart{ |
| | | .chart-item{ |
| | |
| | | background-color: rgba(10,31,92,1); |
| | | border: 1px solid rgba(17,254,238,.4); |
| | | color: #11FEEE; |
| | | .el-cascader-node{ |
| | | .in-active-path{ |
| | | background: #0049af; |
| | | } |
| | | &:hover{ |
| | | background: #0049af; |
| | | } |
| | | } |
| | | .el-cascader-node__label{ |
| | | color: #11FEEE; |
| | | } |
| | |
| | | .tit{ |
| | | color: #11FEEE; |
| | | } |
| | | .checkAll{ |
| | | cursor: pointer; |
| | | color: #11feee; |
| | | &:hover{ |
| | | color: #409eff |
| | | } |
| | | } |
| | | .el-table { |
| | | color: #11FEEE !important; |
| | | background-color: rgba(0,0,0,0) !important; |
| | | :deep(thead){ |
| | | color: #11FEEE !important; |
| | | background-color: #092846 !important |
| | | } |
| | | :deep(tr){ |
| | | background-color: rgba(0,0,0,0) !important; |
| | |
| | | background-color: rgba(10,31,92,1); |
| | | border: 1px solid rgba(17,254,238,.4); |
| | | color: #11FEEE; |
| | | .el-cascader-node{ |
| | | .in-active-path{ |
| | | background: #0049af; |
| | | } |
| | | &:hover{ |
| | | background: #0049af; |
| | | } |
| | | } |
| | | .el-cascader-node__label{ |
| | | color: #11FEEE; |
| | | } |