独墅湖高教创新区危化品智慧管控平台(新危化品)
马宇豪
2025-04-21 05cccb157fa461c1ce17cbeb9b00ed5396491ca8
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="charts-container">
    <div class="filter">
      <el-input
          v-model="queryParams.code"
          placeholder="请输入流向码"
          clearable
      />
          <div class="search-btn">
            查询
          </div>
    </div>
    <div class="table-wrapper">
    <table class="data-table">
      <thead>
      <tr>
        <th>企业名称</th>
        <th>流向类型</th>
        <th>取/还人员</th>
        <th>时间</th>
      </tr>
      </thead>
      <tbody>
      <tr v-for="(item, index) in dataList" :key="index">
        <td>{{ item.company }}</td>
        <td>{{ item.flowType }}</td>
        <td>{{ item.person }}</td>
        <td>{{ item.time }}</td>
      </tr>
      </tbody>
    </table>
    </div>
  </div>
</template>
<script setup>
import {onMounted, reactive} from "vue";
 
onMounted(()=>{
  getList()
})
 
const queryParams = reactive({
  code: ''
})
const dataList = [
  { company: '化工企业A', flowType: '出库', person: '张三', time: '2023-05-10 09:30' },
  { company: '化工企业B', flowType: '入库', person: '李四', time: '2023-05-10 10:15' },
  { company: '化工企业C', flowType: '出库', person: '王五', time: '2023-05-10 11:20' },
  { company: '化工企业D', flowType: '入库', person: '赵六', time: '2023-05-10 13:45' },
  { company: '化工企业E', flowType: '出库', person: '钱七', time: '2023-05-10 14:30' },
  { company: '化工企业F', flowType: '入库', person: '孙八', time: '2023-05-10 15:10' },
  { company: '化工企业G', flowType: '出库', person: '周九', time: '2023-05-10 16:20' },
  { company: '化工企业H', flowType: '入库', person: '吴十', time: '2023-05-10 17:05' },
  { company: '化工企业I', flowType: '出库', person: '郑十一', time: '2023-05-11 08:30' }
]
const getList = ()=>{
 
}
const reset=()=>{
 
}
const search=()=>{
 
}
</script>
 
<style lang="postcss" scoped>
.charts-container{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .filter{
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    .el-input{
      flex: 3;
      border: 1px solid blue !important;
      border-color: blue !important;
    }
    :deep(.el-input__wrapper){
      background-color: rgba(0,0,0,0);
      border-color: blue !important;
    }
    .search-btn{
      flex: 1;
      margin-left: 10px;
      height: 30px;
      text-align: center;
      font-size: 12px;
      line-height: 30px;
      background: #015fb0;
      border-radius: 2px;
      cursor: pointer;
      color: #fff
    }
  }
  .table-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
    overflow-y: auto; /* 垂直滚动 */
    border: 1px solid rgba(0,0,0,.5);
  }
 
  .data-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
 
  .data-table th,
  .data-table td {
    padding: 10px;
    font-size: 12px;
    color: #fff;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
 
  .data-table th {
    position: sticky;
    top: 0;
    background-color: rgb(6,38,87); /* 无背景色 */
    font-weight: normal;
    color: #fff;
  }
 
  /* 精简滚动条样式 */
  .table-wrapper::-webkit-scrollbar {
    width: 0;
  }
 
  .table-wrapper::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 3px;
  }
 
  .table-wrapper::-webkit-scrollbar-track {
    background-color: #f1f1f1;
  }
 
}
</style>