From a67fb8cc8644174b16c3cfe8082b7cf61e5b85e9 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期五, 10 五月 2024 09:53:10 +0800
Subject: [PATCH] 复核按钮权限恢复

---
 src/components/view/notice-detail.vue |   43 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/src/components/view/notice-detail.vue b/src/components/view/notice-detail.vue
index 8b11683..c4661e0 100644
--- a/src/components/view/notice-detail.vue
+++ b/src/components/view/notice-detail.vue
@@ -1,23 +1,23 @@
 <template>
   <div class="notice-detail-page">
     <div class="notice-detail-head">
-      <h4 style="margin-bottom: 16px;">娑堟伅涓婚</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>鍙戦�佷汉锛�111 </span>
+        <span>鍙戦�佷汉锛歿{ noticeInfo.createUser }} </span>
         <span>&nbsp;&nbsp;</span>
-        <span>鏀朵欢浜猴細111</span>
+        <span>鏀朵欢浜猴細{{ noticeInfo.consigneeUser }}</span>
         <span>&nbsp;&nbsp;</span>
-        <span>鍙戜欢鏃堕棿锛�111</span>
+        <span>鍙戜欢鏃堕棿锛歿{ noticeInfo.createTime }}</span>
       </p>
       <div class="notice-detail-head-content">
         <label>鍐呭锛�</label>
-        <div></div>
+        <div>{{ noticeInfo.content }}</div>
       </div>
     </div>
-    <div class="info-box">
-      <component class="notice-content" :is="noticeInfo.u" style="height: 500px;">
-		  </component>
+    <div class="info-box" v-if="noticeInfo.jumpPath">
+      <!-- <component class="notice-content" :is="noticeInfo.jumpPath" style="height: 500px;" >
+		  </component> -->
     </div>
   </div>
 </template>
@@ -37,10 +37,31 @@
   components: comObj,
   data() {
     return{
-      noticeInfo:{
-        u:'b1-report-preparation'
-      },
+      noticeInfo:{},
+      options:[]
     }
+  },
+  created(){
+    this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo"));
+  },
+  mounted(){
+    this.noticeInfo = JSON.parse(sessionStorage.getItem("noticeInfo"));
+    this.$bus.$on("change", (msg) => {
+      this.noticeInfo = JSON.parse(msg);
+      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>

--
Gitblit v1.9.3