Browse Source

首页展示所有接口

sunyj 9 years ago
parent
commit
8e1451084f

+ 70 - 1
src/main/webapp/WEB-INF/views/index.html

@@ -1,5 +1,74 @@
+<!DOCTYPE html>
 <html>
+<head>
+<meta charset="UTF-8">
+<title>Report</title>
+<link rel="stylesheet" href="static/css/index.css">
+</head>
 <body>
-	<h2>你好Hello World!</h2>
+	<div id="mainContainer">
+		<ol>
+			<strong><li class="title1">预览</li></strong>
+			<ol>
+				<u><li class="href">print?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&otherParameters={'id':1}&printType=PREVIEW</li></u>
+				<u><li class="href">preview?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&printType=PREVIEW</li></u>
+				<u><li class="href">preview2?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&printType=PREVIEW</li></u>
+			</ol>
+
+			<strong><li class="title1">打印</li></strong>
+			<ol>
+				<u><li class="href">print?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&printType=PRINT</li></u>
+			</ol>
+
+
+			<strong><li class="title1">导出</li></strong>
+			<ol>
+				<u><li class="href">print?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&printType=PDF</li></u>
+				<u><li class="href">print?userName=UAS&reportName=Purchase&whereCondition=where
+						%20rownum<10&printType=EXCEL</li></u>
+			</ol>
+
+			<strong><li class="title1">上传</li></strong>
+			<ol>
+				<u><li class="href">fileUpload?userName=UAS</li></u>
+				<u><li class="href">fileUpload?userName=tmp</li></u>
+			</ol>
+
+			<strong><li class="title1">下载</li></strong>
+			<ol>
+				<u><li class="href">XXX</li></u>
+			</ol>
+
+			<strong><li class="title1">接口</li></strong>
+			<ol>
+				<strong><li class="title2">打印接口</li></strong>
+				<ol>
+					<u><li class="href">print/loadPdfData?userName=UAS&reportName=Purchase&whereCondition=where
+							%20rownum<30&pageIndex=2</li></u>
+					<u><li class="href">print/export?userName=UAS&reportName=Purchase&whereCondition=where
+							%20rownum<10&exportFileType=xls_with_only_data</li></u>
+				</ol>
+				<strong><li class="title2">资源接口</li></strong>
+				<ol>
+					<u><li class="href">resources?folderPath=/</li></u>
+					<u><li class="href">resources/sync?userName=UAS</li></u>
+					<u><li class="href">resources/download?filePath=/UAS/jrxml/Purchase.jrxml&mimeType=application/jrxml&exportPath=C:\Users\sunyj-pc\Desktop\Purchase.jrxml</li></u>
+				</ol>
+				<strong><li class="title2">B2C</li></strong>
+				<ol>
+					<u><li class="href">print?userName=B2C&profile=test&reportName=order&whereCondition=where
+							%20rownum<30</li></u>
+				</ol>
+			</ol>
+		</ol>
+	</div>
 </body>
+
+<script src="static/lib/jquery/jquery.min.js"></script>
+<script src="static/js/index/app.js"></script>
 </html>

+ 23 - 0
src/main/webapp/resources/css/index.css

@@ -0,0 +1,23 @@
+body {
+	font-family: courier;
+	margin: 30px;
+}
+
+li.title1 {
+	font-size: 20px;
+	margin-top: 20px;
+	margin-bottom: 10px;
+	color: #404040;
+}
+
+li.title2 {
+	font-size: 15px;
+	color: #404040;
+}
+
+li.href {
+	border: 0;
+	cursor: pointer;
+	outline: none;
+	margin-bottom: 10px;
+}

+ 3 - 0
src/main/webapp/resources/js/index/app.js

@@ -0,0 +1,3 @@
+$("li.href").click(function() {
+	window.open(this.textContent);
+});