Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue3portal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
vue3portal
Commits
0964fba6
Commit
0964fba6
authored
Aug 18, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
ddba1c75
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
16 deletions
+37
-16
request.js
src/api/request.js
+8
-1
main.js
src/main.js
+1
-1
dashboardC-index.vue
src/viewsCN/dashboardC/dashboardC-index.vue
+11
-1
echart-bar.vue
src/viewsCN/dashboardC/portlet/echart-bar.vue
+3
-3
echart-gaugeTriple.vue
src/viewsCN/dashboardC/portlet/echart-gaugeTriple.vue
+5
-3
echart-sunburst.vue
src/viewsCN/dashboardC/portlet/echart-sunburst.vue
+2
-2
echart-hill.vue
...sCN/dashboardC/portlet/echarts-hill-group/echart-hill.vue
+5
-3
vite.config.js
vite.config.js
+2
-2
No files found.
src/api/request.js
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
6 13:43:53
* @LastEditTime: 2023-08-1
8 13:47:18
* @FilePath: /vue3portal/src/api/request.js
* @Description:
*
...
...
@@ -20,13 +20,20 @@ const publicUrl = envMode == "development" ? "/vstp" : "/vstp";
* @returns:Promise {<pending>}
**/
export
const
http
=
(
method
,
url
,
params
=
{},
loading
)
=>
{
const
route
=
useRoute
();
console
.
log
(
route
.
query
);
return
new
Promise
(
function
(
resolve
,
reject
)
{
axios
({
method
:
method
,
url
:
publicUrl
+
url
,
headers
:
{
...
route
.
query
,
"Content-Type"
:
"application/json"
,
},
data
:
params
,
})
...
...
src/main.js
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
6 11:25:04
* @LastEditTime: 2023-08-1
8 14:00:26
* @FilePath: /vue3portal/src/main.js
* @Description:
*
...
...
src/viewsCN/dashboardC/dashboardC-index.vue
View file @
0964fba6
<!--
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-18 13:32:26
* @FilePath: /vue3portal/src/viewsCN/dashboardC/dashboardC-index.vue
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<
script
setup
>
import
layout
from
"./layout.vue"
const
state
=
reactive
({
APConfig
:{
height
:
93
0
,
height
:
108
0
,
backgroundFillAll
:
true
,
backgroundName
:
"A1"
,
chartCount
:
6
...
...
src/viewsCN/dashboardC/portlet/echart-bar.vue
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
7 14:00:46
* @LastEditTime: 2023-08-1
8 13:51:35
* @FilePath: /vue3portal/src/viewsCN/dashboardC/portlet/echart-bar.vue
* @Description:
*
...
...
@@ -31,8 +31,8 @@ const processData = (dataList) => {
type
:
'bar'
,
barWidth
:
10
,
label
:
{
show
:
fals
e
,
position
:
'
insideRight'
show
:
tru
e
,
position
:
'
top'
,
// 将 label 放在柱子顶部
},
itemStyle
:
{
color
:
colors
[
i
],
...
...
src/viewsCN/dashboardC/portlet/echart-gaugeTriple.vue
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
7 14:01:0
2
* @LastEditTime: 2023-08-1
8 13:54:4
2
* @FilePath: /vue3portal/src/viewsCN/dashboardC/portlet/echart-gaugeTriple.vue
* @Description:
*
...
...
@@ -30,8 +30,10 @@ const processData = (dataList) => {
name
:
legend
[
i
],
type
:
'line'
,
label
:
{
show
:
false
,
position
:
'insideRight'
show
:
true
,
position
:
'top'
,
// 将 label 放在柱子顶部
color
:
$c
.
aql4
,
textShadow
:
'none'
,
// 去除文字阴影
},
itemStyle
:
{
color
:
colors
[
i
],
...
...
src/viewsCN/dashboardC/portlet/echart-sunburst.vue
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
7
14:01:18
* @LastEditTime: 2023-08-1
8
14:01:18
* @FilePath: /vue3portal/src/viewsCN/dashboardC/portlet/echart-sunburst.vue
* @Description:
*
...
...
@@ -53,7 +53,7 @@ const processOption = (datas) => {
},
grid
:
{
left
:
'16px'
,
right
:
'1
6px
'
,
right
:
'1
2%
'
,
bottom
:
20
,
containLabel
:
true
,
},
...
...
src/viewsCN/dashboardC/portlet/echarts-hill-group/echart-hill.vue
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
7 17:10:48
* @LastEditTime: 2023-08-1
8 13:55:07
* @FilePath: /vue3portal/src/viewsCN/dashboardC/portlet/echarts-hill-group/echart-hill.vue
* @Description:
*
...
...
@@ -31,8 +31,10 @@ const processData = (dataList) => {
type
:
'line'
,
barWidth
:
10
,
label
:
{
show
:
false
,
position
:
'insideRight'
show
:
true
,
position
:
'top'
,
// 将 label 放在柱子顶部
color
:
$c
.
bll4
,
textShadow
:
'none'
,
// 去除文字阴影
},
itemStyle
:
{
color
:
colors
[
i
],
...
...
vite.config.js
View file @
0964fba6
...
...
@@ -2,7 +2,7 @@
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-08 09:18:08
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-1
7 17:11:38
* @LastEditTime: 2023-08-1
8 13:49:47
* @FilePath: /vue3portal/vite.config.js
* @Description:
*
...
...
@@ -16,7 +16,7 @@ export default defineConfig({
host
:
"192.168.40.100"
,
proxy
:
{
"/vstp/"
:
{
target
:
"http://192.168.40.
117:8044/vstp
"
,
target
:
"http://192.168.40.
36:8022
"
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
vstp/
,
""
),
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment