mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 15:11:16 +00:00
feat: 解决冲突
This commit is contained in:
commit
5bf3f726e8
@ -238,7 +238,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostCreate'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.add_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
},
|
||||
@ -249,7 +249,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostDetail'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.view_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
},
|
||||
@ -260,7 +260,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostUpdate'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.change_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
}
|
||||
|
@ -83,6 +83,10 @@ export const setAutomations = (vm) => {
|
||||
initial['ansible_enabled'] = automation['ansible_enabled']
|
||||
initial['ansible_config'] = JSON.stringify(automation['ansible_config'])
|
||||
|
||||
if (initial['ansible_enabled'] === false) {
|
||||
_.set(autoFieldsMeta, `ansible_enabled.el.disabled`, true)
|
||||
}
|
||||
|
||||
for (const item of autoFields) {
|
||||
const itemEnabledKey = item + '_enabled'
|
||||
const itemMethodKey = item + '_method'
|
||||
|
@ -57,6 +57,11 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.dom {
|
||||
white-space: initial;
|
||||
.el-tag {
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -96,10 +96,6 @@ export default {
|
||||
value: this.object.protocols.map(i => i.name).join(',')
|
||||
},
|
||||
'public_ip', 'admin_user_display',
|
||||
{
|
||||
key: this.$t('assets.Domain'),
|
||||
value: this.object.domain?.name || ''
|
||||
},
|
||||
'vendor', 'model', 'cpu_model', 'memory', 'disk_info',
|
||||
{
|
||||
key: this.$t('assets.Platform'),
|
||||
|
@ -54,11 +54,12 @@ export default {
|
||||
],
|
||||
hasRightSide: true,
|
||||
actions: {
|
||||
canDelete: this.$hasPerm('terminal.delete_applethost'),
|
||||
canUpdate: this.$hasPerm('terminal.change_applethost'),
|
||||
deleteSuccessRoute: 'Applets',
|
||||
updateCallback: () => {
|
||||
const category = this.host.category.value || 'host'
|
||||
const routerName = _.capitalize(category) + 'Update'
|
||||
this.$router.push({
|
||||
name: routerName,
|
||||
name: 'Applets',
|
||||
params: { id: this.$route.params.id },
|
||||
query: { platform: this.host.platform.id }
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user