From 57ffebab5fded6f5236bd1b40c4b4e7a6d4ae07f Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Wed, 31 Jul 2024 09:50:09 +0800
Subject: [PATCH] 驱动下载
---
src/components/Home/Dynamic.vue | 79 +++++++++++++++++++++++++--------------
1 files changed, 51 insertions(+), 28 deletions(-)
diff --git a/src/components/Home/Dynamic.vue b/src/components/Home/Dynamic.vue
index e3784ed..613496f 100644
--- a/src/components/Home/Dynamic.vue
+++ b/src/components/Home/Dynamic.vue
@@ -1,53 +1,76 @@
<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.created | filterTime"
+ :description="item.responseTime | filterTime"
>
- <a slot="title" href="#">{{ item.title }}</a>
+ <a slot="title" href="#" @click="openDetails(item.warnInfoId)">{{item.receiveUnit}} 的 {{ item.responseRealName }} 在 {{item.title}} 进行了“已安排部署”叫应</a>
<a-avatar
slot="avatar"
- src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
+ :src="userImg"
/>
</a-list-item-meta>
</a-list-item>
</a-list>
+ <msg-detail-mod ref="msgDetail"></msg-detail-mod>
</a-card>
</template>
<script>
+import msgDetailMod from "@/views/Admin/components/msgDetailMod";
+import {getResponseRecord} from "@/api/list";
+
export default {
name: "Dynamic",
+ components: { msgDetailMod },
data() {
return {
- lists: [
- {
- title: "阿勒泰地区莽村 李有田 在 20230301大风红色预警提示 进行了“已安排部署”叫应。",
- created: '2023-03-1 12:12:12'
- },
- {
- title: "李宏伟 在 20230301大风红色预警提示 进行了“已安排部署”叫应。",
- created: '2023-03-12 12:12:12'
- },
- {
- title: "李宏伟 在 20230301大风红色预警提示 进行了“已安排部署”叫应。",
- created: '2023-03-12 12:12:12'
- },
- {
- title: "李宏伟 在 20230301大风红色预警提示 进行了“已安排部署”叫应。",
- created: '2023-03-12 12:12:12'
- },
- {
- title: "阿勒泰地区莽村 李有田 在 20230311大风红色预警工作通知 进行了“已安排部署”叫应。",
- created: '2023-03-12 12:12:12'
- },
- {
- title: "木木 在 20230301大风红色预警提示 进行了“已安排部署”叫应。",
- created: '2023-03-12 12:12:12'
+ search:{
+ pageIndex: 1,
+ pageSize: 6,
+ searchParams:{
+ emergType: null,
+ startTime: '',
+ endTime: ''
}
- ],
+ },
+ lists: [],
+ userImg: require('@/assets/user.png')
};
},
+ created() {
+ this.getData()
+ },
+ methods: {
+ async getData(){
+ const t = this
+ const res = await getResponseRecord(this.search)
+ if(res.data.code == 100){
+ 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)
+ t.$refs.msgDetail.visible = true
+ }
+ }
};
</script>
+<style lang="less" scoped>
+.tapBtn{
+ color: #333;
+ &:hover{
+ color: @link;
+ }
+}
+</style>
\ No newline at end of file
--
Gitblit v1.9.2