...
|
...
|
@@ -131,8 +131,30 @@ |
|
|
text: "是",
|
|
|
className: "btn-success",
|
|
|
onclick: function () {
|
|
|
$(dialog).dialog("hide");
|
|
|
goClear(pre);
|
|
|
|
|
|
|
|
|
var frontParam={};
|
|
|
frontParam.dataSourceInfo=_PAGE_REDIS_SOURCE;
|
|
|
frontParam.keyPrefix=pre;
|
|
|
|
|
|
$.post({
|
|
|
url: contextPath + "redisClear/clear",
|
|
|
data: frontParam,
|
|
|
dataType: "json",
|
|
|
success: function (resp) {
|
|
|
$(dialog).dialog("hide");
|
|
|
if (resp!=null&&resp.code == 200) {
|
|
|
localAlert('清除缓存成功', resp.data);
|
|
|
} else {
|
|
|
localAlert('清除缓存失败', resp.message);
|
|
|
}
|
|
|
},
|
|
|
error: function (e) {
|
|
|
$(dialog).dialog("hide");
|
|
|
localAlert('清除缓存失败', resp.message);
|
|
|
console.log(e);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}]
|
|
|
});
|
...
|
...
|
@@ -140,28 +162,6 @@ |
|
|
|
|
|
}
|
|
|
|
|
|
function goClear(pre){
|
|
|
var frontParam={};
|
|
|
frontParam.dataSourceInfo=_PAGE_REDIS_SOURCE;
|
|
|
frontParam.keyPrefix=pre;
|
|
|
|
|
|
$.post({
|
|
|
url: contextPath + "redisClear/clear",
|
|
|
data: frontParam,
|
|
|
dataType: "json",
|
|
|
success: function (resp) {
|
|
|
if (resp!=null&&resp.code == 200) {
|
|
|
localAlert('清除缓存成功', resp.data);
|
|
|
} else {
|
|
|
localAlert('清除缓存失败', resp.message);
|
|
|
}
|
|
|
},
|
|
|
error: function (e) {
|
|
|
localAlert('清除缓存失败', resp.message);
|
|
|
console.log(e);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function checkRate(nubmer)
|
|
|
{
|
...
|
...
|
|