import
{
QL,
IMap
}
from
'plume2';
import
{
fromJS,
Map
}
from
'immutable'
export
const
securityLevelQL
=
QL(
'securityLevelQL',
[
'userInfo',
(
userInfo)
=>
{
let
user:
IMap
=
Map({
add:
'nanjing',
name:
'wh',
pwd:
Map({
pwd1:
'131123',
pwd2:
'1222'
})
});
let
userINfo:
IMap
=
fromJS({
add:
'nanjing',
name:
'wh',
pwd:
{
pwd1:
'131123',
pwd2:
'1222'
}
});
//temp1
let
aa
=
user.
get(
'pwd').
get(
'pwd1');
let
bb
=
user.
getIn([
'pwd',
'pwd1']);
let
cc
=
user.
get(
'pwd').
get(
'pwd1');
let
dd
=
user.
getIn([
'pwd',
'pwd1']);
let
a
=
user.
getIn([
'levelName']);
console.
log(
"userInfo::::::::",
aa,
bb,
cc,
dd);
return
a;
}
]);