Merge pull request #1668 from jumpserver/dev

v2.21.0-rc4
This commit is contained in:
Jiangjie.Bai
2022-04-18 15:34:13 +08:00
committed by GitHub
4 changed files with 12 additions and 8 deletions

View File

@@ -5,7 +5,8 @@
:width="iWidth" :width="iWidth"
class="dialog" class="dialog"
v-bind="$attrs" v-bind="$attrs"
append-to-body :append-to-body="false"
:modal-append-to-body="false"
v-on="$listeners" v-on="$listeners"
> >
<slot /> <slot />

View File

@@ -92,11 +92,11 @@ export default {
return this.selectedRows.length > 0 return this.selectedRows.length > 0
}, },
tableQuery() { tableQuery() {
const listTableRef = this.$parent.$parent.$parent.$parent const listTableRef = this.$parent?.$parent?.$parent?.$parent
if (!listTableRef) { if (!listTableRef) {
return {} return {}
} }
const query = listTableRef.dataTable.getQuery() const query = listTableRef?.dataTable?.getQuery() || {}
delete query['limit'] delete query['limit']
delete query['offset'] delete query['offset']
delete query['date_from'] delete query['date_from']
@@ -199,8 +199,11 @@ export default {
this.mfaDialogShow = false this.mfaDialogShow = false
}, },
handleExportCancel() { handleExportCancel() {
this.exportDialogShow = false const vm = this
this.mfaDialogShow = false setTimeout(() => {
vm.exportDialogShow = false
vm.mfaDialogShow = false
}, 100)
} }
} }
} }

View File

@@ -8,7 +8,7 @@
</PageHeading> </PageHeading>
<PageContent> <PageContent>
<el-alert v-if="helpMessage" type="success"> <el-alert v-if="helpMessage" type="success">
<span class="announcement-main">{{ helpMessage }}</span> <span class="announcement-main" v-html="helpMessage" />
</el-alert> </el-alert>
<slot /> <slot />
</PageContent> </PageContent>

View File

@@ -92,14 +92,14 @@ export default {
hasTree: true, hasTree: true,
columns: [ columns: [
'hostname', 'ip', 'public_ip', 'admin_user_display', 'hostname', 'ip', 'public_ip', 'admin_user_display',
'protocols', 'category', 'type', 'platform', 'sn', 'is_active', 'protocols', 'platform', 'sn', 'is_active',
'connectivity', 'labels_display', 'connectivity', 'labels_display',
'created_by', 'date_created', 'comment', 'org_name', 'actions' 'created_by', 'date_created', 'comment', 'org_name', 'actions'
], ],
columnsShow: { columnsShow: {
min: ['hostname', 'ip', 'actions'], min: ['hostname', 'ip', 'actions'],
default: [ default: [
'hostname', 'ip', 'platform', 'category', 'type', 'hostname', 'ip', 'platform',
'connectivity', 'actions' 'connectivity', 'actions'
] ]
}, },