2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<template>
  <div class="table1">
    <div class="header">
      <span class="title1">应急预案查询</span>
    </div>
 
    <el-table :data="tableData" size="mini" style="width: 90%;background: #182a45;margin-top: 16px;" :height="'160px'">
      <el-table-column prop="name" header-align="center" width="70" align="center" label="预案名称">
      </el-table-column>
      <el-table-column prop="type" header-align="center" align="center" label="预案类型">
      </el-table-column>
      <el-table-column prop="level" header-align="center" align="center" label="预案等级">
        <template slot-scope="scope">
          <span :style="{ color: scope.row.level == '一级预案' ? 'red' : '' }">{{ scope.row.level }}</span>
        </template>
      </el-table-column>
      <el-table-column header-align="center" align="center" label="预案查询">
        <template slot-scope="scope">
          <el-button type="text" size="small">查看</el-button>
        </template>
      </el-table-column>
    </el-table>
    <div style="width: 100%;height: 36px ;margin: 6px 0px; text-align: center">
      <el-pagination :total="30" layout="total, prev, pager, next, jumper" :page-sizes="[5]">
      </el-pagination>
    </div>
  </div>
</template>
 
<script>
 
export default {
  name: "table1",
  components: {
 
  },
  data() {
    return {
      tableTreeDdataTotal: 0,
      tableData: [
        {
          name: '预案1',
          type: '化学品事故',
          level: '二级预案',
        },
        {
          name: '预案2',
          type: '水上交通事故',
          level: '二级预案',
        },
        {
          name: '预案3',
          type: '政府预案',
          level: '一级预案',
        },
        {
          name: '预案4',
          type: '建筑业事故',
          level: '二级预案',
        },
 
        {
          name: '预案5',
          type: '企业预案',
          level: '一级预案',
        },
        {
          name: '预案6',
          type: '交通事故',
          level: '一级预案',
        },
      ]
    }
  },
 
 
}
</script>
 
<style scoped lang="less">
.table1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: all;
 
  .header {
    width: 304px;
    height: 27.5px;
    margin-left: 20px;
    margin-top: 20px;
    background-image: url("~@/assets/img/menuTitle1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-family: PangMenZhengDao;
    text-shadow: 0px 6px 9px #20618e;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
 
    .title1 {
      margin-left: 30px;
      font-size: 15px;
      color: #ffffff;
    }
 
  }
}
 
.el-table /deep/ tr {
  background-color: transparent;
  color: #dedfe1;
}
 
.el-table /deep/ tr th {
  background-color: rgba(240, 250, 254, 0.1);
  color: rgba(240, 250, 254, 0.85);
}
 
.el-table /deep/ tr:hover>td {
  background-color: rgba(0, 166, 226, 0.4) !important;
}
 
.el-pagination /deep/ .btn-prev,
.el-pagination /deep/ .btn-next,
.el-pagination /deep/ .el-input__inner,
.el-pagination /deep/ .el-pager li {
  background-color: rgba(0, 166, 226, 0.02);
  border-radius: 2px 2px 2px 2px;
  border: 1px solid rgba(240, 250, 254, 0.3);
  color: #dedfe1 !important;
}
 
.el-pagination /deep/ .el-pagination__jump {
  color: #dedfe1;
}
/deep/.el-pagination__total{
  color: #dedfe1;
}
 
/deep/ .el-input__inner {
  background-color: transparent;
  background-image: none;
  border-radius: 0px;
  border: 1px solid #5c6d96;
  color: #ffffff;
}
 
/deep/.el-input-group__append {
  background: transparent;
  border: 1px solid #5c6d96;
  color: #ffffff;
}
 
/deep/.el-table--mini .el-table__cell {
  padding: 0px 0;
}
 
/deep/.el-table th.el-table__cell>.cell {
  padding: 6px 10px;
}
 
/deep/.el-table .cell {
  color: #aec2de;
}
</style>