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
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
<template>
  <div  class="containerQYScrool">
    <div class="DataTitle">
      <div class="Dtitle">隐患照片</div>
      <div class="Dtitle">检查人</div>
      <div class="Dtitle"  style="border-left: 0px;border-right:0px ;">隐患描述</div>
      <div class="Dtitle">隐患类别</div>
      <div class="Dtitle">整改时间</div>
    </div>
    <vueSeamlessScroll :data="list" class="seamless-warp  warp" :class-option="defaultOption">
      <div class="DataTitleMsg" v-for="item  in  list">
        <div class="Dtitle  Dtitle3" :title="item.picture">
          <img :src="item.picture" /></div>
        <div class="Dtitle  Dtitle1" :title="item.name">
          {{item.name.length>23?item.name.substring(0,23):item.name}}</div>
        <div class="Dtitle  Dtitle2" :title="item.description">
          {{item.description.length>23?item.description.substring(0,23):item.description}}</div>
        <div class="Dtitle  Dtitle3" :title="item.checkTime">
          {{item.checkTime.length>23?item.checkTime.substring(0,23):item.checkTime}}</div>
        <div class="Dtitle  Dtitle3" :title="item.finishTime">
          {{item.finishTime.length>23?item.finishTime.substring(0,23):item.finishTime}}</div>
 
      </div>
    </vueSeamlessScroll>
  </div>
</template>
 
<script>
import vueSeamlessScroll from 'vue-seamless-scroll'
export default {
  components: {
    vueSeamlessScroll
  },
  data() {
    return {
      list: [{
        name: '李振军',
        description: '还蒸二车间四工段16号炉真空泵排烟软管未接好',
        checkTime: '一般隐患',
        picture:require("../../../assets/images/企业隐患照片/1.png"),
        finishTime:'2022/5/30'
      },
        {
          name: '张帅',
          description: '还蒸二车间六工段一楼走廊处电线未穿管',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/2.png"),
          finishTime:'2022/5/30'
        },
        {
          name: '张浩',
          description: '硫酰氯生产车间SIS阀门及截止阀缺少开、关标识',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/3.png"),
          finishTime:'2022/6/20'
        },
        {
          name: '张浩',
          description: '二氧化硫灌装车间室内消火栓未明确负责人',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/4.png"),
          finishTime:'2022/6/20'
        },
        {
          name: '高佳奇',
          description: '振动筛平台无盖板,存在安全隐患',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/5.png"),
          finishTime:'2022/6/9'
        },
        {
          name: '高佳奇',
          description: '振动筛平台西侧pp水管球阀漏水',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/6.png"),
          finishTime:'2022/6/2'
        },
        {
          name: '叶策',
          description: '装配车间切割机边角废料堵占安全通道 ',
          checkTime: '一般隐患',
          picture:require("../../../assets/images/企业隐患照片/7.png"),
          finishTime:'2022/7/4'
        },
      ],
    }
 
 
  },
 
  computed: {
    defaultOption() {
      return {
        step: 0.2, // 数值越大速度滚动越快
        limitMoveNum: 2, // 开始无缝滚动的数据量 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: 1000 // 单步运动停止的时间(默认值1000ms)
      }
    }
 
  }
 
 
 
 
 
 
}
</script>
 
<style scoped="scoped" lang="less">
.containerQYScrool{
  height: 100%;
  width: 100%;
}
.DataTitle {
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
 
  .Dtitle {
    width: 33%;
    height: 100%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: solid 1px aqua;
    // border-bottom:none ;
    // border-right: 0;
  }
}
 
.warp {
  position: relative;
  height: calc(100% - 162px);
  width: 100%;
  overflow-y: hidden;
}
 
 
.DataTitleMsg {
  width: 100%;
  height: 220px;
  display: flex;
  text-align: center;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  //border: solid 1px #04589A;
 
  .Dtitle {
    width: 220px;
    height: 100%;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    //border-bottom: none;
    border: solid 1px #1a6caf;
 
  }
 
  .Dtitle1 {
    color: aqua;
    font-size: 30px;
  }
  .Dtitle2 {
    font-size: 24px;
  }
  .Dtitle3 {
    color: #00A4FF;
    font-size: 30px;
 
  }
}
</style>