web
2 天以前 7885ad510c6246a35ba14faff7cfdbc066e269cd
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
<script setup>
import {ref} from 'vue'
const props = defineProps({
    data: {
        type: Object,
        default: () => {}
    }
})
 
const timeType = ref('date')
const timeVal = ref()
const timeOption = [
    { label: '日', value: 'date' },
    { label: '月', value: 'month' },
    { label: '年', value: 'year' },
]
 
</script>
 
<template>
    <div class="item">
        <div class="item-t">{{props.data.name}}</div>
        <div class="item-c">
            <div class="select-box">
                <el-select
                    v-model="timeType"
                    class="m-2"
                    placeholder="Select"
                >
                    <el-option
                        v-for="item in timeOption"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                    />
                </el-select>
                <el-date-picker
                    v-model="timeVal"
                    :type="timeType"
                    placeholder="请选择"
                />
            </div>
            <div class="table-box">
                <table class="cusTable" cellpadding="0" cellspacing="0" border="1">
                    <tr>
                        <th v-for="[key, value] in Object.entries(props.data.heade)" :key="key">{{value}}</th>
                    </tr>
                    <tr v-for="(item,index) in props.data.list" :key="index">
                        <td v-for="[key, value] in Object.entries(props.data.heade)" :key="key">{{item[key]}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</template>
 
<style scoped lang="scss">
.item {
    width: 100%;
    height: 100%;
    background: url("@/assets/images_lc/H_100_bg.png") no-repeat;
    background-size: 100% 100%;
 
    .item-t {
        background: url("@/assets/images_lc/title_font.png") no-repeat;
        padding-left: 12%;
        color: #fff;
        font-size: 1.2rem;
    }
    .item-c{
        height: 96%;
        padding: 1rem;
        :deep(.el-select__wrapper){
            background: transparent;
            box-shadow: none;
            border: 1px solid #6CD1F8;
            .el-select__placeholder{
                color: #6CD1F8;
            }
        }
        :deep(.el-input__wrapper){
            background: transparent;
            box-shadow: none;
            border: 1px solid #6CD1F8;
            .el-input__inner{
                color: #6CD1F8;
            }
        }
        .select-box{
            display: flex;
            gap: 3rem;
            :deep(.el-select){
                width: 43%;
            }
        }
        .table-box{
            height: 97%;
            overflow-y: scroll;
            &::-webkit-scrollbar{
                display: none;
            }
            .cusTable{
                border-color: #fff;
                color: #fff;
                margin-top: 1rem;
                width: 100%;
                height: 100%;
                th{
                    background: #6CD1F8;
                    height: 2.5rem;
                }
                td{
                    height: 2.5rem;
                    text-align: center;
                }
            }
        }
        .info{
            height: 16%;
            color: #fff;
            display: flex;
            flex-wrap: wrap;
            margin-top: 1rem;
            .info-item{
                width: 50%;
                display: flex;
                align-items: center;
            }
        }
    }
}
</style>