|
|
@@ -0,0 +1,52 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
+<head>
|
|
|
+ <th:block th:include="include :: header('缓存清理')" />
|
|
|
+</head>
|
|
|
+<body class="gray-bg">
|
|
|
+<div class="wrapper wrapper-content">
|
|
|
+ <div class="col-sm-12">
|
|
|
+ <div class="row" style="margin-top: 10px;">
|
|
|
+ <label class="col-sm-1 control-label" style="text-align: right;padding: 0;height: 34px;line-height: 34px;">经销商代码:</label>
|
|
|
+ <div class="col-sm-8">
|
|
|
+ <input type="text" id="keyName" name="" class="form-control" placeholder="输入经销商代码">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row" style="margin-top: 10px;">
|
|
|
+ <label class="col-sm-1 control-label"></label>
|
|
|
+ <button id="applyBtn" class="btn btn-success" style="margin-left: 15px;">
|
|
|
+ 提交
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+<th:block th:include="include :: footer" />
|
|
|
+<script type="text/javascript">
|
|
|
+ var domain = window.location.host;
|
|
|
+ var ht = domain.indexOf('localhost') != -1 ? 'http://' : 'https://';
|
|
|
+ var prefixEdit = ht + domain + "/oneportal/wxportal/magnet";
|
|
|
+ // var prefixEdit = 'https://suishenbangtest.nipponpaint.com.cn/oneportal/wxportal/magnet';
|
|
|
+
|
|
|
+ $('#applyBtn').on('click', function (res) {
|
|
|
+ var keyNameValue = $('#keyName').val();
|
|
|
+ var data = {
|
|
|
+ keyName:keyNameValue
|
|
|
+ }
|
|
|
+ console.log(1,data);
|
|
|
+ $.ajax({
|
|
|
+ url: prefixEdit + '/cleanRedisByDb',
|
|
|
+ type: "post",
|
|
|
+ contentType: 'application/json',
|
|
|
+ data: JSON.stringify(data),
|
|
|
+ success: function (result) {
|
|
|
+ if (result.code == 0) {
|
|
|
+ $.modal.alertWarning('提交成功');
|
|
|
+ } else {
|
|
|
+ $.modal.alertWarning(result.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+</script>
|
|
|
+</html>
|