mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
fix: 修改连接令牌 is_valid 字段
This commit is contained in:
committed by
Jiangjie.Bai
parent
e80499b7b4
commit
6c5f991494
@@ -25,14 +25,14 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
'id', 'type_display',
|
'id', 'type_display',
|
||||||
'user_display', 'system_user_display', 'asset_display', 'application_display',
|
'user_display', 'system_user_display', 'asset_display', 'application_display',
|
||||||
'date_expired', 'validity',
|
'date_expired', 'is_valid',
|
||||||
'date_created', 'created_by', 'org_name',
|
'date_created', 'created_by', 'org_name',
|
||||||
'actions'
|
'actions'
|
||||||
],
|
],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['id', 'actions'],
|
min: ['id', 'actions'],
|
||||||
default: [
|
default: [
|
||||||
'id', 'type_display', 'date_expired', 'validity', 'actions'
|
'id', 'type_display', 'date_expired', 'is_valid', 'actions'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
@@ -51,7 +51,7 @@ export default {
|
|||||||
name: 'Expired',
|
name: 'Expired',
|
||||||
title: this.$t('setting.Expire'),
|
title: this.$t('setting.Expire'),
|
||||||
type: 'info',
|
type: 'info',
|
||||||
can: ({ row }) => row.validity,
|
can: ({ row }) => row['is_valid'],
|
||||||
callback: function({ row }) {
|
callback: function({ row }) {
|
||||||
this.$axios.patch(`${ajaxUrl}${row.id}/expire/`,
|
this.$axios.patch(`${ajaxUrl}${row.id}/expire/`,
|
||||||
).then(res => {
|
).then(res => {
|
||||||
|
Reference in New Issue
Block a user