Commit 8025bc57 authored by 耿迪迪's avatar 耿迪迪

消息通知查看

parent 93485df5
......@@ -25,7 +25,7 @@
<el-dropdown-item>类型</el-dropdown-item>
</el-col>
<el-col :span="6">
<el-dropdown-item>标记</el-dropdown-item>
<el-dropdown-item>操作</el-dropdown-item>
</el-col>
</el-row>
<el-row v-for="item in msgInfo">
......@@ -40,7 +40,10 @@
<el-dropdown-item v-if="item.noticeType == '2'">公告</el-dropdown-item>
</el-col>
<el-col :span="6">
<el-dropdown-item><el-button type="text" @click="isRead(item.noticeId)">已读</el-button></el-dropdown-item>
<el-dropdown-item>
<el-button type="text" @click="isRead(item.noticeId)">已读</el-button>
<el-button type="text" v-if="item.relationType" @click="messageView(item.relationType)">查看</el-button>
</el-dropdown-item>
</el-col>
</el-row>
</div>
......@@ -89,6 +92,30 @@
this.$message.error("标记失败")
}
})
},
messageView(relationType){
//1.项目交易中心 2. 物品采购 3.服务费用 4.借贷
if(relationType == '1'){
if(this.$route.path != '/trade'){
this.$router.replace({ path: "/trade" })
}
}
if(relationType == '2'){
if(this.$route.path != '/purchase/thing'){
this.$router.replace({ path: "/purchase/thing" })
}
}
if(relationType == '3'){
if(this.$route.path != '/purchase/service'){
this.$router.replace({ path: "/purchase/service" })
}
}
if(relationType == '4'){
if(this.$route.path != '/debit'){
this.$router.replace({ path: "/debit" })
}
}
this.$refs.dropDown.visible = false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment