Skip to content

Commit

Permalink
Fix subtab componet modal render error (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
dispensable authored Nov 3, 2020
1 parent ebd3f77 commit e49ce2e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions frontend/src/components/SubTabNoRecursive.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<template>
<a-tabs type="card" :tabPosition="'left'" :activeKey="resultActiveKey" @tabClick='tabClickHandler'>
<a-tab-pane v-for="value of resultData.tasks" :key="value.id">
<template slot="tab">
{{ value.name.length > 30 ? value.name.slice(0, 30) + '...': value.name }}
</template>
<result-host-table v-bind:data-loaded="dataLoaded" v-bind:resultData="value.result"
:ticketId="ticketId" @showPrettyLog="showPrettyLog"></result-host-table>
<div>
<a-modal :visible="prettyLogVisible" title="log" ok-text="confirm" cancel-text="cancel" @ok="onConfirm" @cancel="onCancel" width="85%" id="prettyLogModal">
<result-host-table v-bind:data-loaded="prettyLogLoaded" v-bind:resultData="prettyLogResult"
:ticketId="ticketId"></result-host-table>
</a-modal>

<a-modal v-model="prettyLogVisible" title="log" ok-text="confirm" cancel-text="cancel" @ok="onConfirm" @cancel="onCancel" width="85%">
<result-host-table v-bind:data-loaded="prettyLogLoaded" v-bind:resultData="prettyLogResult"
:ticketId="ticketId"></result-host-table>
</a-modal>

</a-tab-pane>
</a-tabs>
<a-tabs type="card" :tabPosition="'left'" :activeKey="resultActiveKey" @tabClick='tabClickHandler'>
<a-tab-pane v-for="value of resultData.tasks" :key="value.id">
<template slot="tab">
{{ value.name.length > 30 ? value.name.slice(0, 30) + '...': value.name }}
</template>
<result-host-table v-bind:data-loaded="dataLoaded" v-bind:resultData="value.result"
:ticketId="ticketId" @showPrettyLog="showPrettyLog"></result-host-table>
</a-tab-pane>
</a-tabs>
</div>
</template>
<script>
import ResultHostTable from './ResultHostTable'
Expand Down

0 comments on commit e49ce2e

Please sign in to comment.