|
@@ -25,7 +25,10 @@
|
|
|
<div class="popover-main">消息盒子</div>
|
|
|
<div class="popover-item" v-for="item in popoverData">
|
|
|
<p class="popover-title">
|
|
|
- {{item.projectName}}
|
|
|
+ <span
|
|
|
+ style="cursor: pointer;"
|
|
|
+ @click="locationHerf(item.refId, item.noticeType)"
|
|
|
+ >{{item.projectName}}</span>
|
|
|
<span class="popover-type" v-if="item.noticeType == 0">[审批]</span>
|
|
|
<span class="popover-type" v-else-if="item.noticeType == 1">[警告]</span>
|
|
|
<span class="popover-type" v-else-if="item.noticeType == 2">[保养]</span>
|
|
@@ -280,6 +283,19 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
+ },
|
|
|
+ //点击消息的跳转
|
|
|
+ locationHerf(id, type) {
|
|
|
+ if (type == 0) {
|
|
|
+ //审批 跳转到模具详情
|
|
|
+ this.$router.push("/moldList/" + id);
|
|
|
+ } else if (type == 1) {
|
|
|
+ //警告 跳转到运行监测
|
|
|
+ this.$router.push("/detection");
|
|
|
+ } else if (type == 2) {
|
|
|
+ //保养 跳转到运行监测详情
|
|
|
+ this.$router.push("/detection/" + id);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|