vue3-admin-gpt 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +14 -0
- package/.env.production +14 -0
- package/LICENSE +21 -0
- package/README.en.md +106 -0
- package/README.md +104 -0
- package/build-zip.cjs +53 -0
- package/cli.js +110 -0
- package/jsconfig.json +9 -0
- package/package.json +92 -0
- package/public/index.html +20 -0
- package/public/robots.txt +2 -0
- package/rspack.config.js +282 -0
- package/rspack.js +162 -0
- package/src/App.vue +9 -0
- package/src/api/icon.js +9 -0
- package/src/api/router.js +9 -0
- package/src/api/table.js +25 -0
- package/src/api/tree.js +9 -0
- package/src/api/user.js +34 -0
- package/src/assets/error_images/401.png +0 -0
- package/src/assets/error_images/404.png +0 -0
- package/src/assets/error_images/cloud.png +0 -0
- package/src/assets/login_images/background.jpg +0 -0
- package/src/assets/logo.png +0 -0
- package/src/assets/qr_logo/lqr_logo.png +0 -0
- package/src/assets/vuejs-fill.svg +4 -0
- package/src/components/VabPageHeader/index.vue +133 -0
- package/src/config/index.js +7 -0
- package/src/config/net.config.js +20 -0
- package/src/config/permission.js +136 -0
- package/src/config/setting.config.js +62 -0
- package/src/config/settings.js +6 -0
- package/src/config/theme.config.js +14 -0
- package/src/layouts/EmptyLayout.vue +3 -0
- package/src/layouts/components/VabAppMain/index.vue +109 -0
- package/src/layouts/components/VabAvatar/index.vue +255 -0
- package/src/layouts/components/VabBreadcrumb/index.vue +61 -0
- package/src/layouts/components/VabFullScreen/index.vue +61 -0
- package/src/layouts/components/VabLogo/index.vue +94 -0
- package/src/layouts/components/VabNav/index.vue +176 -0
- package/src/layouts/components/VabSide/components/VabMenuItem.vue +80 -0
- package/src/layouts/components/VabSide/components/VabSideItem.vue +100 -0
- package/src/layouts/components/VabSide/components/VabSubmenu.vue +56 -0
- package/src/layouts/components/VabSide/index.vue +123 -0
- package/src/layouts/components/VabTabs/index.vue +500 -0
- package/src/layouts/components/VabTheme/index.vue +603 -0
- package/src/layouts/components/VabTop/index.vue +286 -0
- package/src/layouts/export.js +29 -0
- package/src/layouts/index.vue +339 -0
- package/src/main.js +40 -0
- package/src/plugins/echarts.js +4 -0
- package/src/plugins/index.js +44 -0
- package/src/plugins/support.js +16 -0
- package/src/router/index.js +400 -0
- package/src/store/index.js +26 -0
- package/src/store/modules/errorLog.js +27 -0
- package/src/store/modules/routes.js +60 -0
- package/src/store/modules/settings.js +73 -0
- package/src/store/modules/table.js +22 -0
- package/src/store/modules/tabsBar.js +109 -0
- package/src/store/modules/user.js +131 -0
- package/src/styles/element-variables.scss +13 -0
- package/src/styles/loading.scss +345 -0
- package/src/styles/nav-icons.scss +52 -0
- package/src/styles/normalize.scss +353 -0
- package/src/styles/spinner/dots.css +68 -0
- package/src/styles/spinner/gauge.css +104 -0
- package/src/styles/spinner/inner-circles.css +51 -0
- package/src/styles/spinner/plus.css +341 -0
- package/src/styles/themes/default.scss +1 -0
- package/src/styles/transition.scss +18 -0
- package/src/styles/vab.scss +476 -0
- package/src/styles/variables.scss +69 -0
- package/src/utils/accessToken.js +56 -0
- package/src/utils/eventBus.js +8 -0
- package/src/utils/handleRoutes.js +100 -0
- package/src/utils/index.js +231 -0
- package/src/utils/message.js +67 -0
- package/src/utils/pageTitle.js +11 -0
- package/src/utils/password.js +43 -0
- package/src/utils/permission.js +19 -0
- package/src/utils/request.js +187 -0
- package/src/utils/static.js +81 -0
- package/src/utils/vab.js +218 -0
- package/src/utils/validate.js +48 -0
- package/src/views/401.vue +302 -0
- package/src/views/404.vue +302 -0
- package/src/views/demo/index.vue +591 -0
- package/src/views/index/index.vue +1489 -0
- package/src/views/login/index.vue +456 -0
- package/src/views/register/index.vue +524 -0
- package/src/views/vab/calendar.vue +488 -0
- package/src/views/vab/campaign.vue +1006 -0
- package/src/views/vab/chart.vue +189 -0
- package/src/views/vab/customer.vue +666 -0
- package/src/views/vab/editor.vue +84 -0
- package/src/views/vab/form.vue +151 -0
- package/src/views/vab/help.vue +390 -0
- package/src/views/vab/icon.vue +113 -0
- package/src/views/vab/knowledge.vue +820 -0
- package/src/views/vab/nested/menu1/menu2/menu3.vue +29 -0
- package/src/views/vab/nested/menu1/menu2.vue +33 -0
- package/src/views/vab/nested/menu1.vue +33 -0
- package/src/views/vab/nested.vue +97 -0
- package/src/views/vab/notification.vue +416 -0
- package/src/views/vab/order.vue +507 -0
- package/src/views/vab/permissions.vue +214 -0
- package/src/views/vab/product.vue +724 -0
- package/src/views/vab/project.vue +559 -0
- package/src/views/vab/settings.vue +319 -0
- package/src/views/vab/statistics.vue +431 -0
- package/src/views/vab/table.vue +110 -0
- package/src/views/vab/task.vue +613 -0
- package/src/views/vab/team.vue +662 -0
- package/src/views/vab/tree.vue +44 -0
- package/src/views/vab/upload.vue +180 -0
- package/src/views/vab/vue3Demo/index.vue +103 -0
- package/src/views/vab/workflow.vue +863 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="chart-container">
|
|
3
|
+
<el-row :gutter="20">
|
|
4
|
+
<el-col :span="12">
|
|
5
|
+
<el-card shadow="never">
|
|
6
|
+
<div ref="barChartRef" class="chart-wrapper" style="height: 400px"></div>
|
|
7
|
+
</el-card>
|
|
8
|
+
</el-col>
|
|
9
|
+
<el-col :span="12">
|
|
10
|
+
<el-card shadow="never">
|
|
11
|
+
<div ref="lineChartRef" class="chart-wrapper" style="height: 400px"></div>
|
|
12
|
+
</el-card>
|
|
13
|
+
</el-col>
|
|
14
|
+
</el-row>
|
|
15
|
+
<el-row :gutter="20" style="margin-top: 20px">
|
|
16
|
+
<el-col :span="12">
|
|
17
|
+
<el-card shadow="never">
|
|
18
|
+
<div ref="pieChartRef" class="chart-wrapper" style="height: 400px"></div>
|
|
19
|
+
</el-card>
|
|
20
|
+
</el-col>
|
|
21
|
+
<el-col :span="12">
|
|
22
|
+
<el-card shadow="never">
|
|
23
|
+
<div ref="areaChartRef" class="chart-wrapper" style="height: 400px"></div>
|
|
24
|
+
</el-card>
|
|
25
|
+
</el-col>
|
|
26
|
+
</el-row>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import * as echarts from "echarts";
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: "Chart",
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
barChart: null,
|
|
38
|
+
lineChart: null,
|
|
39
|
+
pieChart: null,
|
|
40
|
+
areaChart: null,
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
mounted() {
|
|
44
|
+
this.initCharts();
|
|
45
|
+
},
|
|
46
|
+
beforeUnmount() {
|
|
47
|
+
if (this.barChart) {
|
|
48
|
+
this.barChart.dispose();
|
|
49
|
+
}
|
|
50
|
+
if (this.lineChart) {
|
|
51
|
+
this.lineChart.dispose();
|
|
52
|
+
}
|
|
53
|
+
if (this.pieChart) {
|
|
54
|
+
this.pieChart.dispose();
|
|
55
|
+
}
|
|
56
|
+
if (this.areaChart) {
|
|
57
|
+
this.areaChart.dispose();
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
initCharts() {
|
|
62
|
+
// 初始化柱状图
|
|
63
|
+
this.barChart = echarts.init(this.$refs.barChartRef);
|
|
64
|
+
this.barChart.setOption(this.getBarChartOption());
|
|
65
|
+
|
|
66
|
+
// 初始化折线图
|
|
67
|
+
this.lineChart = echarts.init(this.$refs.lineChartRef);
|
|
68
|
+
this.lineChart.setOption(this.getLineChartOption());
|
|
69
|
+
|
|
70
|
+
// 初始化饼图
|
|
71
|
+
this.pieChart = echarts.init(this.$refs.pieChartRef);
|
|
72
|
+
this.pieChart.setOption(this.getPieChartOption());
|
|
73
|
+
|
|
74
|
+
// 初始化面积图
|
|
75
|
+
this.areaChart = echarts.init(this.$refs.areaChartRef);
|
|
76
|
+
this.areaChart.setOption(this.getAreaChartOption());
|
|
77
|
+
},
|
|
78
|
+
getBarChartOption() {
|
|
79
|
+
return {
|
|
80
|
+
title: {
|
|
81
|
+
text: "柱状图示例",
|
|
82
|
+
},
|
|
83
|
+
tooltip: {},
|
|
84
|
+
xAxis: {
|
|
85
|
+
type: "category",
|
|
86
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
87
|
+
},
|
|
88
|
+
yAxis: {
|
|
89
|
+
type: "value",
|
|
90
|
+
},
|
|
91
|
+
series: [
|
|
92
|
+
{
|
|
93
|
+
data: [120, 200, 150, 80, 70, 110, 130],
|
|
94
|
+
type: "bar",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
getLineChartOption() {
|
|
100
|
+
return {
|
|
101
|
+
title: {
|
|
102
|
+
text: "折线图示例",
|
|
103
|
+
},
|
|
104
|
+
xAxis: {
|
|
105
|
+
type: "category",
|
|
106
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
107
|
+
},
|
|
108
|
+
yAxis: {
|
|
109
|
+
type: "value",
|
|
110
|
+
},
|
|
111
|
+
series: [
|
|
112
|
+
{
|
|
113
|
+
data: [820, 932, 901, 934, 1290, 1330, 1320],
|
|
114
|
+
type: "line",
|
|
115
|
+
smooth: true,
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
getPieChartOption() {
|
|
121
|
+
return {
|
|
122
|
+
title: {
|
|
123
|
+
text: "饼图示例",
|
|
124
|
+
},
|
|
125
|
+
tooltip: {
|
|
126
|
+
trigger: "item",
|
|
127
|
+
},
|
|
128
|
+
legend: {
|
|
129
|
+
orient: "vertical",
|
|
130
|
+
left: "left",
|
|
131
|
+
},
|
|
132
|
+
series: [
|
|
133
|
+
{
|
|
134
|
+
name: "访问来源",
|
|
135
|
+
type: "pie",
|
|
136
|
+
radius: "50%",
|
|
137
|
+
data: [
|
|
138
|
+
{ value: 1048, name: "搜索引擎" },
|
|
139
|
+
{ value: 735, name: "直接访问" },
|
|
140
|
+
{ value: 580, name: "邮件营销" },
|
|
141
|
+
{ value: 484, name: "联盟广告" },
|
|
142
|
+
{ value: 300, name: "视频广告" },
|
|
143
|
+
],
|
|
144
|
+
emphasis: {
|
|
145
|
+
itemStyle: {
|
|
146
|
+
shadowBlur: 10,
|
|
147
|
+
shadowOffsetX: 0,
|
|
148
|
+
shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
getAreaChartOption() {
|
|
156
|
+
return {
|
|
157
|
+
title: {
|
|
158
|
+
text: "面积图示例",
|
|
159
|
+
},
|
|
160
|
+
xAxis: {
|
|
161
|
+
type: "category",
|
|
162
|
+
boundaryGap: false,
|
|
163
|
+
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
164
|
+
},
|
|
165
|
+
yAxis: {
|
|
166
|
+
type: "value",
|
|
167
|
+
},
|
|
168
|
+
series: [
|
|
169
|
+
{
|
|
170
|
+
data: [820, 932, 901, 934, 1290, 1330, 1320],
|
|
171
|
+
type: "line",
|
|
172
|
+
areaStyle: {},
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
</script>
|
|
180
|
+
|
|
181
|
+
<style lang="scss" scoped>
|
|
182
|
+
.chart-container {
|
|
183
|
+
padding: 20px;
|
|
184
|
+
|
|
185
|
+
.chart-wrapper {
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
</style>
|