refactor: 一些优化
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "vue3-element-admin",
|
"name": "mall-admin-web",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite serve --mode development",
|
"dev": "vite serve --mode development",
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
"@wangeditor/editor": "^0.13.6",
|
"@wangeditor/editor": "^0.13.6",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.8-6",
|
"@wangeditor/editor-for-vue": "^5.1.8-6",
|
||||||
"axios": "^0.24.0",
|
"axios": "^0.24.0",
|
||||||
|
"better-scroll": "^2.4.2",
|
||||||
"echarts": "^5.2.2",
|
"echarts": "^5.2.2",
|
||||||
"element-plus": "^1.2.0-beta.6",
|
"element-plus": "^1.2.0-beta.6",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ function initChart() {
|
|||||||
pieChart.setOption({
|
pieChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
show: true,
|
show: true,
|
||||||
text: '产品品类分部总览南丁格尔饼图',
|
text: '产品分类总览南丁格尔饼图',
|
||||||
x: 'center',
|
x: 'center',
|
||||||
padding: 15,
|
padding: 15,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="dashboard-container">
|
<div class="dashboard-container">
|
||||||
<github-corner class="github-corner"/>
|
<github-corner class="github-corner"/>
|
||||||
|
|
||||||
|
<!-- 数据 -->
|
||||||
<el-row :gutter="40" class="card-panel-col">
|
<el-row :gutter="40" class="card-panel-col">
|
||||||
<el-col :xs="12" :span="12" :lg="6">
|
<el-col :xs="12" :span="12" :lg="6">
|
||||||
<div class="card-panel">
|
<div class="card-panel">
|
||||||
@@ -64,7 +64,6 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
<!-- 项目 + 团队成员介绍 -->
|
<!-- 项目 + 团队成员介绍 -->
|
||||||
<el-row :gutter="40">
|
<el-row :gutter="40">
|
||||||
|
|
||||||
@@ -113,13 +112,13 @@
|
|||||||
<el-col :span="4" class="fw-b">
|
<el-col :span="4" class="fw-b">
|
||||||
后端技术栈
|
后端技术栈
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="20" >
|
<el-col :span="20">
|
||||||
Spring Boot、Spring Cloud & Alibaba、Spring Security
|
Spring Boot、Spring Cloud & Alibaba、Spring Security
|
||||||
OAuth2、JWT、Seata、Sentinel、Elastic Stack ...
|
OAuth2、JWT、Seata、Sentinel、Elastic Stack ...
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-divider/>
|
<el-divider/>
|
||||||
<el-row :gutter="10" >
|
<el-row :gutter="10">
|
||||||
<el-col :span="4" class="fw-b">
|
<el-col :span="4" class="fw-b">
|
||||||
前端技术栈
|
前端技术栈
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -135,16 +134,32 @@
|
|||||||
<el-col :sm="24" :lg="12">
|
<el-col :sm="24" :lg="12">
|
||||||
<el-card class="team-card">
|
<el-card class="team-card">
|
||||||
<template #header>
|
<template #header>
|
||||||
<span class="fw-b">有来开源组织</span>
|
<span class="fw-b">有来开源组织 X 有来技术团队 </span>
|
||||||
</template>
|
</template>
|
||||||
<el-tabs>
|
<el-tabs v-model="teamActiveName">
|
||||||
<el-tab-pane label="开发人员" name="1">
|
<el-tab-pane label="开发人员" name="developer">
|
||||||
|
<div class="developer-wrapper">
|
||||||
|
<ul class="developer-content">
|
||||||
|
<li>12</li>
|
||||||
|
<li>12</li>
|
||||||
|
<li>123</li>
|
||||||
|
<li>12</li>
|
||||||
|
<li>123</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
<li>33</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="有来交流群" name="2">
|
<el-tab-pane label="有来交流群" name="2">
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="无回开发群(加入我们)" name="3">
|
<el-tab-pane label="加入开源组织" name="3">
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -176,7 +191,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
// Vue引用
|
// Vue引用
|
||||||
import {computed, reactive, toRefs} from "vue";
|
import {computed, nextTick, onMounted, reactive, toRefs, watchEffect} from "vue";
|
||||||
|
|
||||||
// 组件引用
|
// 组件引用
|
||||||
import GithubCorner from '@/components/GithubCorner/index.vue'
|
import GithubCorner from '@/components/GithubCorner/index.vue'
|
||||||
@@ -186,6 +201,7 @@ import BarChart from "./components/BarChart.vue";
|
|||||||
import PieChart from "./components/PieChart.vue";
|
import PieChart from "./components/PieChart.vue";
|
||||||
import RadarChart from "./components/RadarChart.vue";
|
import RadarChart from "./components/RadarChart.vue";
|
||||||
import FunnelChart from "./components/FunnelChart.vue";
|
import FunnelChart from "./components/FunnelChart.vue";
|
||||||
|
import BScroll from 'better-scroll'
|
||||||
|
|
||||||
import {useUserStoreHook} from "@/store/modules/user"
|
import {useUserStoreHook} from "@/store/modules/user"
|
||||||
|
|
||||||
@@ -194,13 +210,28 @@ const avatar = computed(() => useUserStoreHook().avatar);
|
|||||||
const nickname = computed(() => useUserStoreHook().nickname);
|
const nickname = computed(() => useUserStoreHook().nickname);
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
updateLogActiveName: '1',
|
teamActiveName: 'developer'
|
||||||
contactActiveName: '1',
|
|
||||||
documentActiveName: '1'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const {updateLogActiveName, contactActiveName, documentActiveName} = toRefs(state)
|
const {teamActiveName} = toRefs(state)
|
||||||
|
|
||||||
|
let bScroll = reactive({})
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
bScroll = new BScroll(document.querySelector('.developer-wrapper') as any, {
|
||||||
|
startX: 0,
|
||||||
|
click: true,
|
||||||
|
scrollX: true,
|
||||||
|
scrollY: false,
|
||||||
|
eventPassthrough: "vertical" // 横向滚动,保留纵向原生滚动
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
watchEffect(() => {
|
||||||
|
nextTick(() => {
|
||||||
|
bScroll && (bScroll as any).refresh()
|
||||||
|
})
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
@@ -353,6 +384,7 @@ const {updateLogActiveName, contactActiveName, documentActiveName} = toRefs(stat
|
|||||||
|
|
||||||
.project-card {
|
.project-card {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
&__main {
|
&__main {
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
@@ -360,6 +392,7 @@ const {updateLogActiveName, contactActiveName, documentActiveName} = toRefs(stat
|
|||||||
|
|
||||||
.team-card {
|
.team-card {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
&__main {
|
&__main {
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
<h3 class="title">Login Form</h3>
|
<h3 class="title">有来商城管理系统 Vue3</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
|
|||||||
Reference in New Issue
Block a user