You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
4.3 KiB
135 lines
4.3 KiB
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<%@include file="../../wdk/theme/je/module/public/common.jsp"%>
|
|
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/je/core/js/wdk.datatable.js"></script>
|
|
<title>万能钥匙</title>
|
|
<style type="text/css">
|
|
.inputgroup{
|
|
width : 390px;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
//grid相关
|
|
var _gridcode = "eap.manage.cachegrid";
|
|
var _gridid = $.getUUID();
|
|
//初始化
|
|
$(function(){
|
|
});
|
|
|
|
//重新加载
|
|
function btn_make(){
|
|
var _data = {
|
|
_SRVNAME:'service.pf.cache',
|
|
_SRVMETHOD:'random_key',
|
|
_DATA:$.json2str({
|
|
code:$('#code').val()
|
|
,expire:$('#expire').val()
|
|
})
|
|
};
|
|
//打开旋转
|
|
$.wait_open();
|
|
//加载数据
|
|
$.cuajax({
|
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
|
,method:"post"
|
|
,timeout:WDK_Timeout
|
|
,data:_data
|
|
,success:function(result) {
|
|
//关闭旋转
|
|
$.wait_close();
|
|
var jres = $.str2json(result);
|
|
$('#code_key').val(jres.key);
|
|
},
|
|
error:function(result){
|
|
$.wait_close();
|
|
alert('网络错误!result='+result);
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<div class="easyui-layout" data-options="fit:true">
|
|
<div data-options="region:'north',border:false,collapsed:false" class="page-title" style="overflow:hidden">
|
|
<div class="page-toolbar" style="padding-bottom: 5px;">
|
|
<!-- <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-info-circle'" onclick="btn_reload_ons()" >通过消息加载</a> -->
|
|
</div>
|
|
</div>
|
|
<div data-options="region:'center',border:false,collapsed:false" >
|
|
<div class="easyui-layout" data-options="fit:true">
|
|
<div data-options="region:'north',border:false,collapsed:false" class="row-1" style="padding:0 10px;overflow:hidden;height:120px;" >
|
|
<form id="search_form" >
|
|
<div class="h_layout">
|
|
<div>
|
|
<div class="inputgroup">
|
|
<label>请输入code:</label>
|
|
<div>
|
|
<input id="code" name="code" style="width:300px;"/>
|
|
</div>
|
|
</div>
|
|
<div class="inputgroup">
|
|
<label>超时时间(分钟):</label>
|
|
<div>
|
|
<input id="expire" name="expire" value="5" placeholder=""/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="h_layout">
|
|
<div>
|
|
<div class="inputgroup">
|
|
<label>加密串:</label>
|
|
<div>
|
|
<input id="code_key" name="code_key" placeholder=""/>
|
|
</div>
|
|
</div>
|
|
<div class="inputgroup">
|
|
<label></label>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="width:125px;" >
|
|
<a class="eapbutton" style="float:right;" onclick="btn_make()"><i class="fa fa-search" aria-hidden="true"></i><span><span>生成</span></span></a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div id="layout_grid" data-options="region:'center',border:false,collapsed:false" style="padding:0px 10px;" >
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 页面新增窗口 -->
|
|
<div id="dlg_proj_oper" class="easyui-dialog" style="width:350px;height:350px;padding:10px 10px" title="新增缓存" closed="true" buttons="#dlg_button_page">
|
|
<table>
|
|
<tr>
|
|
<td> <label>选择缓存表:</label></td>
|
|
<td>
|
|
<input id="dlg_cache_tbname" name="dlg_cache_tbname" class="easyui-validatebox" style="width:200px" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> <label>缓存键:</label></td>
|
|
<td><input id="dlg_cache_key" name="dlg_cache_key" class="easyui-validatebox" style="width:200px" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td> <label>缓存值:</label></td>
|
|
<td><input id="dlg_cache_value" name="dlg_cache_value" class="easyui-validatebox" style="width:200px" ></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="dlg_button_page">
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="page_add_submit()">确定</a>
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg_proj_oper').dialog('close')">关闭</a>
|
|
</div>
|
|
</body>
|
|
</html>
|