1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
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
<template>
    <div class="containerTable">
        <div class="tableHead">
            <span>姓名</span>
            <span>性别</span>
            <span>职务</span>
            <span>电话</span>
        </div>
        <div class="tablecontent">
            <vueSeamlessScroll :data="peopleList" class="warp" :class-option="defaultOption" >
                <div v-for="(item,index)   in  peopleList"    :class="{ 'tablecontentItem': index%2==0,'tablecontentItemJ': index%2==1 }">
                    <span>{{item.name}}</span>
                    <span>{{item.sex}}</span>
                    <span>{{item.duty}}</span>
                    <span>{{item.phone}}</span>
                </div>
            </vueSeamlessScroll>
        </div>
 
    </div>
</template>
 
<script>
    import {axios_get,axios_post}  from "../../../until/request.js"
    import vueSeamlessScroll from 'vue-seamless-scroll'
    export default {
        components: {
            vueSeamlessScroll
        },
        data() {
            return {
                chart1: {},
                chart1option: {},
                peopleList:[],
                
 
            }
        },
        
        methods:{
            GetQYPeople(){
                let  pid=    this.$store.state.Pid;
                axios_get("/safe/getCorpMessage/"+pid).then(reponse=>{
                    //console.log(reponse);
                    this.peopleList=reponse.data.corpPersons;
                })
                
                
            }
        },
        
        mounted() {
            this.GetQYPeople();
        },
        
        
        
 
        computed: {
            defaultOption() {
                return {
                    step: 0, // 数值越大速度滚动越快
                    limitMoveNum: 5, // 开始无缝滚动的数据量 this.dataList.length
                    hoverStop: true, // 是否开启鼠标悬停stop
                    direction: 1, // 0向下 1向上 2向左 3向右
                    openWatch: true, // 开启数据实时监控刷新dom
                    singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
                    singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
                    waitTime: 10000 // 单步运动停止的时间(默认值1000ms)
                }
            }
 
        },
        
        
        watch: {
          '$store.state.Pid': {
            deep: true, //深度监听
            handler(newValue, oldValue) {
                this.GetQYPeople();
            },
          },
        },
 
 
    }
</script>
 
<style scoped="scoped" lang="less">
    .containerTable {
        position: relative;
        height: 100%;
        width: 100%;
 
        .tableHead {
            height: 60px;
            width: 100%;
            display: flex;
            flex-direction: row;
            background: linear-gradient(to bottom, #153184, #0A1941);
 
            span {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 25%;
                height: 100%;
                color: #FFF;
                font-size: 25px;
            }
        }
 
        .tablecontent {
            height: calc(100% - 60px);
            width: 100%;
            .warp{
                height: 100%;
                width: 100%;
                 overflow-y: scroll;
            }
            .tablecontentItem {
                height: 60px;
                width: 100%;
                display: flex;
                flex-direction: row;
 
                span {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 25%;
                    height: 100%;
                    color: #FFF;
                    font-size: 20px;
                }
            }
            
            .tablecontentItemJ {
                height: 60px;
                width: 100%;
                display: flex;
                flex-direction: row;
                background-color: #08163B;
                span {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 25%;
                    height: 100%;
                    color: #FFF;
                    font-size: 20px;
                }
            }
            
            
        }
    }
    
</style>