载入想定
This commit is contained in:
parent
26bca983ad
commit
20849de05a
|
@ -75,15 +75,17 @@
|
||||||
<a-row v-if="radioType === 'xdsm'" style="flex: 1; padding: 10px 16px; overflow-y: auto">
|
<a-row v-if="radioType === 'xdsm'" style="flex: 1; padding: 10px 16px; overflow-y: auto">
|
||||||
<a-col :span="12" v-flex="['c']">
|
<a-col :span="12" v-flex="['c']">
|
||||||
<div>想定名称:</div>
|
<div>想定名称:</div>
|
||||||
<div>{{ scenarioDetail.title }}</div>
|
<div>{{ scenarioDetail.planName }}</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" v-flex="['c']">
|
<a-col :span="12" v-flex="['c']">
|
||||||
<div>作者:</div>
|
<div>作者:</div>
|
||||||
<div>{{ scenarioDetail.authorName }}</div>
|
<div>{{ scenarioDetail.author }}</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div>想定说明:</div>
|
<div>想定说明:</div>
|
||||||
<div class="xdsm-wrapper" v-html="scenarioDetail.description"></div>
|
<div class="xdsm-wrapper">
|
||||||
|
<iframe v-html="scenarioDetail.planDesc" frameborder="0"></iframe>
|
||||||
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -218,8 +220,17 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleLoadSenario(item) {
|
async handleLoadSenario(item) {
|
||||||
|
try {
|
||||||
|
const res = await this.$http({
|
||||||
|
url: `/baseData/scenario/${item.id}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
this.scenarioDetail = JSON.parse(res.data.data.content)
|
||||||
this.loadedScenario = item.id
|
this.loadedScenario = item.id
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleCloseSenario() {
|
handleCloseSenario() {
|
||||||
this.loadedScenario = ''
|
this.loadedScenario = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user