【bug】 支出合同的消息

This commit is contained in:
fengachen
2021-11-18 12:02:20 +08:00
parent f443580b6c
commit b14d8329e7
+14 -5
View File
@@ -237,11 +237,20 @@ export default {
} else if(record.openType === 'url') {
console.log(record.openPage,'url')
const param = JSON.parse(record.busId)
// 如果是url 跳转页面
this.$router.push({
path:record.openPage,
query:param
})
if(Object.prototype.hasOwnProperty.call(param, 'contractType') && param.contractType === 2){
// 如果是支出合同的就去支出合同 多加一个判断 是不想再去新加一个消息模板
this.$router.push({
path:'/contractManagement/ExpenditureContractDetail',
query:param
})
}else {
// 如果是url 跳转页面
this.$router.push({
path:record.openPage,
query:param
})
}
}else {
this.$refs.ShowAnnouncement.detail(record)
}