From 231f476a6f17066544f782067a8ffc538045281a Mon Sep 17 00:00:00 2001 From: CQ <8051778+cq-hm@user.noreply.gitee.com> Date: Wed, 15 Oct 2025 18:07:03 +0800 Subject: [PATCH] fix admin --- .../ueditor/themes/default/css/ueditor.css | 5 +- admin/src/app/api/site.ts | 8 +- admin/src/app/components/upgrade/index.vue | 6 +- admin/src/app/views/app/index.vue | 2 + admin/src/app/views/app/marketing.vue | 8 +- .../app/components/app-version-edit.vue | 7 +- admin/src/app/views/channel/app/version.vue | 2 +- admin/src/app/views/diy/tabbar.vue | 2 +- admin/src/app/views/diy/theme_style.vue | 2 +- admin/src/app/views/index/store.vue | 12 +- admin/src/app/views/poster/edit.vue | 5 +- admin/src/app/views/poster/list.vue | 7 +- admin/src/app/views/setting/copyright.vue | 8 +- .../app/views/site/components/user-edit.vue | 380 +++++++++--------- admin/src/app/views/site/user.vue | 331 +++++++-------- admin/src/app/views/site/user_info.vue | 266 ++++++------ admin/src/app/views/tools/backup_records.vue | 2 +- admin/src/app/views/tools/cloud_compile.vue | 4 +- admin/src/components/editor/index.vue | 11 + admin/src/lang/zh-cn/common.json | 2 +- admin/src/layout/admin/index.vue | 4 + admin/src/layout/admin_simplicity/index.vue | 7 +- .../bussiness/components/aside/menu-item.vue | 32 +- .../bussiness/components/aside/side.vue | 285 ++++++++++--- .../darkside/components/aside/menu-item.vue | 183 ++++++++- .../layout/darkside/components/aside/side.vue | 32 +- .../default/components/aside/menu-item.vue | 177 +++++++- .../layout/default/components/aside/side.vue | 35 +- .../default/components/header/index.vue | 58 +-- .../profession/components/aside/menu-item.vue | 33 +- .../profession/components/aside/side.vue | 295 ++++++++++---- admin/src/styles/icon/addon-iconfont.css | 2 +- 32 files changed, 1496 insertions(+), 717 deletions(-) diff --git a/admin/public/ueditor/themes/default/css/ueditor.css b/admin/public/ueditor/themes/default/css/ueditor.css index 81421c3ea..9572e0bd5 100644 --- a/admin/public/ueditor/themes/default/css/ueditor.css +++ b/admin/public/ueditor/themes/default/css/ueditor.css @@ -147,7 +147,10 @@ div.edui-box { overflow: visible; z-index: 1 !important; } - +/* 全屏状态 */ +.edui-default .edui-editor.edui-fullscreen { + z-index: 999 !important; + } .edui-editor div { width: auto; height: auto; diff --git a/admin/src/app/api/site.ts b/admin/src/app/api/site.ts index 79076b087..b63f3ffcd 100644 --- a/admin/src/app/api/site.ts +++ b/admin/src/app/api/site.ts @@ -291,13 +291,13 @@ export function getSiteAddons() { * @returns */ export function getShowApp() { - return request.get('site/showApp') + return request.get('site/showCustomer') } /** - * 获取营销列表 + * 获取站点应用特殊 * @returns */ -export function getShowMarketing() { - return request.get('site/showMarketing') +export function getShowSpecialMenu() { + return request.get('site/special_menu') } diff --git a/admin/src/app/components/upgrade/index.vue b/admin/src/app/components/upgrade/index.vue index f61bf9c97..2f3af58d9 100644 --- a/admin/src/app/components/upgrade/index.vue +++ b/admin/src/app/components/upgrade/index.vue @@ -249,7 +249,7 @@ import Storage from '@/utils/storage' import { useRouter } from 'vue-router' const router = useRouter() -const terminalId = ref(Date.now()); +const terminalId = ref(Date.now()); const showDialog = ref(false) const upgradeContent = ref(null) const isAllowUpgrade = ref(true) // 是否允许升级 @@ -299,7 +299,7 @@ const getUpgradeTaskFn = () => { if (!upgradeContent.value) { upgradeContent.value = data.upgrade_content - if (upgradeContent.value || !data.upgrade_content || !Array.isArray(data.upgrade_content.content)) { + if (!data.upgrade_content || !Array.isArray(data.upgrade_content.content)) { return } @@ -691,7 +691,7 @@ defineExpose({ white-space: pre-wrap; } -::v-deep .number-of-steps { +:deep(.number-of-steps) { .el-step__line { margin: 0 25px; background: #dddddd; diff --git a/admin/src/app/views/app/index.vue b/admin/src/app/views/app/index.vue index 6a631f4c2..084e46ec7 100644 --- a/admin/src/app/views/app/index.vue +++ b/admin/src/app/views/app/index.vue @@ -50,6 +50,7 @@ import { img } from '@/utils/common' import useUserStore from '@/stores/modules/user' import { useRouter } from 'vue-router' import { t } from '@/lang' +import storage from '@/utils/storage' const addonIndexRoute = useUserStore().addonIndexRoute const router = useRouter() @@ -73,6 +74,7 @@ const toLink = (item: any) => { } else { addonIndexRoute[item.key] && router.push({ name: addonIndexRoute[item.key] }) } + storage.set({ key: 'activeAppKey', data: item.key }) } diff --git a/admin/src/app/views/app/marketing.vue b/admin/src/app/views/app/marketing.vue index 693b3d746..880a7ddde 100644 --- a/admin/src/app/views/app/marketing.vue +++ b/admin/src/app/views/app/marketing.vue @@ -18,7 +18,7 @@
- +
@@ -45,7 +45,7 @@ diff --git a/admin/src/app/views/site/user_info.vue b/admin/src/app/views/site/user_info.vue index 283f85b06..c7c4e97d2 100644 --- a/admin/src/app/views/site/user_info.vue +++ b/admin/src/app/views/site/user_info.vue @@ -1,127 +1,135 @@ diff --git a/admin/src/app/views/tools/backup_records.vue b/admin/src/app/views/tools/backup_records.vue index 1cc88b9e1..705424593 100644 --- a/admin/src/app/views/tools/backup_records.vue +++ b/admin/src/app/views/tools/backup_records.vue @@ -858,7 +858,7 @@ const batchDelete = () => { background-color: var(--el-table-header-bg-color); } -::v-deep .number-of-steps { +:deep(.number-of-steps) { .el-step__line { margin: 0 25px; background: #dddddd; diff --git a/admin/src/app/views/tools/cloud_compile.vue b/admin/src/app/views/tools/cloud_compile.vue index ed35fca9c..39b324704 100644 --- a/admin/src/app/views/tools/cloud_compile.vue +++ b/admin/src/app/views/tools/cloud_compile.vue @@ -53,7 +53,7 @@
编译uniapp代码
- 云编泽会将uniapp端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的 + 云编译会将uniapp端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的 public/wap 目录中,这样手机端网页的访问路径将变为 https://域名/wap @@ -62,7 +62,7 @@
编译web代码
- 云编泽会将web端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的 + 云编译会将web端的vue代码编译为对应的html文件,同时将生成的代码下载到系统 niucloud下的 public/web 目录中,这样电脑端网页的访问路径将变为 https://域名/web diff --git a/admin/src/components/editor/index.vue b/admin/src/components/editor/index.vue index 6d1f7a017..46b3cd7be 100644 --- a/admin/src/components/editor/index.vue +++ b/admin/src/components/editor/index.vue @@ -91,6 +91,17 @@ const handleEditorReady = (editor) => { emit('handleBlur', editor.getContent()) // 把内容传出去 }) + // 全屏切换监听 + editor.addListener('fullscreenchanged', (type, fullscreen) =>{ + const editorDom = editor.ui.getDom() + if (fullscreen) { + editorDom.classList.add('edui-fullscreen') + } else { + editorDom.classList.remove('edui-fullscreen') + } + console.log('全屏切换', fullscreen) + }) + // 方案二:原型链扩展(如果编辑器版本支持) const originalCount = editor.getContentLength; // 原生统计方法 diff --git a/admin/src/lang/zh-cn/common.json b/admin/src/lang/zh-cn/common.json index 99a4ad454..dd8272e2a 100644 --- a/admin/src/lang/zh-cn/common.json +++ b/admin/src/lang/zh-cn/common.json @@ -103,7 +103,7 @@ "405": "请求方法未允许", "408": "请求超时", "409": "请求跨域", - "500": "服务器端出错,错误原因:", + "500": "服务器内部错误", "501": "网络未实现", "502": "网络错误", "503": "服务不可用", diff --git a/admin/src/layout/admin/index.vue b/admin/src/layout/admin/index.vue index 33eac606c..7086239f6 100644 --- a/admin/src/layout/admin/index.vue +++ b/admin/src/layout/admin/index.vue @@ -42,4 +42,8 @@ const tabbarStore = useTabbarStore() .bg-page { background-color: #F7F7FA; } +:deep(.inter .el-breadcrumb__inner){ + font-weight: inherit !important; + color: var(--el-text-color-regular) !important; +} diff --git a/admin/src/layout/admin_simplicity/index.vue b/admin/src/layout/admin_simplicity/index.vue index 5eb66eea9..77fe71ac6 100644 --- a/admin/src/layout/admin_simplicity/index.vue +++ b/admin/src/layout/admin_simplicity/index.vue @@ -38,4 +38,9 @@ const appStore = useAppStore() const tabbarStore = useTabbarStore() - + diff --git a/admin/src/layout/bussiness/components/aside/menu-item.vue b/admin/src/layout/bussiness/components/aside/menu-item.vue index 7f9e4e507..26f070676 100644 --- a/admin/src/layout/bussiness/components/aside/menu-item.vue +++ b/admin/src/layout/bussiness/components/aside/menu-item.vue @@ -1,18 +1,18 @@