Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SMPPIR
Portal-SMPPIR-React
Commits
0128a2c7
Commit
0128a2c7
authored
Jul 05, 2019
by
Rafael S Castilho
Browse files
Education page on quotas updates to take PNAD continua
parent
71e5cacc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SubPages/QuotasEducation.js
View file @
0128a2c7
...
...
@@ -22,6 +22,7 @@ along with Portal-SMPPIR-React. If not, see <https://www.gnu.org/licenses/>.
import
React
,
{
Component
}
from
'
react
'
;
import
{
Col
,
Row
,
Card
,
Icon
}
from
'
react-materialize
'
;
import
{
Collection
,
CollectionItem
}
from
'
react-materialize
'
import
MapPanel
from
'
../Components/MapPanel
'
;
import
Loading
from
'
../Components/Loading
'
;
import
AppModal
from
'
../Components/AppModal
'
;
...
...
@@ -32,7 +33,7 @@ import { getServerURL, getRegionState, sleep } from '../enviroment';
import
'
./Styles/QuotasEducation.css
'
import
{
Store
}
from
'
../Store
'
;
const
basicFilter
=
'
type_of_school:"2",
type_of_public_school:"6",
level_of_education:"
5
"
'
;
const
basicFilter
=
'
type_of_school:"2",level_of_education:"
8
"
'
;
const
serverURL
=
getServerURL
();
const
type
=
"
education
"
;
...
...
@@ -132,6 +133,13 @@ class QuotasEducation extends Component {
<
/Col
>
<
/Row
>
<
div
id
=
{
'
educationChart
'
}
>
<
div
id
=
{
'
pnad_cont-info
'
}
>
<
Collection
>
<
CollectionItem
>
Devido
a
troca
da
fonte
de
dados
da
PNAD
para
a
PNAD
continua
os
dados
referentes
a
educação
entre
2009
e
2015
vem
de
uma
fonte
diferente
dos
dados
entre
2016
e
2018
.
<
/CollectionItem
>
<
/Collection
>
<
/div
>
<
BuildBarPNAD
data
=
{
this
.
state
.
totalRate
}
visited
=
{
page
}
...
...
@@ -191,10 +199,10 @@ class QuotasEducation extends Component {
}
loadData
(
filter
=
''
)
{
var
allBlackPeopleRoute
=
'
pnad?filter=ethnic:"
4
"
'
+
filter
var
allWhitePeopleRoute
=
'
pnad?filter=ethnic:"
2
"
'
+
filter
var
allBlackPeopleResearchRoute
=
'
pnad?filter=ethnic:"
4
",
'
+
basicFilter
+
filter
var
allWhitePeopleResearchRoute
=
'
pnad?filter=ethnic:"
2
",
'
+
basicFilter
+
filter
var
allBlackPeopleRoute
=
'
pnad?filter=ethnic:"
2
"
'
+
filter
var
allWhitePeopleRoute
=
'
pnad?filter=ethnic:"
1
"
'
+
filter
var
allBlackPeopleResearchRoute
=
'
pnad?filter=ethnic:"
2
",
'
+
basicFilter
+
filter
var
allWhitePeopleResearchRoute
=
'
pnad?filter=ethnic:"
1
",
'
+
basicFilter
+
filter
axios
.
get
(
`
${
serverURL
}${
allBlackPeopleRoute
}
`
)
.
then
(
res
=>
{
...
...
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