refactor: 项目重命名为37du自动化工作台,完成全链路更新
本次提交完成了项目从"业务场景工具集"到"自动化工作台"的全链路重命名: 1. 更新所有页面标题、应用名称配置 2. 重构前端登录页UI与交互逻辑,新增启动加载动画 3. 移除旧版钉钉登录相关API与代码 4. 优化控制面板后台统计接口的SQL查询与字段映射 5. 新增agent_cli命令行管理工具,支持插件与账号权限管理 6. 修复后端插件权限校验逻辑,新增云端权限拉取能力 7. 更新控制面登录页面样式与交互体验
This commit is contained in:
@@ -1,48 +1,57 @@
|
||||
<template>
|
||||
<div class="login-wrap">
|
||||
<div class="orb orb-a"></div>
|
||||
<div class="orb orb-b"></div>
|
||||
<div class="orb orb-c"></div>
|
||||
<div class="grid-mask"></div>
|
||||
|
||||
<n-card class="card" :bordered="false">
|
||||
<div class="login">
|
||||
<div class="card">
|
||||
<div class="brand">
|
||||
<span class="logo">37</span>
|
||||
<div class="brand-meta">
|
||||
<strong>{{ appName }}</strong>
|
||||
<span>中心机统一账户登录</span>
|
||||
<h1>{{ appName }}</h1>
|
||||
<p>中心机统一账户登录</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<n-form label-placement="top" @keydown.enter="doLogin">
|
||||
<n-form class="form" label-placement="top" @keydown.enter.prevent="doLogin">
|
||||
<n-form-item label="账号">
|
||||
<n-input v-model:value="account" placeholder="请输入账号" size="large">
|
||||
<n-input
|
||||
v-model:value="account"
|
||||
placeholder="请输入账号"
|
||||
autocomplete="username"
|
||||
size="large"
|
||||
@keyup.enter="doLogin"
|
||||
>
|
||||
<template #prefix><n-icon><User /></n-icon></template>
|
||||
</n-input>
|
||||
</n-form-item>
|
||||
<n-form-item label="密码">
|
||||
<n-input v-model:value="password" type="password" show-password-on="click" placeholder="请输入密码" size="large">
|
||||
<n-input
|
||||
v-model:value="password"
|
||||
type="password"
|
||||
placeholder="请输入密码"
|
||||
autocomplete="current-password"
|
||||
size="large"
|
||||
show-password-on="click"
|
||||
@keyup.enter="doLogin"
|
||||
>
|
||||
<template #prefix><n-icon><Lock /></n-icon></template>
|
||||
</n-input>
|
||||
</n-form-item>
|
||||
<n-button type="primary" size="large" block class="login-btn" :loading="busy" @click="doLogin">
|
||||
{{ busy ? '校验中…' : '登 录' }}
|
||||
<n-button type="primary" size="large" block class="primary" :loading="busy" @click="doLogin">
|
||||
{{ busy ? '登录中…' : '登 录' }}
|
||||
</n-button>
|
||||
</n-form>
|
||||
|
||||
<div class="foot">内网管理面 · 请使用管理员账号登录</div>
|
||||
</n-card>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { User, Lock } from '@element-plus/icons-vue'
|
||||
import { adminLogin } from '../api'
|
||||
import { store } from '../store.js'
|
||||
import { message } from '../naive'
|
||||
|
||||
const props = defineProps({ appName: { type: String, default: '37du 内网插件控制面' } })
|
||||
const props = defineProps({ appName: { type: String, default: '37du 自动化工作台' } })
|
||||
const emit = defineEmits(['ok'])
|
||||
|
||||
const account = ref('')
|
||||
@@ -73,61 +82,44 @@ async function doLogin() {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.login-wrap {
|
||||
height: 100vh; position: relative; overflow: hidden;
|
||||
display: grid; place-items: center;
|
||||
background:
|
||||
radial-gradient(1000px 520px at 85% -10%, rgba(59, 108, 255, .16), transparent 60%),
|
||||
radial-gradient(900px 480px at 0% 110%, rgba(34, 199, 232, .14), transparent 55%),
|
||||
radial-gradient(700px 420px at 60% 120%, rgba(139, 92, 246, .10), transparent 60%),
|
||||
linear-gradient(180deg, #f4f7fd 0%, #e9eefb 100%);
|
||||
}
|
||||
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
|
||||
.orb-a { width: 360px; height: 360px; top: -120px; right: -60px; background: radial-gradient(circle, rgba(59, 108, 255, .35), transparent 70%); }
|
||||
.orb-b { width: 300px; height: 300px; bottom: -100px; left: -80px; background: radial-gradient(circle, rgba(34, 199, 232, .32), transparent 70%); }
|
||||
.orb-c { width: 260px; height: 260px; bottom: 80px; right: 12%; background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 70%); }
|
||||
.grid-mask {
|
||||
position: absolute; inset: 0; pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(rgba(59, 108, 255, .05) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(59, 108, 255, .05) 1px, transparent 1px);
|
||||
background-size: 44px 44px;
|
||||
mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, .5), transparent 75%);
|
||||
-webkit-mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, .5), transparent 75%);
|
||||
.login {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
box-sizing: border-box;
|
||||
background: linear-gradient(180deg, #f7f8fa 0%, #eef0f4 100%);
|
||||
font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif);
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 380px; position: relative; z-index: 2;
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 255, 255, .82);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
border: 1px solid var(--cp-border);
|
||||
box-shadow: 0 24px 60px -24px rgba(43, 64, 132, .35);
|
||||
animation: cp-rise .6s cubic-bezier(.22, .61, .36, 1) both;
|
||||
width: 380px;
|
||||
box-sizing: border-box;
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--cp-border, #e5e7ec);
|
||||
border-radius: 16px;
|
||||
padding: 34px 32px 28px;
|
||||
box-shadow: 0 16px 40px -24px rgba(30, 42, 76, .25);
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
|
||||
|
||||
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
|
||||
.logo {
|
||||
width: 46px; height: 46px; border-radius: 14px; position: relative;
|
||||
width: 42px; height: 42px; border-radius: 12px; flex: none;
|
||||
display: grid; place-items: center;
|
||||
background: linear-gradient(135deg, #3b6cff 0%, #22c7e8 130%);
|
||||
color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .5px;
|
||||
box-shadow: 0 10px 22px -8px rgba(59, 108, 255, .6);
|
||||
color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .4px;
|
||||
box-shadow: 0 8px 18px -8px rgba(59, 108, 255, .55);
|
||||
}
|
||||
.logo::after { content: ''; position: absolute; inset: 2px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); }
|
||||
.brand-meta { display: flex; flex-direction: column; line-height: 1.3; }
|
||||
.brand-meta strong { font-size: 16px; color: var(--cp-ink); letter-spacing: .2px; }
|
||||
.brand-meta span { font-size: 12px; color: var(--cp-ink-3); }
|
||||
.brand-meta h1 { margin: 0; font-size: 17px; font-weight: 700; color: var(--cp-ink, #1c2433); letter-spacing: .2px; }
|
||||
.brand-meta p { margin: 3px 0 0; font-size: 12px; color: var(--cp-ink-3, #8a93a6); }
|
||||
|
||||
/* 登录按钮:与 logo / 侧栏选中态统一的品牌渐变 */
|
||||
.login-btn {
|
||||
margin-top: 6px;
|
||||
background: linear-gradient(135deg, #3b6cff 0%, #22b0e8 130%);
|
||||
border: none;
|
||||
box-shadow: 0 10px 22px -10px rgba(59, 108, 255, .55);
|
||||
transition: box-shadow .2s, transform .2s;
|
||||
}
|
||||
.login-btn:hover { box-shadow: 0 14px 26px -10px rgba(59, 108, 255, .65); transform: translateY(-1px); }
|
||||
.login-btn:active { transform: translateY(0); }
|
||||
.foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--cp-ink-3); }
|
||||
</style>
|
||||
.form :deep(.n-form-item) { margin-bottom: 20px; }
|
||||
.form :deep(.n-form-item-label) { font-size: 12.5px; font-weight: 600; color: var(--cp-ink-2, #4a5270); padding-bottom: 6px; }
|
||||
.form :deep(.n-input) { border-radius: 8px; }
|
||||
.form :deep(.n-input__inner) { font-size: 14px; }
|
||||
|
||||
.primary.n-button--primary-type { height: 44px; border-radius: 8px; font-size: 14px; letter-spacing: .1em; }
|
||||
|
||||
.foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--cp-ink-3, #8a93a6); }
|
||||
</style>
|
||||
Reference in New Issue
Block a user