mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 23:17:46 +00:00
[Update] 更新按钮
This commit is contained in:
@@ -233,6 +233,7 @@ const cn = {
|
|||||||
'gateway': '网关',
|
'gateway': '网关',
|
||||||
'date_created': '创建日期',
|
'date_created': '创建日期',
|
||||||
'port': '端口',
|
'port': '端口',
|
||||||
|
'TestConnection': '测试连接',
|
||||||
// 管理用户
|
// 管理用户
|
||||||
'AdminUserList': '管理用户列表',
|
'AdminUserList': '管理用户列表',
|
||||||
'AdminUserDetail': '管理用户详情',
|
'AdminUserDetail': '管理用户详情',
|
||||||
@@ -368,7 +369,8 @@ const cn = {
|
|||||||
'date': '日期',
|
'date': '日期',
|
||||||
'addr': '地址',
|
'addr': '地址',
|
||||||
'active': '激活中',
|
'active': '激活中',
|
||||||
'alive': '在线'
|
'alive': '在线',
|
||||||
|
'StorageConfiguration': '存储配置'
|
||||||
},
|
},
|
||||||
jobcenter: {
|
jobcenter: {
|
||||||
'RunTimes': '执行次数',
|
'RunTimes': '执行次数',
|
||||||
|
@@ -51,31 +51,7 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tableActions: {
|
tableActions: {
|
||||||
@@ -84,8 +60,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'DatabaseAppCreate'
|
createRoute: 'DatabaseAppCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -39,41 +39,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'RemoteAppCreate'
|
createRoute: 'RemoteAppCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -40,41 +40,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'AdminUserCreate'
|
createRoute: 'AdminUserCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -39,41 +39,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'CommandFilterCreate'
|
createRoute: 'CommandFilterCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -41,41 +41,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'DomainCreate'
|
createRoute: 'DomainCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -51,46 +51,22 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
actions: {
|
actions: {
|
||||||
hasUpdate: (row, cellValue) => {
|
updateRoute: 'UserUpdate',
|
||||||
return true
|
extraActions: [
|
||||||
},
|
{
|
||||||
canUpdate: (row, cellValue) => {
|
name: 'TestConnection',
|
||||||
console.log('On table update')
|
title: this.$t('assets.TestConnection')
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
]
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
createRoute: 'GatewayCreate'
|
||||||
createRoute: 'DomainCreate'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
created() {
|
|
||||||
console.log('111111')
|
|
||||||
console.log('/api/v1/assets/gateways/?domain=' + this.$route.params.id)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -35,41 +35,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'LabelCreate'
|
createRoute: 'LabelCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -36,41 +36,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'PlatformCreate'
|
createRoute: 'PlatformCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -51,41 +51,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'SystemUserCreate'
|
createRoute: 'SystemUserCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -48,41 +48,16 @@ export default {
|
|||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
actions: {
|
actions: [
|
||||||
hasUpdate: (row, cellValue) => {
|
]
|
||||||
return false
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return false
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
// 写路由名字,table组件会自动传作为参数
|
hasEdit: false,
|
||||||
tableActions: {
|
hasDelete: false
|
||||||
editRoute: '404'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasCreate: false,
|
||||||
hasUpdate: false,
|
hasBulkDelete: false,
|
||||||
hasCreate: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -49,41 +49,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'DatabaseAppPermissionCreate'
|
createRoute: 'DatabaseAppPermissionCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -49,41 +49,12 @@ export default {
|
|||||||
prop: 'id',
|
prop: 'id',
|
||||||
label: this.$tc('Action'),
|
label: this.$tc('Action'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter
|
||||||
actions: {
|
|
||||||
hasUpdate: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
canUpdate: (row, cellValue) => {
|
|
||||||
console.log('On table update')
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
hasDelete: true,
|
|
||||||
canDelete: (row, cellValue) => {
|
|
||||||
return true
|
|
||||||
},
|
|
||||||
onDelete: (row, cellValue) => {
|
|
||||||
this.$confirm('你好啊', '提示', {
|
|
||||||
type: 'warning',
|
|
||||||
confirmButtonClass: 'el-button--danger',
|
|
||||||
beforeClose: async(action, instance, done) => {
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
|
||||||
/* 取消*/
|
|
||||||
})
|
|
||||||
},
|
|
||||||
order: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
tableActions: {
|
|
||||||
hasEdit: true,
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false,
|
|
||||||
createRoute: 'RemoteAppPermissionCreate'
|
createRoute: 'RemoteAppPermissionCreate'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -68,8 +68,7 @@ export default {
|
|||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasCreate: false,
|
hasCreate: false,
|
||||||
hasDelete: false,
|
hasBulkDelete: false
|
||||||
hasUpdate: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GenericListPage } from '@/layout/components'
|
import { GenericListPage } from '@/layout/components'
|
||||||
|
import { ActionsFormatter } from '@/components/ListTable/formatters/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -66,34 +67,22 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'duration',
|
prop: 'duration',
|
||||||
label: this.$t('sessions.duration')
|
label: this.$t('sessions.duration')
|
||||||
}
|
},
|
||||||
],
|
{
|
||||||
tableActions: {
|
prop: 'id',
|
||||||
|
label: this.$tc('Action'),
|
||||||
|
align: 'center',
|
||||||
|
formatter: ActionsFormatter,
|
||||||
|
actions: {
|
||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
hasDelete: false
|
hasDelete: false
|
||||||
},
|
|
||||||
extraButtons: [
|
|
||||||
{
|
|
||||||
type: 'warning',
|
|
||||||
text: this.$t('sessions.replay'),
|
|
||||||
// 必须使用箭头函数
|
|
||||||
atClick: (row) => {
|
|
||||||
this.$router.push({ name: '404' })
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'primary',
|
|
||||||
text: this.$t('sessions.download'),
|
|
||||||
atClick: (row) => {
|
|
||||||
this.$router.push({ name: '404' })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasCreate: false,
|
hasCreate: false,
|
||||||
hasDelete: false,
|
hasBulkDelete: false
|
||||||
hasUpdate: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GenericListPage } from '@/layout/components'
|
import { GenericListPage } from '@/layout/components'
|
||||||
|
import { ActionsFormatter } from '@/components/ListTable/formatters/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -66,27 +67,22 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'duration',
|
prop: 'duration',
|
||||||
label: this.$t('sessions.duration')
|
label: this.$t('sessions.duration')
|
||||||
}
|
},
|
||||||
],
|
{
|
||||||
tableActions: {
|
prop: 'id',
|
||||||
|
label: this.$tc('Action'),
|
||||||
|
align: 'center',
|
||||||
|
formatter: ActionsFormatter,
|
||||||
|
actions: {
|
||||||
hasEdit: false,
|
hasEdit: false,
|
||||||
hasDelete: false
|
hasDelete: false
|
||||||
},
|
|
||||||
extraButtons: [
|
|
||||||
{
|
|
||||||
type: 'danger',
|
|
||||||
text: this.$t('sessions.terminate'),
|
|
||||||
// 必须使用箭头函数
|
|
||||||
atClick: (row) => {
|
|
||||||
this.$router.push({ name: '404' })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasCreate: false,
|
hasCreate: false,
|
||||||
hasDelete: false,
|
hasBulkDelete: false
|
||||||
hasUpdate: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -55,10 +55,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasCreate: true,
|
hasCreate: false,
|
||||||
hasDelete: false,
|
hasBulkDelete: false,
|
||||||
hasUpdate: false
|
extraActions: [
|
||||||
|
{
|
||||||
|
name: 'StorageConfiguration',
|
||||||
|
title: this.$t('sessions.StorageConfiguration'),
|
||||||
|
type: 'primary',
|
||||||
|
has: true,
|
||||||
|
can: true,
|
||||||
|
callback: this.handleStorageConfiguration
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleStorageConfiguration() {
|
||||||
|
console.log('handleStorageConfiguration')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -57,16 +57,11 @@ export default {
|
|||||||
label: this.$t('tickets.date'),
|
label: this.$t('tickets.date'),
|
||||||
sortable: 'custom'
|
sortable: 'custom'
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
// 写路由名字,table组件会自动传作为参数
|
|
||||||
tableActions: {
|
|
||||||
editRoute: '404'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
headerActions: {
|
headerActions: {
|
||||||
hasDelete: false,
|
hasCreate: false,
|
||||||
hasUpdate: false,
|
hasBulkDelete: false,
|
||||||
hasCreate: false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user