Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
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
station
amos-convertor-view
Commits
2cce6acc
Commit
2cce6acc
authored
Apr 12, 2021
by
田涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug1147/1148巡检统计饼图样式修复
parent
af85eb03
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
32 deletions
+11
-32
point.scss
src/styles/view/biz/point/point.scss
+3
-2
PointSearch.js
src/view/bizview/point/PointSearch.js
+4
-1
PointStatistics.js
src/view/bizview/point/PointStatistics.js
+4
-29
No files found.
src/styles/view/biz/point/point.scss
View file @
2cce6acc
...
...
@@ -49,8 +49,9 @@
position
:
absolute
;
text-align
:
center
;
font-size
:
20px
;
top
:
40%
;
right
:
40%
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
}
...
...
src/view/bizview/point/PointSearch.js
View file @
2cce6acc
...
...
@@ -77,8 +77,10 @@ class PointSearch extends Component {
onDeptChange
=
(
value
)
=>
{
let
{
searchParam
}
=
this
.
state
;
if
(
searchParam
[
'deptId'
]
!==
value
)
{
searchParam
[
'deptId'
]
=
value
;
searchParam
[
'userId'
]
=
undefined
;
Object
.
assign
(
searchParam
,{
pageNumber
:
0
,
pageSize
:
10
});
Object
.
assign
(
searchParam
,{
pageNumber
:
0
,
pageSize
:
10
});
this
.
setState
({
searchParam
});
if
(
value
===
undefined
){
this
.
setState
({
userData
:
[]
});
...
...
@@ -87,6 +89,7 @@ class PointSearch extends Component {
this
.
queryUserByDept
(
value
);
}
}
}
//查询巡检人员
getPointSearchConditionAction
=
()
=>
{
...
...
src/view/bizview/point/PointStatistics.js
View file @
2cce6acc
...
...
@@ -54,35 +54,19 @@ class PointStatistics extends Component {
let
{
colors
,
data
}
=
this
.
getColor
(
dataList
);
return
{
color
:
colors
,
tooltip
:
{
trigger
:
'item'
,
formatter
:
"<div style='color: white; font-size: 16px;' >{b}:<br />数量({c});比例({d}%)</div>"
},
series
:
[
{
name
:
'巡检点统计'
,
// silent: true,
type
:
'pie'
,
radius
:
[
'45%'
,
'65%'
],
itemStyle
:
{
normal
:
{
label
:
{
show
:
false
,
// position: 'center',
// formatter: function(params) {
// let dataIndex = params.dataIndex;
// if (parseInt(dataIndex) === 0) {
// return '{a|' + total + '}' + '\r\n' + '{b|' + '总数' + '}';
// } else {
// return '';
// }
// },
// rich: {
// a: {
// fontSize: '28',
// color: 'black'
// },
// b: {
// fontSize: '16',
// color: 'black'
// }
// }
},
labelLine
:
{
show
:
false
...
...
@@ -92,15 +76,6 @@ class PointStatistics extends Component {
labelLine
:
{
show
:
true
,
length
:
90
},
label
:
{
show
:
true
,
position
:
'outer'
,
formatter
:
'{b}
\
n {c}({d}%)'
,
textStyle
:
{
fontSize
:
'25'
,
fontWeight
:
'bold'
}
}
}
},
...
...
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