| | |
| | | </div> |
| | | |
| | | <div class="table-box" v-show="!showMJL"> |
| | | <el-table size="small" :height="tableHeight" :data="schedulingList" style="width: 100%" |
| | | <el-table size="small" :height="tableHeight" :data="schedulingList" style="width: 100%;" |
| | | :header-cell-style="{ 'text-align': 'center' }" |
| | | :cell-style="{ 'text-align': 'center', borderColor: '#324e75' }" :row-class-name="tableRowClassName" |
| | | empty-text="暂无值班信息" v-loading="schedulingLoading" element-loading-text="拼命加载中" |
| | |
| | | </div> |
| | | |
| | | <div class="table-box" v-show="showMJL"> |
| | | <el-table size="small" :height="tableHeight" :data="schedulingList" style="width: 100%" |
| | | <el-table size="small" :height="tableHeight" :data="schedulingList" style="width: 100%" empty-text=" " |
| | | :show-header="false" :header-cell-style="{ 'text-align': 'center' }" |
| | | :cell-style="{ 'text-align': 'center', borderColor: '#324e75' }" :row-class-name="tableRowClassName" |
| | | v-loading="schedulingLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" |
| | |
| | | this.$refs.caseBox.offsetHeight - |
| | | this.$refs.crowdBox.offsetHeight - |
| | | this.$refs.alertBoxTitle.offsetHeight - |
| | | 86 |
| | | 55 |
| | | }) |
| | | }, |
| | | |
| | |
| | | const data = [ |
| | | { |
| | | person: |
| | | "徐星逸、任圣日、娄永攀、蔡善龙、陈小强、梅祥、吕镇、刘开勇、付建冬", |
| | | "徐星逸,任圣日,娄永攀,蔡善龙,陈小强,刘开勇,梅祥,吕镇,付建冬", |
| | | patrol: "章正椿,夏文翔,叶江明,黄俊龙,苏茯林,王顺祥", |
| | | }, |
| | | { |
| | | person: |
| | | "矢裕忠、戴饶平、余传公、杨敏、苏浩男、周安云、蒋丁岩、陈圣俊、雷智荐", |
| | | "矢裕忠,戴饶平,余传公,杨敏,苏浩男,周安云,蒋丁岩,陈圣俊,雷智荐", |
| | | patrol: "潘林彬,刘志祥,李志强,杨俊浩,黄天行,叶子淳", |
| | | }, |
| | | { |
| | |
| | | } |
| | | return arr |
| | | }) |
| | | |
| | | this.schedulingList = matrixData[0].map((col, i) => { |
| | | setTimeout(() => { |
| | | this.schedulingList = matrixData[0].map((col, i) => { |
| | | return [this.originTitle[i], ...matrixData.map((row) => { |
| | | return row[i] |
| | | })] |
| | | }) |
| | | |
| | | this.schedulingLoading = false |
| | | }, 1000) |
| | | |
| | | this.$nextTick(() => { |
| | | this.tableHeight = |
| | | this.$refs.Container.offsetHeight - |
| | |
| | | this.schedulingList = res.data.data.records |
| | | }) |
| | | } |
| | | setTimeout(() => { |
| | | this.schedulingLoading = false |
| | | }, 1000) |
| | | // setTimeout(() => { |
| | | // this.schedulingLoading = false |
| | | // }, 1000) |
| | | }, |
| | | |
| | | echartsResize () { |
| | |
| | | } |
| | | |
| | | :deep(.el-table .cell) { |
| | | white-space: pre-line; |
| | | // white-space: pre-line; |
| | | white-space: pre-wrap; |
| | | height: 100% !important; |
| | | line-height:3.4vh !important; |
| | | } |
| | | |
| | | :deep(.el-table .el-table__body-wrapper) { |
| | | height: 100% !important; |
| | | } |
| | | } |
| | | |