mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-22 08:08:39 +00:00
fix: 移除多余的clone (#673)
* fix: 移除多余的clone * fix: 移除多余的clone * fix: 移除多余的更多操作 * fix: 移除多余的更多操作 Co-authored-by: Orange <orangemtony@gmail.com>
This commit is contained in:
@@ -50,6 +50,7 @@ export default {
|
|||||||
headerActions: {
|
headerActions: {
|
||||||
hasSearch: true,
|
hasSearch: true,
|
||||||
hasBulkDelete: false,
|
hasBulkDelete: false,
|
||||||
|
hasMoreActions: false,
|
||||||
createRoute: {
|
createRoute: {
|
||||||
name: 'CommandFilterRulesCreate',
|
name: 'CommandFilterRulesCreate',
|
||||||
query: {
|
query: {
|
||||||
|
@@ -25,7 +25,6 @@ export default {
|
|||||||
initial: {
|
initial: {
|
||||||
filter: filterId,
|
filter: filterId,
|
||||||
type: 'regex',
|
type: 'regex',
|
||||||
priority: 50,
|
|
||||||
action: 0
|
action: 0
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
@@ -66,7 +65,7 @@ export default {
|
|||||||
},
|
},
|
||||||
priority: {
|
priority: {
|
||||||
// helpText: '优先级可选范围为1-100,1最低优先级,100最高优先级'
|
// helpText: '优先级可选范围为1-100,1最低优先级,100最高优先级'
|
||||||
helpText: this.$t('assets.CommandFilterRulePriorityHelpText')
|
// helpText: this.$t('assets.CommandFilterRulePriorityHelpText')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getNextRoute(res, method) {
|
getNextRoute(res, method) {
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<AssetUserTable ref="ListTable" :url="assetUserUrl" :has-import="false" />
|
<AssetUserTable ref="ListTable" :url="assetUserUrl" :has-import="false" :has-clone="false" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8" />
|
<el-col :span="8" />
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@@ -57,6 +57,7 @@ export default {
|
|||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasUpdate: false, // can set function(row, value)
|
hasUpdate: false, // can set function(row, value)
|
||||||
hasDelete: false, // can set function(row, value)
|
hasDelete: false, // can set function(row, value)
|
||||||
|
hasClone: false,
|
||||||
moreActionsTitle: this.$t('common.More'),
|
moreActionsTitle: this.$t('common.More'),
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
|
@@ -74,6 +74,7 @@ export default {
|
|||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
|
hasClone: false,
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'detail',
|
name: 'detail',
|
||||||
|
@@ -86,6 +86,7 @@ export default {
|
|||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
|
hasClone: false,
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'detail',
|
name: 'detail',
|
||||||
|
@@ -72,6 +72,7 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
|
hasClone: false,
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'run',
|
name: 'run',
|
||||||
|
@@ -101,6 +101,7 @@ export default {
|
|||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
|
hasClone: false,
|
||||||
hasDelete: false,
|
hasDelete: false,
|
||||||
hasUpdate: false,
|
hasUpdate: false,
|
||||||
extraActions: this.extraActions
|
extraActions: this.extraActions
|
||||||
|
@@ -138,6 +138,11 @@ export default {
|
|||||||
session_online: {
|
session_online: {
|
||||||
label: this.$t('sessions.session'),
|
label: this.$t('sessions.session'),
|
||||||
width: '80px'
|
width: '80px'
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
formatterArgs: {
|
||||||
|
hasClone: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -35,6 +35,7 @@ export default {
|
|||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
updateRoute: 'AccountUpdate',
|
updateRoute: 'AccountUpdate',
|
||||||
|
hasClone: false,
|
||||||
onUpdate: ({ row, col }) => {
|
onUpdate: ({ row, col }) => {
|
||||||
vm.$router.push({ name: 'AccountUpdate', params: { id: row.id }, query: { provider: row.provider }})
|
vm.$router.push({ name: 'AccountUpdate', params: { id: row.id }, query: { provider: row.provider }})
|
||||||
},
|
},
|
||||||
|
@@ -61,6 +61,7 @@ export default {
|
|||||||
hasUpdate: false, // can set function(row, value)
|
hasUpdate: false, // can set function(row, value)
|
||||||
hasDelete: false, // can set function(row, value)
|
hasDelete: false, // can set function(row, value)
|
||||||
moreActionsTitle: this.$t('xpack.Cloud.Log'),
|
moreActionsTitle: this.$t('xpack.Cloud.Log'),
|
||||||
|
hasClone: false,
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'View',
|
name: 'View',
|
||||||
|
@@ -29,6 +29,7 @@ export default {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
hasClone: false,
|
||||||
onUpdate: ({ row }) => {
|
onUpdate: ({ row }) => {
|
||||||
this.$router.push({ name: 'SyncInstanceTaskUpdate', params: { id: row.id }})
|
this.$router.push({ name: 'SyncInstanceTaskUpdate', params: { id: row.id }})
|
||||||
},
|
},
|
||||||
|
@@ -34,6 +34,7 @@ export default {
|
|||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
updateRoute: 'GatherUserTaskUpdate',
|
updateRoute: 'GatherUserTaskUpdate',
|
||||||
|
hasClone: false,
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
title: vm.$t('xpack.Execute'),
|
title: vm.$t('xpack.Execute'),
|
||||||
@@ -59,6 +60,7 @@ export default {
|
|||||||
hasImport: false,
|
hasImport: false,
|
||||||
hasRefresh: false,
|
hasRefresh: false,
|
||||||
hasExport: false,
|
hasExport: false,
|
||||||
|
hasMoreActions: false,
|
||||||
createRoute: 'GatherUserTaskCreate'
|
createRoute: 'GatherUserTaskCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user