发布管理

This commit is contained in:
Double-_-Z 2024-12-23 14:22:39 +08:00
parent 709d9203a9
commit d6b324049c
10 changed files with 33 additions and 20 deletions

View File

@ -13,7 +13,7 @@
content="pixel-admin是基于 vue3 + CompositionAPI + typescript + vite + element-plus适配手机、平板、pc 的ai制图后台管理系统" content="pixel-admin是基于 vue3 + CompositionAPI + typescript + vite + element-plus适配手机、平板、pc 的ai制图后台管理系统"
/> />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<title>vue-next-admin</title> <title>pixel.ai-admin</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -13,6 +13,7 @@ import { baseUrlHost } from '../baseUrlHost';
* @method getArticleDetail * @method getArticleDetail
* @method saveArticle * @method saveArticle
* @method updateArticle * @method updateArticle
* @method uploadFile
*/ */
export function articleApi() { export function articleApi() {

View File

@ -8,6 +8,7 @@ import { baseUrlHost } from '../baseUrlHost';
* api接口集合 * api接口集合
* @method getMessageList * @method getMessageList
* @method getMessageDetail * @method getMessageDetail
* @method updateMessage
*/ */
export function messageApi() { export function messageApi() {

View File

@ -8,7 +8,9 @@ import { pixelUrlHost } from '/@/api/baseUrlHost';
* api接口集合 * api接口集合
* @method getServicesList * @method getServicesList
* @method getApplyDetail * @method getApplyDetail
* @method saveApply
* @method updateApply * @method updateApply
* @method deleteApply
*/ */
export function applyApi() { export function applyApi() {

View File

@ -106,6 +106,7 @@ export default {
*/ */
apply: 'apply', apply: 'apply',
shares: 'shares',
/** /**
* end * end

View File

@ -109,6 +109,7 @@ export default {
*/ */
apply: '应用管理', apply: '应用管理',
shares: '发布管理',
/** /**
* end * end

View File

@ -106,6 +106,7 @@ export default {
*/ */
apply: '應用管理', apply: '應用管理',
shares: '發佈管理',
/** /**
* end * end

View File

@ -270,27 +270,26 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
isKeepAlive: true, isKeepAlive: true,
isAffix: false, isAffix: false,
isIframe: false, isIframe: false,
roles: ['admin', 'common'], roles: ['admin'],
icon: 'iconfont icon-crew_feature', 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 * end

View File

@ -309,7 +309,9 @@ const jpgFormatter = (row: any) => {
} else { } else {
newPath = row.path.replaceAll('\\\\', '/') 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}`; return `${newPath}`;
} }

View File

@ -64,6 +64,11 @@
<el-switch v-model="state.data.publish" /> <el-switch v-model="state.data.publish" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :xs="24" :sm="16" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="使用教程:">
<el-input v-model="state.data.exampleUrl" placeholder="请输入使用教程链接" clearable></el-input>
</el-form-item>
</el-col>
<el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16" class="mb20" v-if="state.data.options&&state.data.options.length>0"> <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16" class="mb20" v-if="state.data.options&&state.data.options.length>0">
<el-form-item label="选项:"> <el-form-item label="选项:">
<div class="tags-option"> <div class="tags-option">