...
|
...
|
@@ -101,22 +101,22 @@ grid.prototype = { |
|
|
param.page = p.page;
|
|
|
} else {
|
|
|
|
|
|
if(location.hash.search(/page=(\d+)/g)>-1){
|
|
|
if (location.hash.search(/page=(\d+)/g) > -1) {
|
|
|
param.page = /page=(\d+)/g.exec(location.hash)[1];
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
if(param.page&&p.hash){
|
|
|
if(location.hash.search(/page=(\d+)/g)>-1){
|
|
|
location.hash=location.hash.replace(/page=(\d+)/g,function(source,$1){
|
|
|
return "page="+param.page;
|
|
|
if (param.page && p.hash) {
|
|
|
if (location.hash.search(/page=(\d+)/g) > -1) {
|
|
|
location.hash = location.hash.replace(/page=(\d+)/g, function(source, $1) {
|
|
|
return "page=" + param.page;
|
|
|
})
|
|
|
}else{
|
|
|
location.hash+="page="+param.page;
|
|
|
} else {
|
|
|
location.hash += "page=" + param.page;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (param.productStatusStr == 'all') {
|
|
|
param.productStatusStr = '';
|
|
|
}
|
...
|
...
|
@@ -125,6 +125,10 @@ grid.prototype = { |
|
|
param.isInfoMiss = '';
|
|
|
}
|
|
|
|
|
|
if (p.size) {
|
|
|
param.size = p.size;
|
|
|
}
|
|
|
|
|
|
return param;
|
|
|
},
|
|
|
__pagination: function(pagination) {
|
...
|
...
|
@@ -194,6 +198,7 @@ grid.prototype = { |
|
|
dataType: 'json',
|
|
|
beforeSend: function() {
|
|
|
//发送请求
|
|
|
g.tbody.html("<tr><td colspan=100><center>正在加载中...</center></td></tr>");
|
|
|
},
|
|
|
success: function(res) {
|
|
|
var data = res.data.data;
|
...
|
...
|
@@ -248,7 +253,7 @@ grid.prototype = { |
|
|
var num = _r_num() + _count;
|
|
|
|
|
|
item._num = _count;
|
|
|
item.rowid = "wqt_" + num + "_" + _count;
|
|
|
// item.rowid = "wqt_" + num + "_" + _count;
|
|
|
if (!item) continue;
|
|
|
g.records.push(_count);
|
|
|
item.__index = _count;
|
...
|
...
|
|