value
2023-09-07 523d7a54fb07fdf756fbc4faa5eb7fef7263a556
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<template>
  <div class="content-main">
    <div class="top-bar">
      <el-form style="margin-top: 10px;" ref="form" :inline="true" :model="searchData">
        <el-form-item label="设备编号:" style="margin-right: 50px;">
          <el-input size="small" v-model="searchData.code" placeholder="请输入设备编号">
          </el-input>
        </el-form-item>
        <el-form-item label="设备名称:" style="margin-right: 20px;">
          <el-input size="small" v-model="searchData.name" placeholder="请输入设备名称">
          </el-input>
        </el-form-item>
        <el-form-item>
          <el-button size="small" type="primary" @click="searchInspections">查询</el-button>
            <el-button size="small" type="primary" plain @click="reset">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="library-table">
      <el-card v-for="(item,index) in device" :key="index" class="box-card" style="width: 22.8%;">
        <div class="header">
          <div style="display: flex;justify-content: start; width: 100%;">
            <div class="el-icon-set-up" style="font-size: 25px;color: rgb(103, 194, 58);line-height: 55px ;"></div>
            <div class="device_code">{{ item.code }}</div>
          </div>
          <div v-show="item.status === 0" class="status">
            <el-tag type="success">运行</el-tag>
          </div>
          <div v-show="item.status === 1" class="status">
            <el-tag type="danger">故障</el-tag>
          </div>
        </div>
        <div class="content">
          <div>
            <span style="color: rgb(136, 135, 135);">设备名称: </span>
            <span>{{ item.name }}</span>
          </div>
          <div>
            <span style="color: rgb(136, 135, 135);">鉴定有效期: </span>
            <span>{{ item.valid }}</span>
          </div>
        </div>
        <el-divider></el-divider>
        <div class="footer">
          <el-button type="text" icon="el-icon-document">项目详情</el-button>
          <el-divider direction="vertical" style="width: 200px;"></el-divider>
          <el-button type="text" icon="el-icon-pie-chart">项目采集</el-button>
        </div>
        
      </el-card>
    </div>
  </div>
</template>
 
<script>
export default {
  data(){
    return {
      searchData:{
        code: '',
        name: ''
      },
      device:[
        {
          code: 'NF-220907',
          status: 0,
          name: '拉力机U60',
          valid: '2022-11-09 ~ 2023.11.10'
        },
        {
          code: 'NF-220907',
          status: 0,
          name: '拉力机U60',
          valid: '2022-11-09 ~ 2023.11.10'
        }
      ]
    }
  },
    methods:{
        searchInspections(){
            
        },
        reset(){
            
        }
    }
}
</script>
 
<style lang="scss" scoped>
.content-main{
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
    .top-bar{
      margin: -25px -15px;
      background: #fff;
      display: flex;
      justify-content: space-between;
      padding: 5px 24px 0px 24px;
      .rightBtn{
        display: flex;
        justify-content: space-between;
      }
    }
    .library-table{
      background-color: #fff;
      flex: 1;
      margin: 0px -15px;
      margin-top: 40px;
      display: flex;
      // flex-direction: space-evenly;
      flex-wrap: wrap;
      .el-card{
        height: 300px;
        margin-left: 30px;
        margin-top: 20px;
        .header{
          display: flex;
          justify-content: space-between;
          height: 60px;
          line-height: 60px;
          .device_code{
            font-size: 24px;
            font-weight: bold;
            margin-left: 20px;
          }
        }
        .content{
          font-size: 16px;
          margin-top: 10px;
          >div{
            padding: 10px 0px;
          }
        }
        .footer{
          .el-button{
            width: 45%;
            font-size: 18px;
            color: black;
            // background-color: #bfa;
          }
        }
      }
    }
}
</style>