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.
 
 
 
 
 
 

73 lines
1.9 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"%>
<title>服务测试</title>
<script type="text/javascript">
var _gridcode = "";
var _gridid = $.getUUID();
var sessionUser = $.getSessionUser();
//页面初始化
$(function() {
});
function test() {
var dataParam = {
_SRVNAME:'server.store.testQuartzSortIssueService'
,_SRVMETHOD:'process'
,_DATA:$.json2str({
})
};
//表单提交的ajax方法
$.cuajax({
url : 'wdk?action=wdk.pub&method=call_service&ajaxparam=' + new Date().getTime(),
method : "post",
timeout : WDK_Timeout,
data : dataParam,
success : function(result) {
$('#test_result').val(result);
var jres = $.str2json(result);
if('1'==jres.code){
alert('测试执行成功');
}else{
//alert(jres.desc);
}
}
,error:function(e){
alert('error:'+e);
}
});
}
</script>
<style>
</style>
</head>
<body class="easyui-layout" data-options="fit:true">
<div data-options="region:'north',border:false,collapsed:false" class="page-title">
<div class="page-toolbar">
<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'fa fa-check-square'" onclick="test()" id="test_id">测试服务</a>
</div>
</div>
<div data-options="region:'center',border:false,collapsed:false" style="margin-bottom:20px;margin-top:10px;x">
<div class="panel-heading">测试结果</div>
<div class="panel-body">
<form class="form-horizontal">
<div class="form-group">
<label for="test_result" class="col-sm-2 control-label">执行结果</label>
<div class="col-sm-10">
<textarea class="form-control" style="width:600px" id="test_result" rows="15"></textarea>
</div>
</div>
</form>
</div>
</div>
</body>
</html>