From d6b324049c67f15c3e9b5b9588cf9ec00aa51179 Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Mon, 23 Dec 2024 14:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- src/api/article/index.ts | 1 + src/api/message/index.ts | 1 + src/api/service/apply/index.ts | 2 ++ src/i18n/lang/en.ts | 1 + src/i18n/lang/zh-cn.ts | 1 + src/i18n/lang/zh-tw.ts | 1 + src/router/route.ts | 35 +++++++++++++++--------------- src/views/photos/index.vue | 4 +++- src/views/service/apply/dialog.vue | 5 +++++ 10 files changed, 33 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index 9025126..f95255a 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ content="pixel-admin是基于 vue3 + CompositionAPI + typescript + vite + element-plus,适配手机、平板、pc 的ai制图后台管理系统!" /> - vue-next-admin + pixel.ai-admin
diff --git a/src/api/article/index.ts b/src/api/article/index.ts index d779dcb..ec1547e 100644 --- a/src/api/article/index.ts +++ b/src/api/article/index.ts @@ -13,6 +13,7 @@ import { baseUrlHost } from '../baseUrlHost'; * @method getArticleDetail 获取文章详情 * @method saveArticle 保存文章 * @method updateArticle 更新文章 + * @method uploadFile 上传文件 */ export function articleApi() { diff --git a/src/api/message/index.ts b/src/api/message/index.ts index 468dd4c..8932837 100644 --- a/src/api/message/index.ts +++ b/src/api/message/index.ts @@ -8,6 +8,7 @@ import { baseUrlHost } from '../baseUrlHost'; * 登录api接口集合 * @method getMessageList 获取留言列表 * @method getMessageDetail 获取留言详情 + * @method updateMessage 更新留言 */ export function messageApi() { diff --git a/src/api/service/apply/index.ts b/src/api/service/apply/index.ts index dd03ac4..3844580 100644 --- a/src/api/service/apply/index.ts +++ b/src/api/service/apply/index.ts @@ -8,7 +8,9 @@ import { pixelUrlHost } from '/@/api/baseUrlHost'; * 登录api接口集合 * @method getServicesList 获取应用服务列表 * @method getApplyDetail 获取应用服务详情 + * @method saveApply 添加应用服务 * @method updateApply 更新应用服务 + * @method deleteApply 删除应用服务 */ export function applyApi() { diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index c89f544..7a80e8a 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -106,6 +106,7 @@ export default { */ apply: 'apply', + shares: 'shares', /** * 业务模块end diff --git a/src/i18n/lang/zh-cn.ts b/src/i18n/lang/zh-cn.ts index a16d1ac..f4f3f89 100644 --- a/src/i18n/lang/zh-cn.ts +++ b/src/i18n/lang/zh-cn.ts @@ -109,6 +109,7 @@ export default { */ apply: '应用管理', + shares: '发布管理', /** * 业务模块end diff --git a/src/i18n/lang/zh-tw.ts b/src/i18n/lang/zh-tw.ts index f29519e..2a3f8e5 100644 --- a/src/i18n/lang/zh-tw.ts +++ b/src/i18n/lang/zh-tw.ts @@ -106,6 +106,7 @@ export default { */ apply: '應用管理', + shares: '發佈管理', /** * 业务模块end diff --git a/src/router/route.ts b/src/router/route.ts index b41fddc..313693a 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -270,27 +270,26 @@ export const dynamicRoutes: Array = [ isKeepAlive: true, isAffix: false, isIframe: false, - roles: ['admin', 'common'], + roles: ['admin'], icon: 'iconfont icon-crew_feature', }, - children: [ - // { - // path: '/apply/detail', - // name: 'applyDetail', - // component: () => import('/@/views/service/apply/detail.vue'), - // meta: { - // title: 'message.router.applyDetail', - // isLink: '', - // isHide: true, - // isKeepAlive: true, - // isAffix: false, - // isIframe: false, - // roles: ['admin', 'common'], - // icon: 'ele-Document', - // }, - // }, - ] }, + // 发布管理 + // { + // path: '/shares', + // name: 'shares', + // component: () => import('/@/views/service/shares/index.vue'), + // meta: { + // title: 'message.router.shares', + // isLink: '', + // isHide: false, + // isKeepAlive: true, + // isAffix: false, + // isIframe: false, + // roles: ['admin'], + // icon: 'ele-Upload', + // }, + // }, /** * 业务模块end diff --git a/src/views/photos/index.vue b/src/views/photos/index.vue index 2edd9cb..1dd8a50 100644 --- a/src/views/photos/index.vue +++ b/src/views/photos/index.vue @@ -309,7 +309,9 @@ const jpgFormatter = (row: any) => { } else { newPath = row.path.replaceAll('\\\\', '/') } - newPath = newPath.includes('http://8.138.171.103/') ? newPath : encodeURI(viteUrl + newPath) + newPath = newPath.includes('http://8.138.171.103/')||newPath.includes('http://guojunjie.oss-cn-hangzhou.aliyuncs.com/') ? + newPath : encodeURI(viteUrl + newPath) + console.log(newPath); return `${newPath}`; } diff --git a/src/views/service/apply/dialog.vue b/src/views/service/apply/dialog.vue index b3e2aa1..2b9aff1 100644 --- a/src/views/service/apply/dialog.vue +++ b/src/views/service/apply/dialog.vue @@ -64,6 +64,11 @@ + + + + +