|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <section v-if="bizId !== -1" class="case-main">
|
|
|
+ <section v-if="bizId !== -1" v-loading="loading" class="case-main">
|
|
|
<iframe
|
|
|
id="useCaseIframe"
|
|
|
frameborder="0"
|
|
@@ -17,15 +17,17 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
ifr: null,
|
|
|
- srcHost: '/case/caseList/zhihui/'
|
|
|
+ srcHost: '/case/caseList/zhihui/',
|
|
|
+ loading: true
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['bizId']),
|
|
|
src() {
|
|
|
const bizId = EncryptId(`${this.bizId}`)
|
|
|
+ console.log(bizId, this.bizId)
|
|
|
const host = getEnv() === 'test' ? 'http://10.96.83.94:9000/index.html#' : 'http://agiletc.intra.xiaojukeji.com/#'
|
|
|
- const src = `${host}${this.srcHost}${bizId}`
|
|
|
+ const src = `${host}${this.srcHost}${encodeURIComponent(bizId)}`
|
|
|
return src
|
|
|
}
|
|
|
},
|
|
@@ -41,6 +43,7 @@ export default {
|
|
|
mounted() {
|
|
|
window.addEventListener('message', (e) => {
|
|
|
if (e.data === 'useCaseDone') {
|
|
|
+ this.loading = false
|
|
|
this.loaded()
|
|
|
}
|
|
|
}, false)
|