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',
|
path: '/workbench/system-tools',
|
||||||
name: 'SystemTools',
|
name: 'SystemTools',
|
||||||
component: () => import('@/views/settings/Tool'),
|
component: () => import('@/views/settings/Tool'),
|
||||||
|
hidden: () => {
|
||||||
|
return !store.getters.publicSettings['TOOL_USER_ENABLED']
|
||||||
|
},
|
||||||
meta: {
|
meta: {
|
||||||
title: i18n.t('SystemTools'),
|
title: i18n.t('SystemTools'),
|
||||||
icon: 'tools',
|
icon: 'tools',
|
||||||
|
@@ -38,7 +38,7 @@ export default {
|
|||||||
getSubmenu() {
|
getSubmenu() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: this.$t('GenericSetting'),
|
title: this.$t('General'),
|
||||||
name: 'Lina'
|
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 Nmap from './Nmap'
|
||||||
import Tcpdump from './Tcpdump'
|
import Tcpdump from './Tcpdump'
|
||||||
import Traceroute from './Traceroute'
|
import Traceroute from './Traceroute'
|
||||||
|
import Basic from './Basic'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -26,15 +27,20 @@ export default {
|
|||||||
Telnet,
|
Telnet,
|
||||||
Nmap,
|
Nmap,
|
||||||
Tcpdump,
|
Tcpdump,
|
||||||
Traceroute
|
Traceroute,
|
||||||
|
Basic
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timer: null,
|
timer: null,
|
||||||
currentTime: '',
|
currentTime: '',
|
||||||
loading: true,
|
loading: true,
|
||||||
activeMenu: 'Ping',
|
activeMenu: 'Basic',
|
||||||
submenu: [
|
submenu: [
|
||||||
|
{
|
||||||
|
title: this.$t('Basic'),
|
||||||
|
name: 'Basic'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'Ping',
|
title: 'Ping',
|
||||||
name: 'Ping'
|
name: 'Ping'
|
||||||
|
Reference in New Issue
Block a user