Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
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
张伯涛
bigDataSystem
Commits
2bf6e5fb
Commit
2bf6e5fb
authored
Nov 05, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作区详情echarts
parent
fb2a1d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
29 deletions
+84
-29
detail.vue
src/views/system/workspace/detail.vue
+84
-29
No files found.
src/views/system/workspace/detail.vue
View file @
2bf6e5fb
...
@@ -106,6 +106,13 @@
...
@@ -106,6 +106,13 @@
</Col>
</Col>
</div>
</div>
</Card>
</Card>
<Card>
<div
class=
"process_title"
>
<div
class=
"title_info"
>
执行统计
</div>
</div>
<div
ref=
"chartRef"
style=
"width: 100%;height: 100%"
></div>
</Card>
</Col>
</Col>
<Col
:span=
"6"
class=
"homePage_right"
>
<Col
:span=
"6"
class=
"homePage_right"
>
<Card
class=
"notice_card"
>
<Card
class=
"notice_card"
>
...
@@ -130,17 +137,6 @@
...
@@ -130,17 +137,6 @@
</div>
</div>
</Card>
</Card>
</Col>
</Col>
<a-col
:span=
"12"
class=
"chart_col"
>
<a-card
title=
"任务状态"
>
<echarts-vue3
:option=
"pieOptions"
autoresize
/>
<div
class=
"status_counts"
>
<div>
1240/10% 进行中
</div>
<div>
1845/33% 等待
</div>
<div>
1666/33% 成功
</div>
<div>
555/8% 失败
</div>
</div>
</a-card>
</a-col>
</Row>
</Row>
</div>
</div>
</
template
>
</
template
>
...
@@ -212,7 +208,7 @@
...
@@ -212,7 +208,7 @@
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
onMounted
,
reactive
,
ref
}
from
'vue'
;
import
{
onMounted
,
reactive
,
Ref
,
ref
}
from
'vue'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
...
@@ -222,6 +218,7 @@
...
@@ -222,6 +218,7 @@
import
{
deleteUser
,
getAccountList
}
from
'@/api/system/user/user'
;
import
{
deleteUser
,
getAccountList
}
from
'@/api/system/user/user'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
useECharts
}
from
'@/hooks/web/useECharts'
;
import
AccountModal
from
'@/views/system/user/AccountModal.vue'
;
import
AccountModal
from
'@/views/system/user/AccountModal.vue'
;
import
{
import
{
columns
,
columns
,
...
@@ -235,6 +232,9 @@
...
@@ -235,6 +232,9 @@
defineOptions
({
name
:
'AccountDetail'
});
defineOptions
({
name
:
'AccountDetail'
});
const
chartRef
=
ref
<
HTMLDivElement
|
null
>
(
null
);
const
{
setOptions
}
=
useECharts
(
chartRef
as
Ref
<
HTMLDivElement
>
);
const
tableData
=
ref
([]);
const
tableData
=
ref
([]);
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
}]
=
useTable
({
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
}]
=
useTable
({
title
:
'工作组列表'
,
title
:
'工作组列表'
,
...
@@ -397,8 +397,60 @@
...
@@ -397,8 +397,60 @@
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
// 本例的效果时点击返回始终跳转到账号列表页,实际应用时可返回上一页
go
(
'/system/system/workspace'
);
go
(
'/system/system/workspace'
);
}
}
/** 执行统计echarts渲染*/
function
getEchartsData
()
{
setOptions
({
tooltip
:
{
trigger
:
'item'
,
},
legend
:
{
bottom
:
'1%'
,
left
:
'center'
,
},
series
:
[
{
color
:
[
'#5ab1ef'
,
'#b6a2de'
,
'#67e0e3'
,
'#2ec7c9'
],
name
:
'访问来源'
,
type
:
'pie'
,
radius
:
[
'40%'
,
'70%'
],
avoidLabelOverlap
:
false
,
itemStyle
:
{
borderRadius
:
10
,
borderColor
:
'#fff'
,
borderWidth
:
2
,
},
label
:
{
show
:
false
,
position
:
'center'
,
},
emphasis
:
{
label
:
{
show
:
true
,
fontSize
:
'12'
,
fontWeight
:
'bold'
,
},
},
labelLine
:
{
show
:
false
,
},
data
:
[
{
value
:
1048
,
name
:
'搜索引擎'
},
{
value
:
735
,
name
:
'直接访问'
},
{
value
:
580
,
name
:
'邮件营销'
},
{
value
:
484
,
name
:
'联盟广告'
},
],
animationType
:
'scale'
,
animationEasing
:
'exponentialInOut'
,
animationDelay
:
function
()
{
return
Math
.
random
()
*
100
;
},
},
],
});
}
onMounted
(()
=>
{
onMounted
(()
=>
{
tableData
.
value
=
TreeData
;
tableData
.
value
=
TreeData
;
getEchartsData
()
});
});
</
script
>
</
script
>
...
@@ -406,7 +458,27 @@
...
@@ -406,7 +458,27 @@
.homePage_module
{
.homePage_module
{
background-color
:
#fafbfc
;
background-color
:
#fafbfc
;
padding
:
20px
;
padding
:
20px
;
.process_title
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.title_info
{
display
:
flex
;
align-items
:
center
;
font-size
:
16px
;
font-weight
:
600
;
}
.process_more
{
font-size
:
16px
;
cursor
:
pointer
;
color
:
#4aabfe
;
font-weight
:
600
;
}
}
.homePage_left
{
.homePage_left
{
.executeStatistics_card
{
margin-top
:
20px
;
}
.homePage_img
{
.homePage_img
{
width
:
93%
;
width
:
93%
;
}
}
...
@@ -501,23 +573,6 @@
...
@@ -501,23 +573,6 @@
.process_content
{
.process_content
{
padding-top
:
20px
;
padding-top
:
20px
;
}
}
.process_title
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.title_info
{
display
:
flex
;
align-items
:
center
;
font-size
:
16px
;
font-weight
:
600
;
}
.process_more
{
font-size
:
16px
;
cursor
:
pointer
;
color
:
#4aabfe
;
font-weight
:
600
;
}
}
}
}
}
}
...
...
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