发布管理

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制图后台管理系统"
/>
<link rel="icon" href="/favicon.ico" />
<title>vue-next-admin</title>
<title>pixel.ai-admin</title>
</head>
<body>
<div id="app"></div>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -270,27 +270,26 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
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'),
// path: '/shares',
// name: 'shares',
// component: () => import('/@/views/service/shares/index.vue'),
// meta: {
// title: 'message.router.applyDetail',
// title: 'message.router.shares',
// isLink: '',
// isHide: true,
// isHide: false,
// isKeepAlive: true,
// isAffix: false,
// isIframe: false,
// roles: ['admin', 'common'],
// icon: 'ele-Document',
// roles: ['admin'],
// icon: 'ele-Upload',
// },
// },
]
},
/**
* end

View File

@ -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}`;
}

View File

@ -64,6 +64,11 @@
<el-switch v-model="state.data.publish" />
</el-form-item>
</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-form-item label="选项:">
<div class="tags-option">