【update】 会议列表页增加是否是问题征集的图标
This commit is contained in:
@@ -88,6 +88,13 @@
|
||||
<p class="item-meeting-img item-meeting-meetingDirector">
|
||||
<img src="@/assets/meetingImgs/meeting-user.png" />
|
||||
负责人:{{ item.directorName }}
|
||||
<!-- 增加是否有问题征集的图标 ,如果可以填写,则存在-->
|
||||
<a-icon
|
||||
v-if="item.hasQuestionIcon"
|
||||
class="question-icon"
|
||||
type="profile"
|
||||
title="可填写问题征集"
|
||||
/>
|
||||
</p>
|
||||
<p class="item-meeting-img item-meeting-meetingTime">
|
||||
<img src="@/assets/meetingImgs/meeting-time.png" />
|
||||
@@ -324,6 +331,13 @@ export default {
|
||||
this.pageNo = pageNo
|
||||
this.initData()
|
||||
},
|
||||
canOpe(endTimeAddQuestion) {
|
||||
if(!endTimeAddQuestion) {
|
||||
return false
|
||||
} else {
|
||||
return !compareCurrentTime(endTimeAddQuestion)
|
||||
}
|
||||
},
|
||||
/*
|
||||
* 初始化加载数据
|
||||
* */
|
||||
@@ -343,6 +357,16 @@ export default {
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.tableData = [...res.result.records] || res.result
|
||||
// 判断当前的会议是否有问题征集的图标,用 hasQuestionIcon 做标识
|
||||
this.tableData.map(item => {
|
||||
// 会议类型是标协会议 && 有问题征集
|
||||
if(item.meetingType === MeetingTypeEnums.standard.index && Number(item.isAddQuestion)) {
|
||||
item.hasQuestionIcon = true
|
||||
if(!this.canOpe(item.endTimeAddQuestion)) {
|
||||
item.hasQuestionIcon = false
|
||||
}
|
||||
}
|
||||
})
|
||||
this.current = res.result.current
|
||||
if (res.result.total) {
|
||||
this.total = res.result.total
|
||||
@@ -549,4 +573,10 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
// 问题征集的图标
|
||||
.question-icon{
|
||||
color: #069F99;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user