mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 16:32:28 +00:00
perf: i18n bai
This commit is contained in:
@@ -249,6 +249,9 @@ export default {
|
||||
path: '/workbench/system-tools',
|
||||
name: 'SystemTools',
|
||||
component: () => import('@/views/settings/Tool'),
|
||||
hidden: () => {
|
||||
return !store.getters.publicSettings['TOOL_USER_ENABLED']
|
||||
},
|
||||
meta: {
|
||||
title: i18n.t('SystemTools'),
|
||||
icon: 'tools',
|
||||
|
@@ -38,7 +38,7 @@ export default {
|
||||
getSubmenu() {
|
||||
return [
|
||||
{
|
||||
title: this.$t('GenericSetting'),
|
||||
title: this.$t('General'),
|
||||
name: 'Lina'
|
||||
},
|
||||
{
|
||||
|
36
src/views/settings/Tool/Basic.vue
Normal file
36
src/views/settings/Tool/Basic.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<IBox>
|
||||
<GenericCreateUpdateForm
|
||||
:has-detail-in-msg="false"
|
||||
:submit-method="submitMethod"
|
||||
v-bind="$data"
|
||||
/>
|
||||
</IBox>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IBox } from '@/components'
|
||||
import GenericCreateUpdateForm from '@/layout/components/GenericCreateUpdateForm/index.vue'
|
||||
|
||||
export default {
|
||||
name: 'Basic',
|
||||
components: {
|
||||
GenericCreateUpdateForm,
|
||||
IBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
fields: ['TOOL_USER_ENABLED'],
|
||||
url: '/api/v1/settings/setting/?category=tool'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitMethod() {
|
||||
return 'patch'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
@@ -18,6 +18,7 @@ import Telnet from './Telnet'
|
||||
import Nmap from './Nmap'
|
||||
import Tcpdump from './Tcpdump'
|
||||
import Traceroute from './Traceroute'
|
||||
import Basic from './Basic'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -26,15 +27,20 @@ export default {
|
||||
Telnet,
|
||||
Nmap,
|
||||
Tcpdump,
|
||||
Traceroute
|
||||
Traceroute,
|
||||
Basic
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
timer: null,
|
||||
currentTime: '',
|
||||
loading: true,
|
||||
activeMenu: 'Ping',
|
||||
activeMenu: 'Basic',
|
||||
submenu: [
|
||||
{
|
||||
title: this.$t('Basic'),
|
||||
name: 'Basic'
|
||||
},
|
||||
{
|
||||
title: 'Ping',
|
||||
name: 'Ping'
|
||||
|
Reference in New Issue
Block a user