Authored by liuyue

搭配

... ... @@ -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;
... ...
... ... @@ -110,6 +110,7 @@ common.util.__ajax({
var g = new common.grid({
el: "#dapeiTable",
hash: false,
size: 5,
parms: function() {
return {
productSkn: productSkn
... ...
... ... @@ -13,10 +13,10 @@ var config = {
redis: null,
apiKey: 'sd4H1ecAqlp',
port: 30016,
// domain: 'http://192.168.102.202:8088/platform',
domain: 'http://192.168.102.202:8088/platform',
//domain: 'http://192.168.102.216:8088/platform',
//domain: 'http://172.16.6.227:8088/platform', //马力
domain: 'http://172.16.6.176:8088/platform', //王书生
//domain: 'http://172.16.6.176:8088/platform', //王书生
loggers: {
api: {
level: 'verbose',
... ...
<div class="panel panel-default">
<form action="" class="form-horizontal form-bordered">
<a class="netsale-position" href="javascript:;" name="position13"></a>
<div class="panel-heading">
<a class="netsale-position" href="javascript:;" name="position13"></a>
<div class="panel-btns" style="display: none;">
<a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
</div>
... ...