zj
2024-06-03 89d48809779ae41f8712539584798d5900b64b78
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<template>
    <div>
        <div class="zixuancontainer">
            <Newheader></Newheader>
            <div>
                <hqchart></hqchart>
            </div>
 
            <div class="jiaoyicontainer">
                <div class="selectheader">
                    <div class="headerevery_list" :class="idx == index ? 'headerevery_active' : ''"
                        v-for="(item,index) in headerList" :key="index" @click="getselect(index)">
                        {{ item.title }}
                    </div>
                </div>
                <div class="jiaoyimain" v-loading="loading" element-loading-spinner="el-icon-loading"
                    element-loading-background="rgba(37,38,42, 0.8)">
                    <zixun v-if="idx == 0"></zixun>
                    <jiaoyi v-if="idx == 1"></jiaoyi>
                    <chongzhi v-if="idx == 2"></chongzhi>
                    <tixian v-if="idx == 3"></tixian>
                    <huzhuan v-if="idx == 4"></huzhuan>
                    <mingxi v-if="idx == 5"></mingxi>
                    <gupiaochi v-if="idx == 6"></gupiaochi>
                    <gupiaoping v-if="idx == 7"></gupiaoping>
                    <zhishuchi v-if="idx == 8"></zhishuchi>
                    <zhishuping v-if="idx == 9"></zhishuping>
                    <guadan v-if="idx == 10"></guadan>
                </div>
            </div>
            <Newfooter style="border-top:1px solid #4a4b51;"></Newfooter>
        </div>
    </div>
</template>
<script>
import Newheader from '@/components/newheader';
import hqchart from './components/hqchart';
import Newfooter from '@/components/newfooters';
import zixun from './components/zixun';
import jiaoyi from './components/jiaoyi';
import tixian from './components/tixian';
import chongzhi from './components/chongzhi';
import huzhuan from './components/huzhuan';
import mingxi from './components/mingxi';
import gupiaochi from './components/gupiaochi';
import gupiaoping from './components/gupiaoping';
import zhishuchi from './components/zhishuchi';
import zhishuping from './components/zhishuping';
import guadan from './components/guadan';
export default {
    components: {
        Newheader,
        hqchart,
        Newfooter,
        zixun,
        jiaoyi,
        tixian,
        chongzhi,
        huzhuan,
        mingxi,
        gupiaochi,
        gupiaoping,
        zhishuchi,
        zhishuping,
        guadan,
    },
    data() {
        return {
            windowWidth: document.documentElement.clientWidth,  //实时屏幕宽度
            windowHeight: document.documentElement.clientHeight,   //实时屏幕高
            headerList: [
                {
                    title: this.$t('zx')
                },
                {
                    title: this.$t('hj225')
                },
                {
                    title: this.$t('hj172')
                },
                {
                    title: this.$t('hj177')
                },
                {
                    title: this.$t('zchz')
                },
                // {
                //     title: this.$t('zjmx')
                // },
                {
                    title: this.$t('gpcc')
                },
                {
                    title: this.$t('gppc')
                },
                // {
                //     title: this.$t('zscc')
                // },
                // {
                //     title: this.$t('zspc')
                // },
                {
                    title: this.$t('hj109')
                },
            ],
            idx: 0,
            loading: true
        }
    },
    computed: {
    },
    watch: {
        windowHeight(val) {
            let that = this;
            that.windowHeight = document.documentElement.clientHeight
            console.log("实时屏幕高度:", val, that.windowHeight);
        },
        windowWidth(val) {
            let that = this;
            console.log("实时屏幕宽度:", val, that.windowWidth);
        },
    },
    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 - 300) + 'px'
        //         // })
        //     })()
        // };
        if (this.$route.query.tabidx) {
            this.idx = this.$route.query.tabidx;
 
        }
    },
    methods: {
        getcloseLoading() {
            this.loading = false;
        },
        getselect(index) {
            this.idx = index
            this.loading = true
        },
        handleTableRow(row, event, column) {
            console.log(row, event, column)
        }
    }
}
</script>
<style lang="less" scoped>
/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;
}
 
.zixuancontainer {
    background: #25262a;
    height: 100vh;
    overflow: unset;
 
    .jiaoyicontainer {
        height: 230px;
 
        .selectheader {
            height: 20px;
            background: rgb(50, 51, 55);
            border: 1px solid #4a4b51;
            display: flex;
            align-items: center;
 
            .headerevery_list {
                padding: 0 20px;
                cursor: pointer;
                border-right: 1px solid #4a4b51;
                line-height: 20px;
                color: #c9c9c9;
            }
 
            .headerevery_active {
                background: #4a4b51;
                color: #fff;
            }
        }
 
        .jiaoyimain {
            height: 208px;
            background: rgb(50, 51, 55);
            // overflow-y: scroll;
        }
    }
}
</style>