zj
2024-06-03 a1e25849cf08c5580fe139b39d5b58c9d958b455
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
<template>
    <div>
        <Newheader></Newheader>
        <div class="zixuancontainer">
            <div style="position:absolute;bottom: 0;">
                <Newfooter></Newfooter>
            </div>
        </div>
    </div>
</template>
<script>
import * as api from "../../axios/api";
import Newheader from '@/components/newheader';
import Newfooter from '@/components/newfooters';
export default {
    components: {
        Newheader,
        Newfooter
    },
    data() {
        return {
            windowWidth: document.documentElement.clientWidth,  //实时屏幕宽度
            windowHeight: document.documentElement.clientHeight,   //实时屏幕高
        }
    },
    watch: {
        windowHeight(val) {
            let that = this;
            console.log("实时屏幕高度:", val, that.windowHeight);
        },
        windowWidth(val) {
            let that = this;
            console.log("实时屏幕宽度:", val, that.windowHeight);
        }
    },
    created() {
        this.$router.push({
            path: '/hqchartdetail',
            query: {
                code: this.$route.query.code,
                is_zhishu: this.$route.query.is_zhishu,
                sok: this.$route.query.sok,
                stock_type: this.$route.query.stock_type,
                tabidx: this.$route.query.tabidx ? this.$route.query.tabidx : undefined
            }
        })
    },
    mounted() {
        var that = this;
        window.onresize = () => {
            return (() => {
                window.fullHeight = document.documentElement.clientHeight;
                window.fullWidth = document.documentElement.clientWidth;
                that.windowHeight = window.fullHeight;  // 高
                that.windowWidth = window.fullWidth; // 宽
                that.$nextTick(() => {
                    that.tableHeight = (that.windowHeight - 70) + 'px'
                })
            })()
        };
    },
    methods: {
    }
}
</script>
<style lang="less" scoped>
/deep/ .el-table__body td {
    color: #fff !important;
}
 
/deep/ .el-table tbody tr:hover>td,
.el-table tbody tr:hover>tr,
.el-table tbody tr:hover .el-table tbody tr td {
    background-color: rgb(33, 59, 76) !important;
    background: rgb(33, 59, 76) !important;
}
 
// /deep/.el-table--enable-row-hover .el-table__body tr:hover > td {
//   background-color: rgb(19, 75, 132) !important; //颜色必须是rgb
// }
/deep/ .el-table__body-wrapper {
    background-color: rgb(37, 38, 42) !important;
}
 
/deep/ .el-table__body-wrapper::-webkit-scrollbar-corner {
    width: 8px;
    height: 8px;
    display: none;
}
 
/deep/ .el-table--border::after,
.el-table--group::after,
.el-table::before {
    background-color: rgb(37, 38, 42);
}
 
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
    background: rgb(37, 38, 42);
    /*滚动条里面小方块*/
}
 
/deep/ .el-table__body-wrapper::-webkit-scrollbar-track {
    // -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: unset;
    /*滚动条的背景区域的圆角*/
    background-color: rgb(37, 38, 42);
    /*滚动条的背景颜色*/
}
 
/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
    border-radius: unset;
    /*滚动条的圆角*/
    // -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgb(50, 51, 55);
    /*滚动条的背景颜色*/
}
 
.greens {
    color: rgb(22, 135, 64) !important;
}
 
.blues {
    color: rgb(3, 182, 191) !important;
}
 
.reds {
    color: rgb(237, 58, 59) !important;
}
 
.zixuancontainer {
    background: #25262a;
    height: calc(100vh - 34px);
    overflow: unset;
    position: relative;
}
</style>