Commit efc33584 by 杨北旺

优化面包屑标题展示错误问题

1 parent b326241d
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
} }
#app { #app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 20px; padding: 0px 20px 20px 40px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
......
...@@ -636,8 +636,10 @@ export default { ...@@ -636,8 +636,10 @@ export default {
contractNo: addOrEdit == 1 ? -1 : row.contractNo, contractNo: addOrEdit == 1 ? -1 : row.contractNo,
isSuper: this.userInfo.admin isSuper: this.userInfo.admin
} }
const title = this.jumpTitle(addOrEdit)
const urlpara = encodeURIComponent(JSON.stringify(paraFormat)) const urlpara = encodeURIComponent(JSON.stringify(paraFormat))
addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + urlpara) : this.$router.push('/beforeSale/editEquity/' + urlpara) this.$router.push({path:'/beforeSale/editEquity/' + urlpara,query:{$title:title}})
// addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + urlpara) : this.$router.push('/beforeSale/editEquity/' + urlpara)
}, },
handlePdfClose() { handlePdfClose() {
...@@ -809,6 +811,31 @@ export default { ...@@ -809,6 +811,31 @@ export default {
// } // }
// } // }
this.handleSearch() this.handleSearch()
},
// 页面跳转标题判断
jumpTitle(addOrEdit) {
let title = '新增权益'
switch (addOrEdit) {
case 1:
title = '新增权益'
break;
case 2:
title = '编辑'
break;
case 3:
title = '修改'
break;
case 4:
title = '重新提单'
break;
case 5:
title = '查看'
break;
default:
title = '新增权益'
break;
}
return title
} }
} }
} }
......
...@@ -717,9 +717,10 @@ export default { ...@@ -717,9 +717,10 @@ export default {
contractNo: addOrEdit == 1 ? -1 : row.contractNo, contractNo: addOrEdit == 1 ? -1 : row.contractNo,
isSuper: this.userInfo.admin isSuper: this.userInfo.admin
} }
const title = this.jumpTitle(addOrEdit)
const urlpara = encodeURIComponent(JSON.stringify(paraFormat)) const urlpara = encodeURIComponent(JSON.stringify(paraFormat))
addOrEdit == 1 ? this.$router.push('/ghPreSale/editEquity/' + urlpara) : this.$router.push('/ghPreSale/editEquity/' + urlpara) // this.$router.push('/ghPreSale/editEquity/' + urlpara)
// addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + addOrEdit + '/' + this.userInfo.admin + '/' + -1) : this.$router.push('/beforeSale/editEquity/' + addOrEdit + '/' + this.userInfo.admin + '/' + row.contractNo) this.$router.push({path:'/ghPreSale/editEquity/' + urlpara,query:{$title:title}})
}, },
handlePdfClose() { handlePdfClose() {
...@@ -875,6 +876,31 @@ export default { ...@@ -875,6 +876,31 @@ export default {
} }
} }
this.handleSearch() this.handleSearch()
},
// 页面跳转标题判断
jumpTitle(addOrEdit) {
let title = '新增权益'
switch (addOrEdit) {
case 1:
title = '新增权益'
break;
case 2:
title = '编辑'
break;
case 3:
title = '修改'
break;
case 4:
title = '重新提单'
break;
case 5:
title = '查看'
break;
default:
title = '新增权益'
break;
}
return title
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!