mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复LDAP显示隐藏问题
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<Dialog
|
||||
:title="$t('setting.importLdapUserTitle')"
|
||||
:visible.sync="show"
|
||||
v-bind="$attrs"
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
v-on="$listeners"
|
||||
>
|
||||
<el-alert type="success"> {{ $t('setting.importLdapUserTip') }}</el-alert>
|
||||
<ListTable
|
||||
@@ -30,15 +32,9 @@ export default {
|
||||
ListTable,
|
||||
Dialog
|
||||
},
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialogLdapUserImportLoginStatus: true,
|
||||
dialogLdapUserImportLoginStatus: false,
|
||||
headerActions: {
|
||||
hasCreate: false,
|
||||
hasBulkDelete: false,
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<template>
|
||||
<Dialog
|
||||
:visible.sync="show"
|
||||
v-bind="$attrs"
|
||||
:title="$t('setting.testLdapLoginTitle') "
|
||||
:destroy-on-close="true"
|
||||
:loading-status="testLdapLoginStatus"
|
||||
:show-cancel="false"
|
||||
v-on="$listeners"
|
||||
@confirm="testUserLoginClick()"
|
||||
@cancel="dialogVisible = false"
|
||||
>
|
||||
<el-form
|
||||
:model="userLoginForm"
|
||||
@@ -32,13 +33,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Dialog from '@/components/Dialog'
|
||||
import { testLdapUserLogin } from '@/api/settings'
|
||||
|
||||
export default {
|
||||
name: 'TestLoginDialog',
|
||||
components: {
|
||||
Dialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
testLdapLoginStatus: false,
|
||||
userLoginForm: {
|
||||
username: '',
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
:after-get-form-value="changeFormValue"
|
||||
:clean-form-value="cleanFormValue"
|
||||
/>
|
||||
<ImportDialog :show.sync="dialogLdapUserImport" />
|
||||
<TestLoginDialog :show.sync="dialogTest" />
|
||||
<ImportDialog :visible.sync="dialogLdapUserImport" />
|
||||
<TestLoginDialog :visible.sync="dialogTest" />
|
||||
</IBox>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user