mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修改测试产生的bugs (#596)
* fix: 修改创建录像存储的条件为必填 * fix: 修改最后一次执行的log类型为Ansible * fix: 修复批量测试资产可连接性的权限问题 Co-authored-by: Orange <orangemtony@gmail.com>
This commit is contained in:
@@ -111,7 +111,7 @@ export default {
|
||||
title: this.$t('assets.TestAssetsConnective'),
|
||||
name: 'TestSelected',
|
||||
can({ selectedRows }) {
|
||||
return selectedRows.length > 0 && vm.object.auto_push
|
||||
return selectedRows.length > 0
|
||||
},
|
||||
callback: this.bulkTestCallback.bind(this)
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ export default {
|
||||
value: this.object.latest_execution.id,
|
||||
formatter: function(row, value) {
|
||||
const onClick = function() {
|
||||
window.open(`/#/ops/celery/task/${value}/log/`, '', 'width=900,height=600')
|
||||
window.open(`/#/ops/task/task/${value}/log/?type=ansible`, '', 'width=900,height=600')
|
||||
}
|
||||
const title = this.$t('common.View')
|
||||
return <a onClick={onClick} >{ title }</a>
|
||||
|
||||
@@ -56,7 +56,8 @@ export default {
|
||||
rules: [Required]
|
||||
},
|
||||
bucket: {
|
||||
label: this.$t('sessions.bucket')
|
||||
label: this.$t('sessions.bucket'),
|
||||
rules: [Required]
|
||||
},
|
||||
access_key: {
|
||||
label: 'Access key',
|
||||
@@ -68,10 +69,12 @@ export default {
|
||||
},
|
||||
endpoint: {
|
||||
label: this.$t('sessions.endPoint'),
|
||||
helpText: storageTypeMeta.endpointHelpText
|
||||
helpText: storageTypeMeta.endpointHelpText,
|
||||
rules: [Required]
|
||||
},
|
||||
region: {
|
||||
label: this.$t('sessions.region')
|
||||
label: this.$t('sessions.region'),
|
||||
rules: [Required]
|
||||
},
|
||||
protocol: {
|
||||
label: this.$t('sessions.protocol'),
|
||||
@@ -83,13 +86,16 @@ export default {
|
||||
rules: [Required]
|
||||
},
|
||||
container_name: {
|
||||
label: this.$t('sessions.containerName')
|
||||
label: this.$t('sessions.containerName'),
|
||||
rules: [Required]
|
||||
},
|
||||
account_name: {
|
||||
label: this.$t('sessions.accountName')
|
||||
label: this.$t('sessions.accountName'),
|
||||
rules: [Required]
|
||||
},
|
||||
account_key: {
|
||||
label: this.$t('sessions.accountKey')
|
||||
label: this.$t('sessions.accountKey'),
|
||||
rules: [Required]
|
||||
},
|
||||
endpoint_suffix: {
|
||||
label: this.$t('sessions.endpointSuffix'),
|
||||
|
||||
Reference in New Issue
Block a user