Commit 4e5aed4d1fecf6b90fbe5350d80bab4f3f354df8
1 parent
ccde6988dd
Exists in
master
and in
8 other branches
add data import : basic config
Showing 3 changed files with 40 additions and 10 deletions
platform-data-api/pom.xml
View file @
4e5aed4
... | ... | @@ -28,16 +28,6 @@ |
28 | 28 | <artifactId>cxf-rt-ws-security</artifactId> |
29 | 29 | </dependency> |
30 | 30 | <dependency> |
31 | - <groupId>org.apache.velocity</groupId> | |
32 | - <artifactId>velocity</artifactId> | |
33 | - <version>1.7</version> | |
34 | - </dependency> | |
35 | - <dependency> | |
36 | - <groupId>org.apache.velocity</groupId> | |
37 | - <artifactId>velocity-tools</artifactId> | |
38 | - <version>2.0</version> | |
39 | - </dependency> | |
40 | - <dependency> | |
41 | 31 | <groupId>com.lyms.core</groupId> |
42 | 32 | <artifactId>platform-common</artifactId> |
43 | 33 | <version>${project.version}</version> |
platform-data-api/src/main/resources/macro.vm
View file @
4e5aed4
1 | +#macro(paging $page $url) | |
2 | + #set($nextPage = $page.page+1) | |
3 | + #set($prevousPage = $page.page - 1 ) | |
4 | + #if($page.pages > 1) | |
5 | + #if($page.prev) | |
6 | + <li> <a href="$!{request.contextPath}/$url?page=$prevousPage" class="active">上一页</a> </li> | |
7 | + #else | |
8 | + <li> <a disabled="true">上一页</a></li> | |
9 | + #end | |
10 | + | |
11 | + #foreach($num in $page.pageNums) | |
12 | + #if($num==$page.page) | |
13 | + <li class="active"><a href="$num" class="toPage">$num</a></li> | |
14 | + #else | |
15 | + <li><a href="$!{request.contextPath}/$url?page=$num" class="toPage">$num</a></li> | |
16 | + #end | |
17 | + #end | |
18 | + | |
19 | + #if($page.next) | |
20 | + <li> <a href="$!{request.contextPath}/$url?page=$nextPage" class="next">下一页</a></li> | |
21 | + #else | |
22 | + <li> <a disabled="true">下一页</a></li> | |
23 | + #end | |
24 | + #end | |
25 | + | |
26 | + <li class="active"> | |
27 | + <a disabled="true">$page.range[0]-$page.range[1] 共 $page.total</a> | |
28 | + </li> | |
29 | +#end |
pom.xml
View file @
4e5aed4
... | ... | @@ -475,6 +475,16 @@ |
475 | 475 | <artifactId>guava</artifactId> |
476 | 476 | <version>19.0-rc2</version> |
477 | 477 | </dependency> |
478 | + <dependency> | |
479 | + <groupId>org.apache.velocity</groupId> | |
480 | + <artifactId>velocity</artifactId> | |
481 | + <version>1.7</version> | |
482 | + </dependency> | |
483 | + <dependency> | |
484 | + <groupId>org.apache.velocity</groupId> | |
485 | + <artifactId>velocity-tools</artifactId> | |
486 | + <version>2.0</version> | |
487 | + </dependency> | |
478 | 488 | </dependencies> |
479 | 489 | </project> |