From 4167121baad8f1110146d1d300f9fdceecaee516 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 2 Apr 2025 10:23:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E5=8F=8A=E4=B8=80=E4=BA=9B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ops/setting.vue | 21 ++++++---- src/views/ops/settings/androisAPK.vue | 2 +- src/views/ops/settings/otherSet.vue | 59 +++++++++++++++++++++++++++ src/views/ops/settings/sysSet.vue | 19 +++++++-- 4 files changed, 90 insertions(+), 11 deletions(-) create mode 100644 src/views/ops/settings/otherSet.vue diff --git a/src/views/ops/setting.vue b/src/views/ops/setting.vue index bc540ca1..701a3991 100644 --- a/src/views/ops/setting.vue +++ b/src/views/ops/setting.vue @@ -11,6 +11,7 @@ shape="square" >

{{ form.base_name }}

+

SERVER版本: {{ form.sys_version }}

@@ -58,8 +59,9 @@ export default { name: "userCenter", components: { androisAPK: defineAsyncComponent(() => import("./settings/androisAPK.vue")), - smsSet: defineAsyncComponent(() => import("./settings/smsSet.vue")), - sysSet: defineAsyncComponent(() => import("./settings/sysSet.vue")) + // smsSet: defineAsyncComponent(() => import("./settings/smsSet.vue")), + sysSet: defineAsyncComponent(() => import("./settings/sysSet.vue")), + otherSet: defineAsyncComponent(() => import("./settings/otherSet.vue")), }, data() { return { @@ -75,13 +77,18 @@ export default { }, { icon: "el-icon-lock", - title: "APP", + title: "安卓APK", component: "androisAPK", }, + // { + // icon: "el-icon-postcard", + // title: "短信", + // component: "smsSet", + // }, { - icon: "el-icon-postcard", - title: "短信", - component: "smsSet", + icon: "el-icon-lock", + title: "其他配置", + component: "otherSet", }, ], }, @@ -115,7 +122,7 @@ export default { }, getSysConfig() { - this.$API.system.config.getInfo.req().then(res=>{ + this.$API.system.config.base.req().then(res=>{ this.form = res.base }) }, diff --git a/src/views/ops/settings/androisAPK.vue b/src/views/ops/settings/androisAPK.vue index d3219848..1f9b98e3 100644 --- a/src/views/ops/settings/androisAPK.vue +++ b/src/views/ops/settings/androisAPK.vue @@ -44,7 +44,7 @@ export default { methods:{ getSysConfig() { this.$API.system.config.getInfo.req().then(res=>{ - this.form = res.apk + this.form = res.apk || {} }) }, submitForm(){ diff --git a/src/views/ops/settings/otherSet.vue b/src/views/ops/settings/otherSet.vue new file mode 100644 index 00000000..1f2db610 --- /dev/null +++ b/src/views/ops/settings/otherSet.vue @@ -0,0 +1,59 @@ + + \ No newline at end of file diff --git a/src/views/ops/settings/sysSet.vue b/src/views/ops/settings/sysSet.vue index 6f8dd8af..482fd553 100644 --- a/src/views/ops/settings/sysSet.vue +++ b/src/views/ops/settings/sysSet.vue @@ -33,7 +33,20 @@ - + + + + + + + + + + + + + + 提交 @@ -50,8 +63,8 @@ export default { form: { base_logo: "/media/default/logo.png", base_logo_side: "/media/default/logo_side.jpg", - base_name: "托克逊能源管理平台", - base_name_short: "托克逊能管", + base_name: "星途工厂综合管理平台", + base_name_short: "星途", bigScreen_name:'' }, };