From 53d9e63c3646edf94d5fca3a8d07182427d4f4a7 Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Wed, 16 Oct 2024 14:12:31 +0800
Subject: [PATCH 1/8] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E9=A6=96=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/locales/en-US.ts | 3 +
src/i18n/locales/zh-CN.ts | 3 +
src/views/index.vue | 460 +-----------------
src/views/neStatus/index.vue | 446 +++++++++++++++++
.../setting/components/change-home-index.vue | 106 ++++
src/views/system/setting/index.vue | 5 +
6 files changed, 589 insertions(+), 434 deletions(-)
create mode 100644 src/views/neStatus/index.vue
create mode 100644 src/views/system/setting/components/change-home-index.vue
diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts
index 0f869e86..85e8a6e6 100644
--- a/src/i18n/locales/en-US.ts
+++ b/src/i18n/locales/en-US.ts
@@ -1782,6 +1782,9 @@ export default {
reset: "System Reset",
resetInstruction: "A system reset will erase all data in the current system, please proceed with caution!!!!",
resetTipContent: 'Are you sure you want to clear all data from the current system and insist on continuing?',
+ homeInstruction:'Set the system home page',
+ home: 'System home page',
+ homeTip:'Do you want to submit the current interface as the system interface?',
},
role:{
allScopeOptions:'All data permissions',
diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts
index a66fb15e..ea105c1b 100644
--- a/src/i18n/locales/zh-CN.ts
+++ b/src/i18n/locales/zh-CN.ts
@@ -1782,6 +1782,9 @@ export default {
reset: "系统重置",
resetInstruction: "系统重置将会清除当前系统内所有数据,请谨慎操作!!!",
resetTipContent: '确认要清除当前系统内所有数据并坚持继续吗?',
+ homeInstruction:'设置系统首页界面',
+ home: '系统首页',
+ homeTip:'确认要提交当前界面为系统界面吗?',
},
role:{
allScopeOptions:'全部数据权限',
diff --git a/src/views/index.vue b/src/views/index.vue
index 283944db..bdd3c73b 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,446 +1,38 @@
-
-
-
-
-
- {{ pronInfo.hostName }}
-
-
- {{ pronInfo.osInfo }}
-
-
-
- {{ pronInfo.ipAddress }}
-
-
-
- {{ pronInfo.version }}
-
-
- {{ pronInfo.cpuUse }}
-
-
- {{ pronInfo.memoryUse }}
-
-
- {{ pronInfo.capability }}
-
-
- {{ pronInfo.serialNum }}
-
-
- {{ pronInfo.expiryDate }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{
- nfInfo.obj
- }}
-
- {{
- nfInfo.version
- }}
- {{
- nfInfo.status
- }}
-
-
- {{
- nfInfo.serialNum
- }}
- {{
- nfInfo.outTimeDate
- }}
-
-
-
-
-
-
+
diff --git a/src/views/neStatus/index.vue b/src/views/neStatus/index.vue
new file mode 100644
index 00000000..c32c5201
--- /dev/null
+++ b/src/views/neStatus/index.vue
@@ -0,0 +1,446 @@
+
+
+
+
+
+
+
+ {{
+ pronInfo.hostName
+ }}
+ {{
+ pronInfo.osInfo
+ }}
+ {{
+ pronInfo.dbInfo
+ }}
+ {{
+ pronInfo.ipAddress
+ }}
+ {{
+ pronInfo.port
+ }}
+ {{
+ pronInfo.version
+ }}
+ {{
+ pronInfo.cpuUse
+ }}
+ {{
+ pronInfo.memoryUse
+ }}
+ {{
+ pronInfo.capability
+ }}
+ {{
+ pronInfo.serialNum
+ }}
+ {{
+ pronInfo.expiryDate
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ nfInfo.obj
+ }}
+
+ {{
+ nfInfo.version
+ }}
+ {{
+ nfInfo.status
+ }}
+
+
+ {{
+ nfInfo.serialNum
+ }}
+ {{
+ nfInfo.outTimeDate
+ }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/setting/components/change-home-index.vue b/src/views/system/setting/components/change-home-index.vue
new file mode 100644
index 00000000..a25fbefe
--- /dev/null
+++ b/src/views/system/setting/components/change-home-index.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+ {{ t('views.system.setting.saveSubmit') }}
+
+
+
+
+
+ {{ t('views.system.setting.homeInstruction') }}
+
+
+
+
+
+
+
diff --git a/src/views/system/setting/index.vue b/src/views/system/setting/index.vue
index 6c241186..8b8de721 100644
--- a/src/views/system/setting/index.vue
+++ b/src/views/system/setting/index.vue
@@ -8,6 +8,7 @@ import ChangeHelpDoc from './components/change-help-doc.vue';
import ChangeOfficialUrl from './components/change-official-url.vue';
import ChangeI18n from './components/change-i18n.vue';
import SystemReset from './components/system-reset.vue';
+import ChangeHome from './components/change-home-index.vue';
import useI18n from '@/hooks/useI18n';
const { t } = useI18n();
@@ -49,6 +50,10 @@ const { t } = useI18n();
+
+ 系统首页设置
+
+
{{ t('views.system.setting.reset') }}
From a67e54ca6e89d0c49e79bc135c7f301ec6600a39 Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Wed, 16 Oct 2024 14:23:32 +0800
Subject: [PATCH 2/8] =?UTF-8?q?=E8=A1=A5=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/locales/en-US.ts | 1 +
src/i18n/locales/zh-CN.ts | 1 +
src/views/index.vue | 4 ++--
src/views/system/setting/components/change-home-index.vue | 6 ++----
src/views/system/setting/index.vue | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts
index 85e8a6e6..4f03752d 100644
--- a/src/i18n/locales/en-US.ts
+++ b/src/i18n/locales/en-US.ts
@@ -1785,6 +1785,7 @@ export default {
homeInstruction:'Set the system home page',
home: 'System home page',
homeTip:'Do you want to submit the current interface as the system interface?',
+ homeSet:'System home page Settings',
},
role:{
allScopeOptions:'All data permissions',
diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts
index ea105c1b..77cd7b64 100644
--- a/src/i18n/locales/zh-CN.ts
+++ b/src/i18n/locales/zh-CN.ts
@@ -1785,6 +1785,7 @@ export default {
homeInstruction:'设置系统首页界面',
home: '系统首页',
homeTip:'确认要提交当前界面为系统界面吗?',
+ homeSet:'系统首页设置',
},
role:{
allScopeOptions:'全部数据权限',
diff --git a/src/views/index.vue b/src/views/index.vue
index bdd3c73b..e9baa113 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -8,7 +8,7 @@ import {
reactive,
} from 'vue';
import { listMenu } from '@/api/system/menu';
-import { getConfig, changeValue } from '@/api/system/config';
+import { getConfig, getConfigKey,changeValue } from '@/api/system/config';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { message } from 'ant-design-vue';
@@ -19,7 +19,7 @@ const currentComponent = shallowRef(
onMounted(() => {
//获取当前系统设置的首页路径 111为configID
- getConfig(111).then(res => {
+ getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (res.data.configValue) {
currentComponent.value = defineAsyncComponent(
diff --git a/src/views/system/setting/components/change-home-index.vue b/src/views/system/setting/components/change-home-index.vue
index a25fbefe..d16c1e5e 100644
--- a/src/views/system/setting/components/change-home-index.vue
+++ b/src/views/system/setting/components/change-home-index.vue
@@ -3,11 +3,9 @@ import { Modal, message } from 'ant-design-vue/lib';
import { onMounted, reactive, toRaw } from 'vue';
import useAppStore from '@/store/modules/app';
import useI18n from '@/hooks/useI18n';
-import { CACHE_LOCAL_I18N } from '@/constants/cache-keys-constants';
-import { localSet } from '@/utils/cache-local-utils';
import { listMenu } from '@/api/system/menu';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
-import { getConfig, changeValue } from '@/api/system/config';
+import { getConfig, getConfigKey, changeValue } from '@/api/system/config';
const appStore = useAppStore();
const { t, optionsLocale } = useI18n();
@@ -69,7 +67,7 @@ onMounted(() => {
});
//获取当前系统设置的首页路径 111为configID
- getConfig(111).then(res => {
+ getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.default = res.data.configValue;
}
diff --git a/src/views/system/setting/index.vue b/src/views/system/setting/index.vue
index 8b8de721..0699e558 100644
--- a/src/views/system/setting/index.vue
+++ b/src/views/system/setting/index.vue
@@ -51,7 +51,7 @@ const { t } = useI18n();
- 系统首页设置
+ {{t('views.system.setting.homeSet') }}
From f1b440c8dd51c2a2f33a9e0384fed8c4fa7b25e7 Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Wed, 16 Oct 2024 14:50:47 +0800
Subject: [PATCH 3/8] =?UTF-8?q?=E8=A1=A5=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/index.vue | 6 +++---
src/views/system/setting/components/change-home-index.vue | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index e9baa113..32fae333 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -18,12 +18,12 @@ const currentComponent = shallowRef(
);
onMounted(() => {
- //获取当前系统设置的首页路径 111为configID
+ //获取当前系统设置的首页路径
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
- if (res.data.configValue) {
+ if (res.data) {
currentComponent.value = defineAsyncComponent(
- () => import(`./${res.data.configValue}.vue`)
+ () => import(`./${res.data}.vue`)
);
}
}
diff --git a/src/views/system/setting/components/change-home-index.vue b/src/views/system/setting/components/change-home-index.vue
index d16c1e5e..cf11ab29 100644
--- a/src/views/system/setting/components/change-home-index.vue
+++ b/src/views/system/setting/components/change-home-index.vue
@@ -69,7 +69,7 @@ onMounted(() => {
//获取当前系统设置的首页路径 111为configID
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
- state.default = res.data.configValue;
+ state.default = res.data;
}
});
});
From 2a6451ef2a60a221154194690122fbb8dc22bc3e Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Wed, 16 Oct 2024 15:11:26 +0800
Subject: [PATCH 4/8] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../neOverview}/index.vue | 0
src/views/index.vue | 17 ++++-------------
2 files changed, 4 insertions(+), 13 deletions(-)
rename src/views/{neStatus => configManage/neOverview}/index.vue (100%)
diff --git a/src/views/neStatus/index.vue b/src/views/configManage/neOverview/index.vue
similarity index 100%
rename from src/views/neStatus/index.vue
rename to src/views/configManage/neOverview/index.vue
diff --git a/src/views/index.vue b/src/views/index.vue
index 32fae333..879caa03 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,24 +1,15 @@