石广澎
2023-10-20 4cb068fb1d51129be7199cbd83fb0ef1f97915e2
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
<template>
  <el-table v-loading="loading" :data="tableData" height="100%" :stripe="true" class="the-table">
    <el-table-column prop="projectName" label="项目名称" width="200"> </el-table-column>
    <el-table-column prop="time1" label="批复时间" width="80" align="center"> </el-table-column>
    <el-table-column prop="unit" label="建设单位"> </el-table-column>
    <el-table-column prop="time2" label="项目开工" width="95" align="center"> </el-table-column>
    <el-table-column prop="time3" label="初步验收" width="95" align="center"> </el-table-column>
    <el-table-column prop="time4" label="竣工验收" width="95" align="center"> </el-table-column>
    <el-table-column prop="time5" label="决算批复" width="95" align="center"> </el-table-column>
    <el-table-column prop="time6" label="预计完工" width="95" align="center"> </el-table-column>
    <el-table-column prop="unit" label="进度现状" align="center" width="95"></el-table-column>
  </el-table>
</template>
 
<script>
import dataVRequest from '@/api/dataV.js';
 
export default {
  data() {
    return {
      loading: true,
      tableData: [
        {
          projectName: '洛阳邮件处理中心工程',
          time1: '2022',
          unit: '郑州',
          time2: '2021.08.30',
          time3: '2021.08.30',
          time4: '2021.08.30',
          time5: '2021.08.30',
          time6: '2021.08.30',
        },
      ],
    };
  },
  created() {
    dataVRequest.queryProjectList().then(res=> {
      console.log('aaa',res);
      this.loading = false;
    })
  }
};
</script>
 
<style lang="scss" scoped>
.the-table {
  width: 100%;
  height: 100%;
  background-color: #091959;
  font-size: 14px;
  border: 2px solid #0C5EB5;
 
  ::v-deep {
    tr {
      background-color: #091959;
    }
    th {
      border: 0;
      color: #66a6ff;
      background: linear-gradient(360deg, #293b89 0%, rgba(13, 25, 79, 0) 50%);
    }
    tr.hover-row > td.el-table__cell {
      background-color: #091959;
    }
    .el-table__body tr.el-table__row--striped td.el-table__cell {
      background: linear-gradient(360deg, #293b89 0%, rgba(13, 25, 79, 0) 50%);
    }
    th.el-table__cell.is-leaf,
    .el-table td.el-table__cell {
      border: 0;
    }
 
    td {
      border: 0;
      color: #E6F8FF;
      padding: 5px 0;
    }
    .el-table__fixed-right-patch {
      width: 10px;
      background: linear-gradient(360deg, #293b89 0%, rgba(13, 25, 79, 0) 50%) #091959;
    }
    .el-table__body-wrapper::-webkit-scrollbar {
      background-color: #091959;
      width: 10px;
    }
 
    .el-table__fixed-right {
      right: 9px !important;
    }
 
    .el-table__body-wrapper::-webkit-scrollbar-thumb {
      background-color: #08519e; // 滑块颜色
      border-radius: 100px; // 滑块圆角
    }
    .el-table__fixed::before,
    .el-table__fixed-right::before {
      display: none;
    }
    .el-table__body-wrapper::-webkit-scrollbar-corner {
      background-color: #091959; // 滑块颜色
    }
 
    .el-button--small {
      font-size: 14px;
    }
 
    .el-table__body tr:hover>td.el-table__cell {
      background-color: #091959;
    }
    .cell {
      line-height: 18px;
    }
  }
}
</style>