shuishen
2024-04-18 4522ab3fe8bd45ee753ef187448c1e884bbc601f
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
<template>
    <basic-container>
        <div class="tab-list">
            <div :class="{ 'choose': typeStatus == 1 }" @click="changeType(1)">待处理</div>
            <div :class="{ 'choose': typeStatus == 2 }" @click="changeType(2)">已处理</div>
        </div>
        <div v-if="typeStatus == 1">
            <todo />
        </div>
        <div v-if="typeStatus == 2">
            <done />
        </div>
    </basic-container>
</template>
  
<script>
import todo from './components/todo'
import done from './components/done'
export default {
    components: { todo, done },
    data () {
        return {
            typeStatus: 1,
        }
    },
 
    methods: {
        changeType (type) {
            this.typeStatus = type
        },
    }
}
</script>
  
<style lang="scss" scoped>
.avue-upload__icon {
    line-height: 6;
}
 
.tab-list {
    display: flex;
    margin-right: 6px;
    border: 1px solid #dcdfe6;
    color: #606266;
    border-radius: 4px;
    height: 34px;
    width: 121px;
    margin-bottom: 10px;
 
    &>div {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        cursor: pointer;
        font-size: 12px;
    }
 
    &>div:nth-child(2) {
        border-left: 1px solid #dcdfe6;
        // border-right: 1px solid #dcdfe6;
    }
 
    .choose {
        color: #FFF;
        background-color: #409dfe;
    }
}
</style>