licp
2024-04-26 0cba68c09447d2c21407b0ff0321b2cfd173552a
优化消息通知
已修改1个文件
14 ■■■■■ 文件已修改
src/components/view/notice-detail.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/notice-detail.vue
@@ -1,7 +1,7 @@
<template>
  <div class="notice-detail-page">
    <div class="notice-detail-head">
      <h4 style="margin-bottom: 16px;">{{ noticeInfo.theme }}</h4>
      <h4 style="margin-bottom: 16px;">{{ noticeInfo.theme }} <el-tag style="margin-left: 10px;" :type="options.find(m=>m.value==noticeInfo.messageType).type" v-if="options.find(m=>m.value==noticeInfo.messageType)">{{ options.find(m=>m.value==noticeInfo.messageType).label }}</el-tag></h4>
      <p style="font-size: 12px;color: #999;margin-bottom: 20px;">
        <!-- <span>消息类型:审批&nbsp; </span> -->
        <span>发送人:{{ noticeInfo.createUser }} </span>
@@ -38,6 +38,7 @@
  data() {
    return{
      noticeInfo:{},
      options:[]
    }
  },
  created(){
@@ -50,7 +51,18 @@
      console.log(this.noticeInfo);
      sessionStorage.setItem("noticeInfo", msg);
    });
    this.getTypeDicts()
  },
  methods:{
    getTypeDicts() {
      this.$axios.post(this.$api.enums.selectEnumByCategory, {
        category: "消息类型"
      }).then(res => {
        let data = res.data
        this.options = data;
      })
    },
  }
}
</script>