马宇豪
2023-06-28 737578d7bdeca8e4d38dc64093ee2b1efa45ab21
修改接口
已修改2个文件
19 ■■■■■ 文件已修改
src/components/Home/Dynamic.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Home/QuickNavigation.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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.recipienterName }} 在 {{item.title}} 进行了“已安排部署”叫应</a>
          <a-avatar
            slot="avatar"
            :src="userImg"
@@ -52,6 +53,7 @@
        this.$message.error(res.data.msg)
      }
    },
    openDetails(id){
      const t = this
      t.$refs.msgDetail.getDetails(id)
@@ -60,3 +62,11 @@
  }
};
</script>
<style lang="less" scoped>
.tapBtn{
  color: #333;
  &:hover{
    color: @link;
  }
}
</style>
src/components/Home/QuickNavigation.vue
@@ -14,12 +14,7 @@
      <a :class="toReview>0?'resColor':''" @click="toRev" v-if="userinfo.role.id == 2">待审核<span v-if="toReview > 0">({{toReview}})</span></a>
    </a-tooltip>
  <a href="massSend" v-if="userinfo.role.id == 3">发布通知</a>
  <a-tooltip overlayClassName="tip">
    <template #title>
      数据统计模块待呈现
    </template>
    <a>查看统计</a>
  </a-tooltip>
  <a href="audit" >查看统计</a>
  <a href="user" v-if="userinfo.role.id == 3">用户管理</a>
    <!-- <a-button><a-icon type="plus" />添加</a-button> -->
  </a-card>