You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
619 B
30 lines
619 B
4 years ago
|
!(function() {
|
||
|
var Store = BI.inherit(Fix.Model, {
|
||
|
state: function() {
|
||
|
return {
|
||
|
carrierInfo: {
|
||
|
carrierType: "depost",
|
||
|
pending: false
|
||
|
},
|
||
|
entityInfo: {
|
||
|
entityType: "entry",
|
||
|
entityId: null,
|
||
|
privilegeDetailBeanList: null
|
||
|
}
|
||
|
};
|
||
|
},
|
||
|
|
||
|
childContext: ["carrierInfo", "entityInfo"],
|
||
|
|
||
|
actions: {
|
||
|
changeEntityInfo: function(cardInfo) {
|
||
|
this.model.entityInfo = BI.extend({}, this.model.entityInfo, {
|
||
|
entityId: cardInfo.id
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
BI.model("dec.model.demo", Store);
|
||
|
})();
|