应用服务管理

This commit is contained in:
Double-_-Z 2024-12-10 10:24:23 +08:00
parent 1b9d58f222
commit 16bc099987
12 changed files with 68 additions and 12 deletions

View File

@ -5,7 +5,7 @@
<Setings ref="setingsRef" v-show="setLockScreen" /> <Setings ref="setingsRef" v-show="setLockScreen" />
<CloseFull v-if="!themeConfig.isLockScreen" /> <CloseFull v-if="!themeConfig.isLockScreen" />
<Upgrade v-if="getVersion" /> <Upgrade v-if="getVersion" />
<Sponsors /> <Sponsors v-if="!hideSponsors"/>
</el-config-provider> </el-config-provider>
</template> </template>
@ -46,12 +46,19 @@ const setLockScreen = computed(() => {
// //
const getVersion = computed(() => { const getVersion = computed(() => {
let isVersion = false; let isVersion = false;
if (route.path !== '/login') { if (route.path !== '/login' && route.path !== '/article/content') {
// @ts-ignore // @ts-ignore
if ((Local.get('version') && Local.get('version') !== __NEXT_VERSION__) || !Local.get('version')) isVersion = true; if ((Local.get('version') && Local.get('version') !== __NEXT_VERSION__) || !Local.get('version')) isVersion = true;
} }
return isVersion; return isVersion;
}); });
// 广
const hideSponsors = computed(() => {
const path = route.path;
console.log(path === '/login' || path === '/article/content');
return path === '/login' || path === '/article/content';
});
// //
const getGlobalComponentSize = computed(() => { const getGlobalComponentSize = computed(() => {
return other.globalComponentSize(); return other.globalComponentSize();

View File

@ -1 +1,2 @@
export const baseUrlHost = "/vueAdminApi"; export const baseUrlHost = "/vueAdminApi";
export const pixelUrlHost = "/pixelApi";

View File

@ -11,6 +11,7 @@ export default {
UserManage: 'UserManage', UserManage: 'UserManage',
systemDic: 'systemDic', systemDic: 'systemDic',
article: 'article', article: 'article',
apply: 'apply',
message: 'message', message: 'message',
order: 'order', order: 'order',
articleContent: 'articleContent', articleContent: 'articleContent',

View File

@ -11,6 +11,7 @@ export default {
systemDept: '部门管理', systemDept: '部门管理',
systemDic: '字典管理', systemDic: '字典管理',
article: '文章管理', article: '文章管理',
apply: '应用管理',
carousel: '轮播图管理', carousel: '轮播图管理',
clients: '客户管理', clients: '客户管理',
photos: '图片管理', photos: '图片管理',

View File

@ -11,6 +11,7 @@ export default {
systemDept: '部門管理', systemDept: '部門管理',
systemDic: '字典管理', systemDic: '字典管理',
article: '文章管理', article: '文章管理',
apply: '应用管理',
message: '聯言管理', message: '聯言管理',
articleContent: '文章詳情', articleContent: '文章詳情',
order: '訂單管理', order: '訂單管理',

View File

@ -10,7 +10,7 @@ export default {
}, },
account: { account: {
accountPlaceholder1: 'The user name admin or not is common', accountPlaceholder1: 'The user name admin or not is common',
accountPlaceholder2: 'Password: 123456', accountPlaceholder2: 'Please enter the password',
accountPlaceholder3: 'Please enter the verification code', accountPlaceholder3: 'Please enter the verification code',
accountBtnText: 'Sign in', accountBtnText: 'Sign in',
}, },

View File

@ -9,8 +9,8 @@ export default {
two4: '友情链接', two4: '友情链接',
}, },
account: { account: {
accountPlaceholder1: '用户名 admin 或不输均为 common', accountPlaceholder1: '请输入用户名',
accountPlaceholder2: '密码123456', accountPlaceholder2: '请输入密码',
accountPlaceholder3: '请输入验证码', accountPlaceholder3: '请输入验证码',
accountBtnText: '登 录', accountBtnText: '登 录',
}, },

View File

@ -9,8 +9,8 @@ export default {
two4: '友情連結', two4: '友情連結',
}, },
account: { account: {
accountPlaceholder1: '用戶名admin或不輸均為common', accountPlaceholder1: '請輸入用戶名',
accountPlaceholder2: '密碼123456', accountPlaceholder2: '請輸入密碼',
accountPlaceholder3: '請輸入驗證碼', accountPlaceholder3: '請輸入驗證碼',
accountBtnText: '登入', accountBtnText: '登入',
}, },

View File

@ -188,6 +188,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
}, },
], ],
}, },
// 文章管理
{ {
path: '/article', path: '/article',
name: 'article', name: 'article',
@ -250,6 +251,23 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
} }
] ]
}, },
// 应用管理
// {
// path: '/apply',
// name: 'apply',
// component: () => import('/@/views/apply/index.vue'),
// meta: {
// title: 'message.router.apply',
// isLink: '',
// isHide: false,
// isKeepAlive: true,
// isAffix: false,
// isIframe: false,
// roles: ['admin', 'common'],
// icon: 'iconfont icon-crew_feature',
// },
// children: []
// },
// 轮播图管理 // 轮播图管理
{ {
path: '/carousel', path: '/carousel',

View File

@ -184,7 +184,7 @@ const toEditArticle = (row: any) => {
const copyLink = (row: any) => { const copyLink = (row: any) => {
if(row.id == null||row.id == ''){ ElMessage.warning('链接为空');return;} if(row.id == null||row.id == ''){ ElMessage.warning('链接为空');return;}
var aux = document.createElement("input"); var aux = document.createElement("input");
aux.setAttribute("value", `${viteUrl}#article/content?id=${row.id}`); aux.setAttribute("value", `${viteUrl}vueAdmin/#article/content?id=${row.id}`);
document.body.appendChild(aux); document.body.appendChild(aux);
aux.select(); aux.select();
document.execCommand("copy"); document.execCommand("copy");
@ -200,7 +200,7 @@ const toShowDetail = (row: any) => {
// //
const toPreview = (row: any) => { const toPreview = (row: any) => {
window.open(`${viteUrl}#article/content?id=${row.id}`); window.open(`${viteUrl}vueAdmin/#article/content?id=${row.id}`);
} }
// //

View File

@ -79,8 +79,10 @@ const router = useRouter();
const state = reactive({ const state = reactive({
isShowPassword: false, isShowPassword: false,
ruleForm: { ruleForm: {
username: 'admin1', // username: 'admin1',
password: '123456', // password: '123456',
username: '',
password: '',
code: '1234', code: '1234',
usertype: 1 usertype: 1
}, },
@ -116,8 +118,11 @@ const onSignIn = async () => {
// initBackEndControlRoutes signInSuccess // initBackEndControlRoutes signInSuccess
signInSuccess(isNoPower); signInSuccess(isNoPower);
} }
}else{
ElMessage.error(res.message);
} }
} catch (error) { } catch (error) {
ElMessage.error('账号或密码错误!');
} finally { } finally {
state.loading.signIn = false; state.loading.signIn = false;
} }

View File

@ -32,12 +32,34 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
proxy: { proxy: {
'/vueAdminApi': { '/vueAdminApi': {
target: 'http://8.138.171.103:8081', target: 'http://8.138.171.103:8081',
// target: 'http://8.138.175.106:8090',
// target: 'https://www.ymsc.org.cn/vueAdminApi',
ws: true, ws: true,
secure: false,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/vueAdminApi/, ''), rewrite: (path) => path.replace(/^\/vueAdminApi/, ''),
}, },
'/pixelApi': {
target: 'http://8.138.171.103:8082',
ws: true,
secure: false,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/pixelApi/, ''),
},
'/vueAdmin': {
target: 'http://localhost:8888',
// target: 'http://8.138.175.106:8090',
// target: 'https://www.ymsc.org.cn/vueAdmin',
ws: true,
secure: false,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/vueAdmin/, ''),
},
'/upload': { '/upload': {
target: 'http://8.138.171.103', target: 'http://8.138.171.103',
// target: 'http://8.138.175.106',
// target: 'https://www.ymsc.org.cn/upload',
secure: false,
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
}, },