| | |
| | | <a-col :md="24" :sm="24" :xs="24" |
| | | style="display: flex;justify-content: space-between;align-items: flex-start"> |
| | | <div> |
| | | <a-space style="margin-right: 20px"> |
| | | <a-space style="margin-right: 20px;margin-bottom: 20px"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload">重置</a-button> |
| | | <a-button type="primary" @click="exportExcel" icon="download">导出</a-button> |
| | |
| | | <template v-for="(tableHead, index) in tableHeads"> |
| | | <th v-if="checkedList.indexOf('lyl') > -1">利用率(%)</th> |
| | | <th v-if="checkedList.indexOf('kjl') > -1">开机率(%)</th> |
| | | <th v-if="checkedList.indexOf('gzl') > -1">故障率(%)</th> |
| | | <th v-if="checkedList.indexOf('kjsj') > -1">开机时间(小时)</th> |
| | | <th v-if="checkedList.indexOf('jgsj') > -1">加工时间(小时)</th> |
| | | <th v-if="checkedList.indexOf('qcgz') > -1">加工时间(小时)(去除故障时间)</th> |
| | | <th v-if="checkedList.indexOf('djsj') > -1">待机时间(小时)</th> |
| | | <th v-if="checkedList.indexOf('gjsj') > -1">关机时间(小时)</th> |
| | | <th v-if="checkedList.indexOf('gzsj') > -1">故障时间(小时)</th> |
| | | </template> |
| | | |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | |
| | | </template> |
| | | |
| | | <template v-for="(tableHead, index) in item.dataList"> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('lyl') > -1"> |
| | | <td :style="{background:tableHead.color,minWidth:'100px',width:'100px'}" |
| | | v-if="checkedList.indexOf('lyl') > -1"> |
| | | {{tableHead.utilizationRate | numFilter}} |
| | | </td> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjl') > -1"> |
| | | <td :style="{background:tableHead.color,minWidth:'100px',width:'100px' }" |
| | | v-if="checkedList.indexOf('kjl') > -1"> |
| | | {{tableHead.openRate | numFilter}} |
| | | </td> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('kjsj') > -1"> |
| | | <td :style="{background:tableHead.color ,minWidth:'100px',width:'100px'}" |
| | | v-if="checkedList.indexOf('gzl') > -1"> |
| | | {{tableHead.faultRate }} |
| | | </td> |
| | | <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }" |
| | | v-if="checkedList.indexOf('kjsj') > -1"> |
| | | {{tableHead.openLong | getFormattedTime}} |
| | | </td> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('jgsj') > -1"> |
| | | <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }" |
| | | v-if="checkedList.indexOf('jgsj') > -1"> |
| | | {{tableHead.processLong | getFormattedTime}} |
| | | </td> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('djsj') > -1"> |
| | | <td :style="{background:tableHead.color,minWidth:'220px',width:'220px' }" |
| | | v-if="checkedList.indexOf('qcgz') > -1"> |
| | | {{tableHead.removeFaultRunLong | getFormattedTime}} |
| | | </td> |
| | | <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }" |
| | | v-if="checkedList.indexOf('djsj') > -1"> |
| | | {{tableHead.waitLong | getFormattedTime}} |
| | | </td> |
| | | <td :style="{background:tableHead.color }" v-if="checkedList.indexOf('gjsj') > -1"> |
| | | <td :style="{background:tableHead.color,minWidth:'110px',width:'110px' }" |
| | | v-if="checkedList.indexOf('gjsj') > -1"> |
| | | {{tableHead.closeLong | getFormattedTime}} |
| | | </td> |
| | | <td :style="{background:tableHead.color,minWidth:'110px' ,width:'110px'}" |
| | | v-if="checkedList.indexOf('gzsj') > -1"> |
| | | {{tableHead.faultLong | getFormattedTime}} |
| | | </td> |
| | | </template> |
| | | |
| | |
| | | |
| | | </tbody> |
| | | </table> |
| | | |
| | | </div> |
| | | </div> |
| | | </a-spin> |
| | |
| | | typeTree: '', |
| | | typeParent: 1, |
| | | typeEquipment: 1, |
| | | TreeIDOne: 1, |
| | | TreeIDTwo: 2, |
| | | deviceTypeDict: '', |
| | | dates: [], |
| | | equipmentTypeList: [], |
| | |
| | | efficiencyOptions: [ |
| | | { label: '利用率', value: 'lyl' }, |
| | | { label: '开机率', value: 'kjl' }, |
| | | { label: '故障率', value: 'gzl' }, |
| | | { label: '开机时间', value: 'kjsj' }, |
| | | { label: '加工时间', value: 'jgsj' }, |
| | | { label: '加工时间(去除故障时间)', value: 'qcgz' }, |
| | | { label: '待机时间', value: 'djsj' }, |
| | | { label: '关机时间', value: 'gjsj' } |
| | | { label: '关机时间', value: 'gjsj' }, |
| | | { label: '故障时间', value: 'gzsj' } |
| | | ], |
| | | checkedList: ['lyl'], |
| | | dataList: [], |
| | |
| | | }, |
| | | tableHeads: [], |
| | | distinguishColorList: [], |
| | | utilizationRateRowAverage: '', |
| | | openRateRowAverage: '', |
| | | openLongRowAverage: '', |
| | | processLongRowAverage: '', |
| | | waitLongRowAverage: '', |
| | | closeLongRowAverage: '', |
| | | spinning: false |
| | | } |
| | | }, |
| | |
| | | |
| | | .dataContent { |
| | | white-space: nowrap; |
| | | /*margin: 0;*/ |
| | | /*border: none;*/ |
| | | border-collapse: separate; |
| | | border-spacing: 0; |
| | | /*table-layout: fixed;*/ |
| | | border: 1px solid #ccc; |
| | | /*border: 1px solid #ccc;*/ |
| | | width: 100%; |
| | | /*height: 100%;*/ |
| | | /*overflow: hidden;*/ |
| | | /*overflow-y: auto;*/ |
| | | text-align: center; |
| | | } |
| | | |