Merge pull request #435 from jumpserver/dev

chore: Merge Dev to Master
This commit is contained in:
老广
2020-10-14 07:51:05 -05:00
committed by GitHub
6 changed files with 12 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
</td>
</tr>
</template>
<tr v-if="params.hasMore" class="item">
<tr v-if="params.hasMore && showHasMore" class="item">
<td colspan="2">
<el-button :type="type" size="small" style="width: 100%" @click="loadMore">
<i class="fa fa-arrow-down" />
@@ -83,6 +83,10 @@ export default {
type: [Array, Number, String],
default: () => []
},
showHasMore: {
type: Boolean,
default: true
},
performDelete: {
type: Function,
default: (obj, that) => {}

View File

@@ -1,7 +1,7 @@
<template>
<div>
<!-- <el-link class="el-link" target="_blank" @click="goToTickets">{{ $t('route.Ticket') }}</el-link>-->
<el-badge v-if="getBadgeValue() !== 0" :value="getBadgeValue()" size="mini" type="primary">
<el-badge :value="getBadgeValue()" size="mini" type="primary">
<el-link class="el-link" target="_blank" @click="goToTickets">{{ $t('route.Ticket') }}</el-link>
</el-badge>
</div>

View File

@@ -72,6 +72,7 @@ export default [
{
path: '/tickets',
component: Layout,
hidden: true,
meta: {
title: i18n.t('route.Tickets'),
icon: 'history',

View File

@@ -107,6 +107,9 @@ export default {
name: 'connect',
fa: 'fa-terminal',
type: 'primary',
can: (row, cellValue) => {
return row.is_active
},
callback: function({ row, col, cellValue, reload }) {
window.open(`/luna/?login_to=${cellValue}`, '_blank')
}

View File

@@ -88,7 +88,7 @@ export default {
{
name: this.$t('users.InviteUser'),
title: this.$t('users.InviteUser'),
can:
has:
(JSON.parse(this.$cookie.get('jms_current_org'))
? JSON.parse(this.$cookie.get('jms_current_org')).id
: '') !== 'DEFAULT',

View File

@@ -86,6 +86,7 @@ export default {
memberRelationConfig: {
icon: 'fa-user',
title: this.$t('xpack.Organization.AddOrgMembers'),
showHasMore: false,
objectsAjax: {
url: '/api/v1/users/users/?fields_size=mini&order=name&all=1',
transformOption: (item) => {