From 457f9c817adef8b003ee6379f493798bae5cbb69 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 19 五月 2025 09:31:19 +0800 Subject: [PATCH] 修改 --- src/components/Home/Dynamic.vue | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/Home/Dynamic.vue b/src/components/Home/Dynamic.vue index 7fc8b45..613496f 100644 --- a/src/components/Home/Dynamic.vue +++ b/src/components/Home/Dynamic.vue @@ -1,11 +1,12 @@ <template> <a-card title="最新叫应记录"> + <a slot="extra" href="callRecord" class="tapBtn">查看全部</a> <a-list item-layout="horizontal" :data-source="lists"> <a-list-item slot="renderItem" slot-scope="item"> <a-list-item-meta :description="item.responseTime | filterTime" > - <a slot="title" href="#" @click="openDetails(item.warnInfoId)">{{ item.publishingUnit }} 发布了 {{item.title}}</a> + <a slot="title" href="#" @click="openDetails(item.warnInfoId)">{{item.receiveUnit}} 的 {{ item.responseRealName }} 在 {{item.title}} 进行了“已安排部署”叫应</a> <a-avatar slot="avatar" :src="userImg" @@ -47,11 +48,16 @@ const t = this const res = await getResponseRecord(this.search) if(res.data.code == 100){ - t.lists = res.data.data + if(res.data.data && res.data.data.length>0){ + t.lists = res.data.data + }else{ + t.lists = [] + } }else{ this.$message.error(res.data.msg) } }, + openDetails(id){ const t = this t.$refs.msgDetail.getDetails(id) @@ -60,3 +66,11 @@ } }; </script> +<style lang="less" scoped> +.tapBtn{ + color: #333; + &:hover{ + color: @link; + } +} +</style> \ No newline at end of file -- Gitblit v1.9.2