mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 06:58:01 +00:00
perf: connect ad account
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/img/icons/windows_ad.png
Normal file
BIN
src/assets/img/icons/windows_ad.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
@@ -147,11 +147,6 @@ export default {
|
|||||||
showActions: {
|
showActions: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
|
||||||
// target for ad connect btn, if not has, ad account should be select one
|
|
||||||
target: {
|
|
||||||
type: Object,
|
|
||||||
default: null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -194,6 +189,14 @@ export default {
|
|||||||
name: 'AccountDetail',
|
name: 'AccountDetail',
|
||||||
params: { id: row.id }
|
params: { id: row.id }
|
||||||
}),
|
}),
|
||||||
|
getTitle: ({ row }) => {
|
||||||
|
let title = row.name
|
||||||
|
if (row.ds_id && this.asset && this.asset.id !== row.asset.id) {
|
||||||
|
const dsID = row.ds_id.split('-')[0]
|
||||||
|
title = `${row.name}@${dsID}`
|
||||||
|
}
|
||||||
|
return title
|
||||||
|
},
|
||||||
getDrawerTitle({ row }) {
|
getDrawerTitle({ row }) {
|
||||||
return `${row.username}@${row.asset.name}`
|
return `${row.username}@${row.asset.name}`
|
||||||
}
|
}
|
||||||
@@ -213,12 +216,14 @@ export default {
|
|||||||
width: '80px',
|
width: '80px',
|
||||||
formatter: AccountConnectFormatter,
|
formatter: AccountConnectFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
can: () => this.currentUserIsSuperAdmin,
|
can: ({ row }) => {
|
||||||
connectUrlTemplate: (row) => {
|
return this.currentUserIsSuperAdmin
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ds_domain: {
|
||||||
|
width: '100px'
|
||||||
|
},
|
||||||
platform: {
|
platform: {
|
||||||
label: this.$t('Platform'),
|
label: this.$t('Platform'),
|
||||||
width: '150px',
|
width: '150px',
|
||||||
@@ -228,6 +233,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
asset: {
|
asset: {
|
||||||
|
minWidth: '100px',
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
return row.asset.name
|
return row.asset.name
|
||||||
}
|
}
|
||||||
@@ -235,8 +241,8 @@ export default {
|
|||||||
username: {
|
username: {
|
||||||
minWidth: '60px',
|
minWidth: '60px',
|
||||||
formatter: function(row) {
|
formatter: function(row) {
|
||||||
if (row.ad_domain) {
|
if (row.ds_domain) {
|
||||||
return `${row.username}@${row.ad_domain}`
|
return `${row.username}@${row.ds_domain}`
|
||||||
} else {
|
} else {
|
||||||
return row.username
|
return row.username
|
||||||
}
|
}
|
||||||
|
@@ -80,7 +80,7 @@ export default {
|
|||||||
return this.formatterArgs.buttonIcon
|
return this.formatterArgs.buttonIcon
|
||||||
},
|
},
|
||||||
hasPerm() {
|
hasPerm() {
|
||||||
return this.formatterArgs.can(this.row, this.cellValue)
|
return this.formatterArgs.can({ row: this.row, cellValue: this.cellValue })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@@ -45,7 +45,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style lang="scss" scoped>
|
||||||
.platform-td {
|
.platform-td {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
@@ -55,6 +55,7 @@ export default {
|
|||||||
.icon-zone {
|
.icon-zone {
|
||||||
width: 1.5em;
|
width: 1.5em;
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
.asset-icon {
|
.asset-icon {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -66,6 +67,10 @@ export default {
|
|||||||
|
|
||||||
.platform-name {
|
.platform-name {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
:has-import="false"
|
:has-import="false"
|
||||||
:has-left-actions="true"
|
:has-left-actions="true"
|
||||||
:header-extra-actions="headerExtraActions"
|
:header-extra-actions="headerExtraActions"
|
||||||
|
:target="object"
|
||||||
:url="iUrl"
|
:url="iUrl"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
/>
|
/>
|
||||||
|
@@ -57,7 +57,7 @@ export default {
|
|||||||
component: () => import('@/views/assets/Asset/AssetList/WebList.vue')
|
component: () => import('@/views/assets/Asset/AssetList/WebList.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa-vcard-o',
|
icon: 'fa-id-card-o',
|
||||||
name: 'ds',
|
name: 'ds',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
component: () => import('@/views/assets/Asset/AssetList/DSList.vue')
|
component: () => import('@/views/assets/Asset/AssetList/DSList.vue')
|
||||||
|
Reference in New Issue
Block a user