|
@@ -106,11 +106,11 @@ let mobContentObj = {
|
106
|
106
|
},
|
107
|
107
|
load: function() {
|
108
|
108
|
var _this = this;
|
109
|
|
- this.isSearch = true;
|
110
|
109
|
var callbackFn = function(result) {
|
111
|
110
|
console.log(result);
|
112
|
|
- _this.isSearch = false;
|
113
|
|
- _this.totPage = result.gridTotal;
|
|
111
|
+ if(mobContentObj.list.listPage >= result.gridTotal) {
|
|
112
|
+ CommonObj.moreView('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA', false);
|
|
113
|
+ }
|
114
|
114
|
$.each(result.gridRows, function (i, item) {
|
115
|
115
|
$('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MPOMNG06010_LIST_ITEM_ROWCOPY').html());
|
116
|
116
|
var $li = $('#ITP_LIST_MPOMNG06010_LIST_ITEM_AREA .panel-group > .history_list2:last');
|
|
@@ -126,11 +126,10 @@ let mobContentObj = {
|
126
|
126
|
_this.rows.push(item);
|
127
|
127
|
});
|
128
|
128
|
};
|
129
|
|
- var errFn = function() { _this.isSearch = false;};
|
130
|
129
|
const param = $('#ITP_FORM_MPOMNG06010_LIST_SEARCH').serializeObject();
|
131
|
|
- param.gridPage = ++this.listPage;
|
132
|
|
- param.gridSize = this.listSize;
|
133
|
|
- fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST', errFn);
|
|
130
|
+ param.gridPage = ++mobContentObj.list.listPage;
|
|
131
|
+ param.gridSize = mobile_list_size;
|
|
132
|
+ fn_ajax_call(API_MOBILE_GRID_LIST, JSON.stringify(param), callbackFn, 'POST');
|
134
|
133
|
},
|
135
|
134
|
save: function() {
|
136
|
135
|
var _this = this;
|