-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5531 from GuoLiBin6/feat/glb-to-3.10/compute
feat(4588): recovery list add event log
- Loading branch information
Showing
10 changed files
with
246 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<base-side-page | ||
@cancel="cancelSidePage" | ||
:title="$t('compute.text_100')" | ||
icon="res-disk" | ||
:res-name="detailData.name" | ||
:current-tab="params.windowData.currentTab" | ||
:tabs="detailTabs" | ||
:loaded="loaded" | ||
@tab-change="handleTabChange"> | ||
<template v-slot:actions> | ||
<actions :options="singleActions" :row="detailData" button-type="link" button-size="small" /> | ||
</template> | ||
<component | ||
:is="params.windowData.currentTab" | ||
:res-id="data.id" | ||
:id="listId" | ||
:data="detailData" | ||
:on-manager="onManager" | ||
:getParams="getParams" | ||
:cloudEnv="cloudEnvData" | ||
@tab-change="handleTabChange" /> | ||
</base-side-page> | ||
</template> | ||
|
||
<script> | ||
import SidePageMixin from '@/mixins/sidePage' | ||
import WindowsMixin from '@/mixins/windows' | ||
import Actions from '@/components/PageList/Actions' | ||
import ColumnsMixin from '../mixins/columns' | ||
import SingleActionsMixin from '../mixins/singleActions' | ||
export default { | ||
name: 'DiskRecoverySidePage', | ||
components: { | ||
Actions, | ||
}, | ||
mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin], | ||
data () { | ||
return { | ||
detailTabs: [ | ||
{ label: this.$t('compute.text_240'), key: 'event-drawer' }, | ||
], | ||
} | ||
}, | ||
computed: { | ||
getParams () { | ||
return {} | ||
}, | ||
listId () { | ||
switch (this.params.windowData.currentTab) { | ||
case 'event-drawer': | ||
return 'EventListForDiskRecoverySidePage' | ||
default: | ||
return '' | ||
} | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
containers/Compute/views/image-recovery/sidepage/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<base-side-page | ||
@cancel="cancelSidePage" | ||
:title="$t('compute.text_97')" | ||
icon="res-image" | ||
:res-name="detailData.name" | ||
:current-tab="params.windowData.currentTab" | ||
:tabs="detailTabs" | ||
:loaded="loaded" | ||
@tab-change="handleTabChange"> | ||
<template v-slot:actions> | ||
<actions :options="singleActions" :row="detailData" button-type="link" button-size="small" /> | ||
</template> | ||
<component | ||
:is="params.windowData.currentTab" | ||
:res-id="data.id" | ||
:id="listId" | ||
:data="detailData" | ||
:on-manager="onManager" | ||
:getParams="getParams" | ||
:cloudEnv="cloudEnvData" | ||
@tab-change="handleTabChange" /> | ||
</base-side-page> | ||
</template> | ||
|
||
<script> | ||
import SidePageMixin from '@/mixins/sidePage' | ||
import WindowsMixin from '@/mixins/windows' | ||
import Actions from '@/components/PageList/Actions' | ||
import ColumnsMixin from '../mixins/columns' | ||
import SingleActionsMixin from '../mixins/singleActions' | ||
export default { | ||
name: 'ImageRecoverySidePage', | ||
components: { | ||
Actions, | ||
}, | ||
mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin], | ||
data () { | ||
return { | ||
detailTabs: [ | ||
{ label: this.$t('compute.text_240'), key: 'event-drawer' }, | ||
], | ||
} | ||
}, | ||
computed: { | ||
getParams () { | ||
return {} | ||
}, | ||
listId () { | ||
switch (this.params.windowData.currentTab) { | ||
case 'event-drawer': | ||
return 'EventListForImageRecoverySidePage' | ||
default: | ||
return '' | ||
} | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
containers/Compute/views/server-recovery/mixins/columns.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
containers/Compute/views/server-recovery/sidepage/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<base-side-page | ||
@cancel="cancelSidePage" | ||
:title="$t('compute.text_91')" | ||
icon="res-vminstance" | ||
:res-name="detailData.name" | ||
:current-tab="params.windowData.currentTab" | ||
:tabs="detailTabs" | ||
:loaded="loaded" | ||
@tab-change="handleTabChange"> | ||
<template v-slot:actions> | ||
<actions :options="singleActions" :row="detailData" button-type="link" button-size="small" /> | ||
</template> | ||
<component | ||
:is="params.windowData.currentTab" | ||
:res-id="data.id" | ||
:id="listId" | ||
:data="detailData" | ||
:on-manager="onManager" | ||
:getParams="getParams" | ||
:cloudEnv="cloudEnvData" | ||
@tab-change="handleTabChange" /> | ||
</base-side-page> | ||
</template> | ||
|
||
<script> | ||
import SidePageMixin from '@/mixins/sidePage' | ||
import WindowsMixin from '@/mixins/windows' | ||
import Actions from '@/components/PageList/Actions' | ||
import ColumnsMixin from '../mixins/columns' | ||
import SingleActionsMixin from '../mixins/singleActions' | ||
export default { | ||
name: 'VminstanceRecoverySidePage', | ||
components: { | ||
Actions, | ||
}, | ||
mixins: [SidePageMixin, WindowsMixin, ColumnsMixin, SingleActionsMixin], | ||
data () { | ||
return { | ||
detailTabs: [ | ||
{ label: this.$t('compute.text_240'), key: 'event-drawer' }, | ||
], | ||
} | ||
}, | ||
computed: { | ||
getParams () { | ||
return {} | ||
}, | ||
listId () { | ||
switch (this.params.windowData.currentTab) { | ||
case 'event-drawer': | ||
return 'EventListForVminstanceRecoverySidePage' | ||
default: | ||
return '' | ||
} | ||
}, | ||
}, | ||
} | ||
</script> |