mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 12:32:53 +08:00
[fix] 统一 活动量管理页面 中 , 人才库和活动日志 的呈现
This commit is contained in:
@@ -52,11 +52,11 @@
|
||||
</div>
|
||||
<van-collapse v-model="recordNames" v-else>
|
||||
<van-collapse-item name="1" title-class="fs16 fwb">
|
||||
<div slot="title" class="flex justify-content-s align-items-c">当日增员活动日志 <van-icon name="plus" @click="toEdit" /></div>
|
||||
<div slot="title" class="flex justify-content-s align-items-c">当日增员活动日志 <van-icon class="mr10" name="plus" @click.stop="toEdit" /></div>
|
||||
<ActivityLogItem :ActivityLogInfo="info" v-for="(info, index) in recordList" :key="index"></ActivityLogItem>
|
||||
<p v-if="showMore" class="p15 text-right blue" @click="toList">查看全部>>></p>
|
||||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
<p class="p15 text-right blue" v-if="recordList.length != 0" @click="toList">查看全部>>></p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -105,6 +105,7 @@ export default {
|
||||
talentPoolCollapse: ['1'],
|
||||
talentPoolList: [],
|
||||
// 日志列表
|
||||
showMore: false,
|
||||
personnelsList: [],
|
||||
// 增员日志列表
|
||||
recordList: []
|
||||
@@ -156,7 +157,14 @@ export default {
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
this.recordList = res.content.records
|
||||
let data = res.content.records
|
||||
if (data.length > 5) {
|
||||
this.showMore = true
|
||||
data = data.slice(0, 5)
|
||||
} else {
|
||||
this.showMore = false
|
||||
}
|
||||
this.recordList = data
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user