|
@@ -29,7 +29,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters(['bizId']),
|
|
|
src() {
|
|
|
- const { caseRoute } = getUrlParamsObj(['caseRoute'])
|
|
|
+ const { caseRoute, dp } = getUrlParamsObj(['caseRoute', 'dp'])
|
|
|
// const bizId = EncryptId(`${this.bizId}`)
|
|
|
// host = // const
|
|
|
// getEnv() === 'test'
|
|
@@ -42,8 +42,8 @@ export default {
|
|
|
// ? '/case/caseManager/zhihui/'
|
|
|
// : this.srcHost
|
|
|
// }${this.$route.query.detailCaseUrl || encodeURIComponent(bizId)}`
|
|
|
- // const src = `http://localhost:7100/#${this.$route.query.detailCaseUrl || this.path}?bizId=${this.bizId}&hiddenNav=true&caseRoute=${caseRoute}`
|
|
|
- const src = `${host}/usecase/#${this.$route.query.detailCaseUrl || this.path}?bizId=${this.bizId}&hiddenNav=true&caseRoute=${caseRoute}`
|
|
|
+ // const src = `http://localhost:7100/#${this.$route.query.detailCaseUrl || this.path}?bizId=${this.bizId}&hiddenNav=true&dp=${dp}&caseRoute=${caseRoute}`
|
|
|
+ const src = `${host}/usecase/#${this.$route.query.detailCaseUrl || this.path}?bizId=${this.bizId}&hiddenNav=true&dp=${dp}&caseRoute=${caseRoute}`
|
|
|
return src
|
|
|
}
|
|
|
},
|
|
@@ -78,8 +78,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onEventListener(e) {
|
|
|
- console.log(e.data)
|
|
|
- const { event, route } = e.data
|
|
|
+ const { event, route, data } = e.data
|
|
|
const { href } = window.location
|
|
|
if (event === 'usecase-set') {
|
|
|
const params = getUrlSearch(['caseRoute'], [{ key: 'caseRoute', value: route }])
|
|
@@ -88,6 +87,10 @@ export default {
|
|
|
if (event === 'done') {
|
|
|
this.loading = false
|
|
|
}
|
|
|
+ if (event === 'detialPage') {
|
|
|
+ const params = getUrlSearch(['dp'], [{ key: 'dp', value: data }])
|
|
|
+ window.open(`${href.split('?')[0]}?${params}`, '_self')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|