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.
277 lines
8.1 KiB
277 lines
8.1 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(){
|
|
//单据状态
|
|
$.combobox({
|
|
id : 'tbname',
|
|
url : 'wdk?action=wdk.pub&method=call_service&ajaxparam='+ new Date().getTime(),
|
|
queryParams : {
|
|
_SRVNAME : 'service.pf.cache',
|
|
_SRVMETHOD : 'tb_query',
|
|
_DATA : $.json2str({
|
|
|
|
})
|
|
,_RSTYPE:'combobox'
|
|
,_RSFIELD:'rows'
|
|
,_RSPARAM:$.json2str({
|
|
idField:'id'
|
|
,textField:'text'
|
|
})
|
|
|
|
},
|
|
required : false,
|
|
editable : false,
|
|
multiple : false,
|
|
initvalue : '',
|
|
height : 25,
|
|
tipPosition : 'right',
|
|
defaultOption : '请选择缓存表'
|
|
});
|
|
|
|
//初始化grid
|
|
$.grid({
|
|
id : _gridid,
|
|
containerid : 'layout_grid',
|
|
gridcode : _gridcode,
|
|
checkbox : true,
|
|
checkOnSelect : false,
|
|
selectOnCheck : true,
|
|
idField:"cache_uuid",
|
|
queryParams:{
|
|
_SRVNAME : 'service.pf.cache',
|
|
_SRVMETHOD : 'cache_pagequery',
|
|
_DATA : $.json2str({
|
|
tbname:''
|
|
})
|
|
,_RSTYPE:'grid'
|
|
,_RSFIELD:'cache_uuid'
|
|
,_RSPARAM:$.json2str({
|
|
pagequery:'1'
|
|
})
|
|
|
|
},
|
|
fitColumns:true, //是否自动填充满
|
|
nowrap:true, //自动换行
|
|
pagination:true,
|
|
onLoaded:function(){
|
|
$.wait_close();
|
|
}
|
|
});
|
|
});
|
|
|
|
function btn_add(){
|
|
$('#dlg_proj_code').val('');
|
|
$('#dlg_proj_uuid').val('');
|
|
$('#dlg_proj_name').val('');
|
|
$('#dlg_proj_manager').val('');
|
|
$('#dlg_svn_root').val('');
|
|
$('#dlg_dev_root').val('');
|
|
$('#dlg_conf_root').val('');
|
|
$('#dlg_ordercode').val('');
|
|
$('#dlg_type').val('add');
|
|
$('#dlg_proj_oper').dialog('open');
|
|
}
|
|
function btn_update(){
|
|
var row = $.grid_getSelected({
|
|
id:_gridid
|
|
});
|
|
if(!row){
|
|
alert('请选择记录');
|
|
return;
|
|
}
|
|
|
|
$('#dlg_proj_code').val(row.proj_code);
|
|
$('#dlg_proj_uuid').val(row.proj_uuid);
|
|
$('#dlg_proj_name').val(row.proj_name);
|
|
$('#dlg_proj_manager').val(row.proj_manager);
|
|
$('#dlg_svn_root').val(row.svn_root);
|
|
$('#dlg_dev_root').val(row.dev_root);
|
|
$('#dlg_conf_root').val(row.conf_root);
|
|
$('#dlg_ordercode').val(row.ordercode);
|
|
$('#dlg_type').val('update');
|
|
$('#dlg_proj_oper').dialog('open');
|
|
}
|
|
function btn_remove(){
|
|
|
|
}
|
|
|
|
//查询
|
|
function btn_query(){
|
|
/*
|
|
var is_participate = $("[name='is_participate']:checked").val();
|
|
if(is_participate == "1"){
|
|
$("#btn_yes").linkbutton("enable");
|
|
$("#btn_no").linkbutton("disable");
|
|
}else{
|
|
$("#btn_yes").linkbutton("disable");
|
|
$("#btn_no").linkbutton("enable");
|
|
}
|
|
*/
|
|
//组织参数
|
|
var _data = getQueryData();
|
|
$.grid_reload({
|
|
id:_gridid,
|
|
queryParams:_data
|
|
});
|
|
}
|
|
|
|
function getQueryData(){
|
|
var _data = {
|
|
_SRVNAME:'service.cmpl.main',
|
|
_SRVMETHOD:'proj_query',
|
|
_DATA:$.json2str({
|
|
proj_code:$('#proj_code').val()
|
|
,proj_name : $('#proj_name').val()
|
|
}),
|
|
orderbyfield:'ordercode desc',
|
|
_RSTYPE:'grid',
|
|
_RSFIELD:'result',
|
|
_RSPARAM:$.json2str({pagequery:'1'})
|
|
};
|
|
return _data;
|
|
}
|
|
function page_add_submit(){
|
|
var _data = {
|
|
_SRVNAME:'service.cmpl.main',
|
|
_SRVMETHOD:'proj_addupdate',
|
|
_DATA:$.json2str({
|
|
jproj:{
|
|
proj_code : $('#dlg_proj_code').val(),
|
|
proj_name : $('#dlg_proj_name').val(),
|
|
proj_manager : $('#dlg_proj_manager').val(),
|
|
svn_root : $('#dlg_svn_root').val(),
|
|
dev_root : $('#dlg_dev_root').val(),
|
|
conf_root : $('#dlg_conf_root').val(),
|
|
ordercode : $('#dlg_ordercode').val(),
|
|
proj_uuid : $('#dlg_proj_uuid').val(),
|
|
type: $('#dlg_type').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);
|
|
if (jres.code == "1") { //操作成功
|
|
alert(jres.desc);
|
|
btn_query();
|
|
}else{
|
|
alert(jres.desc);
|
|
}
|
|
},
|
|
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_add()" >新增</a>
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-info-circle'" onclick="btn_update()" >修改</a>
|
|
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-info-circle'" onclick="btn_remove()" >删除</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>缓存表:</label>
|
|
<div>
|
|
<input id="tbname" name="tbname"/>
|
|
</div>
|
|
</div>
|
|
<div class="inputgroup">
|
|
<label>缓存键:</label>
|
|
<div>
|
|
<input id="cache_key" name="cache_key" placeholder="请输入缓存键"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="h_layout">
|
|
<div>
|
|
<div class="inputgroup">
|
|
<label></label>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
<div class="inputgroup">
|
|
<label></label>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="width:125px;" >
|
|
<a class="eapbutton" style="float:right;" onclick="btn_query()"><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>
|