e-correspondence-head-list.vue
3.18 KB
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
<template>
<div class="list-container">
<modal2-comp :visible="showDownloadError" :close="()=>{showDownloadError = false}" :content="$t('glbalTips.sysError')"></modal2-comp>
<filter-comp :items="checkList" @confirm="onCheckConfirmHandler" :visible="filterVisible" @close="filterVisible = false"></filter-comp>
<div class="cell-group">
<div class="table-contaner">
<div class="table-header orange new">
<div class="normal-header">
<div class="td w1">{{$t('eCorrespondenceEnquiry.PolicyNumber')}}
<div @click="onFilterHandler(1)" class="down-arrow"></div>
</div>
<div class="td w1">{{$t('eCorrespondenceEnquiry.TypeOfCorrespondence')}}
<div @click="onFilterHandler(2)" class="down-arrow"></div>
</div>
<div class="td w2">{{$t('eCorrespondenceEnquiry.SentOutDate')}}
<div @click="onFilterHandler(3)" class="down-arrow"></div>
</div>
<div class="td w2">{{$t('eCorrespondenceEnquiry.DownloadLink')}}
</div>
<div @click="onFilterHandler(5)" class="td w2">{{$t('eCorrespondenceEnquiry.Status')}}
<div class="down-arrow"></div>
</div>
</div>
</div>
</div>
<div class="table-content" :class="{hide : hide}">
<template v-if="contentList && contentList.length > 0">
<div v-for="(item,index) in contentList" :key="index">
<template v-if="index < maxShow">
<div class="data-line">
<div class="td w1">{{item.bizNo}}</div>
<div class="td w1">{{$t("eCorrespondenceEnquiry.letterName")}}</div>
<div class="td w2">{{item.printTime.split(" ")[0]}}</div>
<div class="td w2 pointer" @click="downloadPolicy(item)">
<div class="download" @mouseover="onShowTipsOverHandler($event,item,index)" @mouseout="onShowTipsOutHandler($event,item,index)" >
<div class="download-tips">
<div class="cont">{{$t('customService.insuranceQuery.downloadClick')}}</div>
</div>
<img class="icon-download" src="@/assets/images/insurance-query/icon-down-load.png" alt="">
</div>
{{$t("eCorrespondenceEnquiry.DownloadDoc")}}
</div>
<div class="td w2">{{item.isRead == "N" ? $t('eCorrespondenceEnquiry.UnRead') : $t('eCorrespondenceEnquiry.Read')}}</div>
</div>
<div class="separator-h" v-if="index < contentList.length - 1 && index < maxShow - 1"></div>
</template>
</div>
<template v-if="maxShow < contentList.length">
<div class="separator-h"></div>
<div class="data-line show-more-btn" @click="maxShow = contentList.length">{{$t('customService.insuranceQuery.showMore')}}</div>
</template>
</template>
<template v-else>
<div class="empty">
<div class="tips">
<img class="icon" src="@/assets/images/common/icon-alert-i.png" alt="">
<div class="txt">
{{$t('customService.insuranceQuery.noPolicy')}}
<span class="pointer btn" @click="toContactUs">{{$t('customService.insuranceQuery.customService')}}</span>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</template>
<script src="./e-correspondence-head-list.js"></script>
<style lang="scss" scoped>
@import "./e-correspondence-head-list.scss";
</style>