Skip to content

Instantly share code, notes, and snippets.

@thomasJang
Created September 14, 2016 14:46
Show Gist options
  • Save thomasJang/871046994997dd8c02e0034eba7f21a3 to your computer and use it in GitHub Desktop.
Save thomasJang/871046994997dd8c02e0034eba7f21a3 to your computer and use it in GitHub Desktop.
axboot
.call({
type: "GET", url: "/api/v1/programs", data: "",
callBack: function (res) {
var programList = [];
res.list.forEach(function (n) {
programList.push({
value: n.progCd, text: n.progNm + "(" + n.progCd + ")",
progCd: n.progCd, progNm: n.progNm,
data: n
});
});
this.programList = programList;
}
})
.call(function () {
this.something = 1;
})
.call({
type: "GET", url: "/api/v1/commonCodes", data: {groupCd: "AUTH_GROUP", useYn: "Y"},
callBack: function (res) {
var authGroup = [];
res.list.forEach(function (n) {
authGroup.push({
value: n.code, text: n.name + "(" + n.code + ")",
grpAuthCd: n.code, grpAuthNm: n.name,
data: n
});
});
this.authGroup = authGroup;
}
})
.done(function () {
console.log(this);
CODE = this; // this는 call을 통해 수집된 데이터들.
_this.pageButtonView.initView();
_this.searchView.initView();
_this.treeView01.initView();
_this.formView01.initView();
_this.gridView01.initView();
ACTIONS.dispatch(ACTIONS.PAGE_SEARCH);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment