reportLoading.vue
961 Bytes
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
<template>
<div
class="loading"
>
<div class="loading-icon">
<img
src="@/assets/images/loading.gif"
alt=""
>
</div>
报告正在生成,请稍后再试...
<div class="refresh flex" @click="refresh">
<div class="sprite-icon icon-refresh"></div>
刷新
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
refresh () {
this.$emit('refresh')
}
}
}
</script>
<style scoped lang='scss'>
.loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: rgba(19, 51, 104, 0.5);
font-size: 12px;
padding: 8px 0;
&-icon {
width: 88px;
height: 60px;
}
.refresh {
margin-top: 4px;
gap: 2px;
color: #08f;
font-size: 13px;
}
}
</style>