载入想定
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-col :span="12" v-flex="['c']">
|
||||
<div>想定名称:</div>
|
||||
<div>{{ scenarioDetail.title }}</div>
|
||||
<div>{{ scenarioDetail.planName }}</div>
|
||||
</a-col>
|
||||
<a-col :span="12" v-flex="['c']">
|
||||
<div>作者:</div>
|
||||
<div>{{ scenarioDetail.authorName }}</div>
|
||||
<div>{{ scenarioDetail.author }}</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<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-row>
|
||||
</div>
|
||||
|
@ -218,8 +220,17 @@ export default {
|
|||
this.loading = false
|
||||
}
|
||||
},
|
||||
handleLoadSenario(item) {
|
||||
this.loadedScenario = item.id
|
||||
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
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
},
|
||||
handleCloseSenario() {
|
||||
this.loadedScenario = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user