|
@@ -0,0 +1,185 @@
|
|
|
+<!-- 核心设备报表 -->
|
|
|
+<template>
|
|
|
+ <div class="core-device-report">
|
|
|
+ <div class="main-left">
|
|
|
+ <Select
|
|
|
+ class="system-select"
|
|
|
+ width="217"
|
|
|
+ :isReadOnly="true"
|
|
|
+ tipPlace="top"
|
|
|
+ caption="系统名称:"
|
|
|
+ @change="testClick"
|
|
|
+ v-model="systemName"
|
|
|
+ :selectdata="systemList"
|
|
|
+ :placeholder="'请选择'"
|
|
|
+ />
|
|
|
+ <div class="system-content">
|
|
|
+ <div v-for="(item) in systemContentData" :key="'key_' + item.id" class="item-content" :class="{'active': item.isActive}">
|
|
|
+ <div class="first-row">
|
|
|
+ <div>{{item.name}}</div>
|
|
|
+ <div>{{item.isMaintenance?'维保中' : ''}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="sec-row">
|
|
|
+ <div>{{item.num}}<span>台</span></div>
|
|
|
+ <div :class="{'abnormal': item.abnormal}">{{item.status}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="main-right">
|
|
|
+ <div class="search-container">
|
|
|
+ <Input iconType="search" v-model="searchKey" placeholder="搜索" width="192"/>
|
|
|
+ </div>
|
|
|
+ <el-table :data="tableData" style="width: 100%;margin-bottom: 63px;">
|
|
|
+ <el-table-column prop="serialNumber" label="序号"></el-table-column>
|
|
|
+ <el-table-column prop="equipmentName" label="设备简称"></el-table-column>
|
|
|
+ <el-table-column prop="equipmentNumber" label="设备编号"></el-table-column>
|
|
|
+ <el-table-column prop="status" label="状态"></el-table-column>
|
|
|
+ <el-table-column prop="photo" label="照片"></el-table-column>
|
|
|
+ <el-table-column prop="report" label="报告"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div class="page">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :total="tatol">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { Select, Input } from 'meri-design';
|
|
|
+export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ systemName: '', // 系统名称
|
|
|
+ systemList: [], // 系统
|
|
|
+ systemContentData: [
|
|
|
+ {id: 1, name: '高压配电柜', isMaintenance: true, num: 95, status: '正常', abnormal: false, isActive: true},
|
|
|
+ {id: 2, name: '变压器', isMaintenance: false, num: 256, status: '异常: 323', abnormal: true, isActive: false},
|
|
|
+ {id: 3, name: '低压配电柜', isMaintenance: false, num: 354, status: '正常', abnormal: false, isActive: false},
|
|
|
+ {id: 4, name: '直流屏', isMaintenance: false, num: 175, status: '正常', abnormal: false, isActive: false},
|
|
|
+ {id: 5, name: '柴油发电机组', isMaintenance: false, num: 186, status: '正常', abnormal: false, isActive: false},
|
|
|
+ ], // 系统下的各种组成
|
|
|
+ searchKey: '', // 搜索关键字
|
|
|
+ tableData: [
|
|
|
+ {serialNumber: 1, equipmentName: 2, equipmentNumber: 3, status: 4, photo: 5, report: 6},
|
|
|
+ {serialNumber: 1, equipmentName: 2, equipmentNumber: 3, status: 4, photo: 5, report: 6},
|
|
|
+ {serialNumber: 1, equipmentName: 2, equipmentNumber: 3, status: 4, photo: 5, report: 6},
|
|
|
+ ], // 表数据
|
|
|
+ tatol: 100, // 总数据
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ components: {
|
|
|
+ Select,
|
|
|
+ Input
|
|
|
+ },
|
|
|
+
|
|
|
+ computed: {},
|
|
|
+
|
|
|
+ mounted() {},
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ testClick() {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang='less' scoped>
|
|
|
+.core-device-report{
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ .main-left{
|
|
|
+ padding-left: 16px;
|
|
|
+ padding-right: 14px;
|
|
|
+ padding-top: 12px;
|
|
|
+ padding-bottom: 12px;
|
|
|
+ width: 247px;
|
|
|
+ border-top: 1px solid #E4E6E7;
|
|
|
+ border-right: 1px solid #E4E6E7;
|
|
|
+ .system-select{
|
|
|
+ margin-bottom: 16px;
|
|
|
+ }
|
|
|
+ .item-content{
|
|
|
+ padding-left: 12px;
|
|
|
+ padding-right: 21px;
|
|
|
+ padding-top: 7px;
|
|
|
+ padding-bottom: 8px;
|
|
|
+ >div{
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .first-row{
|
|
|
+ margin-bottom: 6px;
|
|
|
+ >div:first-child{
|
|
|
+ font-size: 14px;
|
|
|
+ color: #1F2429;
|
|
|
+ line-height: 19px;
|
|
|
+ }
|
|
|
+ >div:nth-of-type(2){
|
|
|
+ margin-left: 8px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #CD981D;
|
|
|
+ line-height: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .sec-row{
|
|
|
+ margin-bottom: 6px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ >div:first-child{
|
|
|
+ font-size: 14px;
|
|
|
+ color: #1F2429;
|
|
|
+ line-height: 19px;
|
|
|
+ >span{
|
|
|
+ font-size: 12px;
|
|
|
+ color: #646C73;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ >div:nth-of-type(2){
|
|
|
+ padding-left: 8px;
|
|
|
+ padding-right: 8px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #0065B3;
|
|
|
+ line-height: 22px;
|
|
|
+ background: #E1F2FF;
|
|
|
+ }
|
|
|
+ .abnormal{
|
|
|
+ background: #FDE3E2!important;
|
|
|
+ color: #AC2F28!important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .system-content{
|
|
|
+ .active{
|
|
|
+ background: #E5EEF5;
|
|
|
+ border-radius: 2px;
|
|
|
+ .first-row>div:first-child,
|
|
|
+ .sec-row>div{
|
|
|
+ color: #025BAA;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .main-right{
|
|
|
+ flex: 1;
|
|
|
+ background: #fff;
|
|
|
+ padding-left: 15px;
|
|
|
+ padding-right: 13px;
|
|
|
+ padding-top: 13px;
|
|
|
+ padding-bottom: 25px;
|
|
|
+ .search-container{
|
|
|
+ margin-bottom: 12px;
|
|
|
+ }
|
|
|
+ .page{
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|