Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
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
中汽测评-信息安全测评系统
web
Commits
d0ac1d43
Commit
d0ac1d43
authored
Mar 27, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(首页): 任务完成情况占比
parent
ee4ed27f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
7 deletions
+39
-7
standardClassification.vue
src/views/echartHome/standardClassification.vue
+3
-3
index.vue
src/views/index.vue
+36
-4
No files found.
src/views/echartHome/standardClassification.vue
View file @
d0ac1d43
...
@@ -32,11 +32,11 @@ export default {
...
@@ -32,11 +32,11 @@ export default {
this
.
getStandardCategoryForm
()
this
.
getStandardCategoryForm
()
},
},
methods
:
{
methods
:
{
getStandardCategoryForm
()
{
async
getStandardCategoryForm
()
{
getDicts
(
'sys_detailed_classification'
).
then
(
res
=>
{
await
getDicts
(
'sys_detailed_classification'
).
then
(
res
=>
{
this
.
dictType
=
res
.
data
this
.
dictType
=
res
.
data
})
})
selectStandardCategoryStatistics
().
then
(
res
=>
{
await
selectStandardCategoryStatistics
().
then
(
res
=>
{
this
.
standardCategory
=
res
.
data
this
.
standardCategory
=
res
.
data
this
.
dictReturn
(
this
.
standardCategory
,
this
.
dictType
)
this
.
dictReturn
(
this
.
standardCategory
,
this
.
dictType
)
})
})
...
...
src/views/index.vue
View file @
d0ac1d43
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<span
class=
"cardOneTitle"
>
支持标准数量
</span
<span
class=
"cardOneTitle"
>
支持标准数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
standardQuantity
quantityStatisticsForm
.
standardQuantity
?
quantityStatisticsForm
.
standardQuantity
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -18,6 +20,8 @@
...
@@ -18,6 +20,8 @@
<span
class=
"cardOneTitle"
>
任务数量
</span
<span
class=
"cardOneTitle"
>
任务数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberTasks
quantityStatisticsForm
.
numberTasks
?
quantityStatisticsForm
.
numberTasks
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -26,6 +30,8 @@
...
@@ -26,6 +30,8 @@
<span
class=
"cardOneTitle"
>
检验员数量
</span
<span
class=
"cardOneTitle"
>
检验员数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberInspectors
quantityStatisticsForm
.
numberInspectors
?
quantityStatisticsForm
.
numberInspectors
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -34,6 +40,8 @@
...
@@ -34,6 +40,8 @@
<span
class=
"cardOneTitle"
>
整车样品数量
</span
<span
class=
"cardOneTitle"
>
整车样品数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberVehicleSamples
quantityStatisticsForm
.
numberVehicleSamples
?
quantityStatisticsForm
.
numberVehicleSamples
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -42,6 +50,8 @@
...
@@ -42,6 +50,8 @@
<span
class=
"cardOneTitle"
>
测试方法数量
</span
<span
class=
"cardOneTitle"
>
测试方法数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberMethods
quantityStatisticsForm
.
numberMethods
?
quantityStatisticsForm
.
numberMethods
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -54,6 +64,8 @@
...
@@ -54,6 +64,8 @@
<span
class=
"cardOneTitle"
>
测试用例数量
</span
<span
class=
"cardOneTitle"
>
测试用例数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberUseCases
quantityStatisticsForm
.
numberUseCases
?
quantityStatisticsForm
.
numberUseCases
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -62,6 +74,8 @@
...
@@ -62,6 +74,8 @@
<span
class=
"cardOneTitle"
>
检验报告数量
</span
<span
class=
"cardOneTitle"
>
检验报告数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberReports
quantityStatisticsForm
.
numberReports
?
quantityStatisticsForm
.
numberReports
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -70,6 +84,8 @@
...
@@ -70,6 +84,8 @@
<span
class=
"cardOneTitle"
>
车企数量
</span
<span
class=
"cardOneTitle"
>
车企数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberCompanies
quantityStatisticsForm
.
numberCompanies
?
quantityStatisticsForm
.
numberCompanies
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -78,6 +94,8 @@
...
@@ -78,6 +94,8 @@
<span
class=
"cardOneTitle"
>
零部件样品数量
</span
<span
class=
"cardOneTitle"
>
零部件样品数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberComponentSamples
quantityStatisticsForm
.
numberComponentSamples
?
quantityStatisticsForm
.
numberComponentSamples
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -86,6 +104,8 @@
...
@@ -86,6 +104,8 @@
<span
class=
"cardOneTitle"
>
测试场景数量
</span
<span
class=
"cardOneTitle"
>
测试场景数量
</span
><span
class=
"cardOneNumber"
>
{{
><span
class=
"cardOneNumber"
>
{{
quantityStatisticsForm
.
numberScenes
quantityStatisticsForm
.
numberScenes
?
quantityStatisticsForm
.
numberScenes
:
0
}}
</span>
}}
</span>
</div>
</div>
</li>
</li>
...
@@ -106,7 +126,11 @@
...
@@ -106,7 +126,11 @@
<div>
<div>
<iconpark-icon
name=
"renwuwancheng"
size=
"36"
></iconpark-icon>
<iconpark-icon
name=
"renwuwancheng"
size=
"36"
></iconpark-icon>
</div>
</div>
<span>
已完成 :43个
</span>
<span
>
已完成 :
{{
quantityStatisticsForm
.
completedTaskNumber
}}
个
</span
>
<div>
<div>
<el-progress
<el-progress
:percentage=
"40"
:percentage=
"40"
...
@@ -114,7 +138,9 @@
...
@@ -114,7 +138,9 @@
:stroke-width=
"10"
:stroke-width=
"10"
:show-text=
"false"
:show-text=
"false"
></el-progress>
></el-progress>
<div
style=
"margin-top: 10px; text-align: center"
>
40%
</div>
<div
style=
"margin-top: 10px; text-align: center"
>
{{
quantityStatisticsForm
.
completedTaskProportion
}}
%
</div>
</div>
</div>
</div>
</div>
<div
class=
"cardChild"
style=
"background: rgba(230, 88, 104, 0.08)"
>
<div
class=
"cardChild"
style=
"background: rgba(230, 88, 104, 0.08)"
>
...
@@ -124,7 +150,11 @@
...
@@ -124,7 +150,11 @@
size=
"36"
size=
"36"
></iconpark-icon>
></iconpark-icon>
</div>
</div>
<span>
未完成 :43个
</span>
<span
>
未完成 :
{{
quantityStatisticsForm
.
executeTasksNumber
}}
个
</span
>
<div>
<div>
<el-progress
<el-progress
:percentage=
"40"
:percentage=
"40"
...
@@ -132,7 +162,9 @@
...
@@ -132,7 +162,9 @@
:stroke-width=
"10"
:stroke-width=
"10"
:show-text=
"false"
:show-text=
"false"
></el-progress>
></el-progress>
<div
style=
"margin-top: 10px; text-align: center"
>
40%
</div>
<div
style=
"margin-top: 10px; text-align: center"
>
{{
quantityStatisticsForm
.
executeTaskProportion
}}
%
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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