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.
89 lines
2.4 KiB
89 lines
2.4 KiB
4 weeks ago
|
<%@ 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"%>
|
||
|
<title>服务测试</title>
|
||
|
|
||
|
<style>
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body class="easyui-layout" data-options="fit:true" style="padding:10px 10px 10px 10px;">
|
||
|
<div title="选择服务" data-options="region:'north',border:true,collapsed:false" style="height:140px;" >
|
||
|
<div >
|
||
|
<label for="service_name" class="col-sm-2 control-label">服务名称</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="server_name" id="server_name" name="server_name" style="width:100%">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div >
|
||
|
<label for="service_method" class="col-sm-2 control-label">服务方法</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="server_method" id="server_method" name="server_method" style="width:100%">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div title="服务输入参" data-options="region:'center',border:true,collapsed:false" >
|
||
|
<div class="easyui-layout" data-options="fit:true">
|
||
|
<div data-options="region:'north',border:false,collapsed:false" style="height:40px;" >
|
||
|
<div >
|
||
|
<button id="dotest" class="btn btn-danger" >执行测试</button>
|
||
|
<input type="checkbox" id="pagequery" value="1">注入分页信息
|
||
|
</div>
|
||
|
</div>
|
||
|
<div data-options="region:'center',border:false,collapsed:false" >
|
||
|
<textarea id="server_para" rows="5" style="height:100%;width:100%;"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div title="测试结果" data-options="region:'south',border:true,collapsed:false" style="height:240px;" >
|
||
|
<div style="height:100%">
|
||
|
<textarea id="test_result" rows="5" style="height:100%;width:100%;"></textarea>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
|
||
|
$(function(){
|
||
|
//注册按钮事件
|
||
|
$("#dotest").on("click", function(){
|
||
|
var SRVNAME = $('#server_name').val();
|
||
|
var SRVMETHOD = $('#server_method').val();
|
||
|
var DATA = $('#server_para').val();
|
||
|
|
||
|
var param = {
|
||
|
_SRVNAME: SRVNAME,
|
||
|
_SRVMETHOD: SRVMETHOD,
|
||
|
_DATA: DATA
|
||
|
};
|
||
|
|
||
|
if($('#pagequery').is(":checked"))
|
||
|
{
|
||
|
param.rows = '10';
|
||
|
param.page = '1';
|
||
|
}
|
||
|
|
||
|
$('#test_result').val('');
|
||
|
|
||
|
$.cuajax({
|
||
|
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+new Date().getTime()
|
||
|
,data:param
|
||
|
,success:function(result){
|
||
|
$('#test_result').val(result);
|
||
|
}
|
||
|
,error:function(e){
|
||
|
alert('error:'+e);
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</html>
|