`
y398649217
  • 浏览: 2399 次
社区版块
存档分类
最新评论

Jfinal集成easyui标签-第三章标签使用

阅读更多

第一步编写HTML页面(普通列表)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户列表</title>
<%include("/base/listBase.html"){}%>
</head>
<body>
<div style="height: 100%;" class="wrapper wrapper-content">
<#table id ="user_table" url="/manage/user/dateList.html">
	<#tr field="ids" hidden="true" width="20" align="left" text="ID"></#tr>
	<#tr field="user_name" width="50" align="left" text="用户名"></#tr>
	<#tr field="nick_name" width="100" align="left" text="昵称"></#tr>
	<#tr field="status" dict="user_status" query="true" width="100" align="left" text="状态"></#tr>
	<#tr field="last_time" width="100" align="left" text="最后登录时间"></#tr>
	<#tr field="opt" align="left" text="操作"></#tr>  
	<#opt buttonClz="btn-info" type="openwin" url="/manage/user/addPage?ids={ids}" iconClz="fa-pencil" text="编辑"></#opt>
	<#opt buttonClz="btn-success" type="fun" funname="resetPass(ids)" iconClz="fa-refresh" text="重置密码"></#opt>
	<#opt buttonClz="btn-primary" exp="status#ne#3" funname="updateStatus(ids)" type="fun" iconClz="fa-check" text="启用"></#opt>
	<#opt buttonClz="btn-warning" exp="status#eq#3" funname="updateStatus(ids)" type="fun" iconClz="fa-ban" text="禁用"></#opt>
	<#opt buttonClz="btn-danger" type="del" url="/manage/user/del?ids={ids}" iconClz="fa-trash" text="删除"></#opt> 
</#table>
</div>
<div id="toolbar_user_table">
	<button onclick="seePage('/manage/user/addPage.html','查看用户','user_table')" class="btn btn-info btn-sm" type="button"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;查看</button>
	<button onclick="addPage('/manage/user/addPage.html','添加用户')" class="btn btn-success btn-sm" type="button"><i class="glyphicon glyphicon-plus"></i>&nbsp;添加</button>
</div>
<script type="text/javascript">
	//重置密码
	function resetPass(ids){
		createdialog("重置密码", "确定需要重置密码吗?", "/manage/user/resetPass?ids="+ids,"user_table");
	}
	//修改状态
	function updateStatus(ids){
		createdialog("更改用户状态", "确定需要修改吗?", "/manage/user/updateStatus?ids="+ids,"user_table");
	}
</script>
</body>
</html>

 第二步编写树形列表

<html>
<head>
<meta charset="UTF-8">
<title>用户列表</title>
<%include("/base/listBase.html"){}%>
</head>
<body>
<div style="height: 100%;" class="wrapper wrapper-content">
<#table pagination="false" treeTable="true" id ="menu_table" url="/manage/menu/dateList.html">
	<#tr field="ids" hidden="true" width="20" align="left" text="ID"></#tr>
	<#tr field="name" width="100" align="left" text="菜单名称"></#tr>
	<#tr field="icon" formatter="formatterIcon" width="50" align="left" text="菜单图标"></#tr>
	<#tr field="level" width="100" align="left" text="菜单等级"></#tr>
	<#tr field="orders" width="100" align="left" text="菜单排序"></#tr>
	<#tr field="url" width="200" align="left" text="菜单路径"></#tr>
	<#tr field="opt" align="left" text="操作"></#tr>  
	<#opt buttonClz="btn-info" type="openwin" url="/manage/menu/addPage?ids={ids}" iconClz="fa-pencil" text="编辑"></#opt>
	<#opt buttonClz="btn-danger" type="del" url="/manage/menu/del?ids={ids}" iconClz="fa-trash" text="删除"></#opt> 
</#table>
</div>
<div id="toolbar_menu_table">
	<button onclick="addPage('/manage/menu/addPage.html','添加菜单')" class="btn btn-success btn-sm" type="button"><i class="glyphicon glyphicon-plus"></i>&nbsp;添加</button>
</div>
<script type="text/javascript">
	function formatterIcon(val,row,index){
		if(val != null){
			return "<i class=\"fa fa-"+val+"\"></i>"
		}
	}
</script>
</body>
</html>

 效果图如下:

分页,工具栏,搜索,数据字典轻松搞定



 

 

  • 大小: 34.3 KB
  • 大小: 42.8 KB
0
0
分享到:
评论

相关推荐

    jfinal-mail-plugin-3.0-API文档-中英对照版.zip

    标签:fsdev、jfinal、mail、plugin、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准...

    jfinal-4.9.01-all.zip

    从官网下载,放CSDN加速下载不等待,jfinal最新版本功能扩展依赖包。 JFinal 是基于 Java 语言的极速 WEB + ORM + AOP + Template Engine 框架,其核心设计目标是开发迅速、代码量少、学习简单、功能强大、轻量级、...

    jfinal-mail-plugin-3.0-API文档-中文版.zip

    标签:fsdev、jfinal、mail、plugin、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译...

    jfinal插件集合demojfinal-demo.zip

    jfinal demo 程序,使用bootstrap 本人编写的多款插件,如使用coffeescript-maven-plugin编译coffeescript代码,使用lesscsss-maven-plugin编译lesscss代码,使用flyway-maven-plugin运行数据库脚本,支持多种定制...

    JFinal-ueditor-0.0.3-API文档-中文版.zip

    标签:dreamlu、JFinal、ueditor、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请...

    jfinal-2.1-src.zip

    jfinal框架源码,中国人编写的框架,适合于web开发

    jfinal-oauth2.0-server:jfinal-oauth2.0-服务器

    jfinal-oauth2.0-server jfinal-oauth2.0-server 基于,, 参考 实现了4.节描述的内容。 实现了OAuth 2.0定义了四种授权方式 授权码模式(authorization code): 先获取下次请求token的code,然后在带着code去请求...

    jfinal-jfinal-weixin-master.zip 基于maven jfinal 的微信公众号/小程序开发demo

    jfinal-jfinal-weixin-master.zip 基于maven jfinal 的微信公众号/小程序开发demo

    JFinal-ueditor-0.0.3-API文档-中英对照版.zip

    标签:dreamlu、JFinal、ueditor、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译...

    jFinal01-1.0-SNAPSHOT.war

    jFinal01-1.0-SNAPSHOT.war

    jfinal enjoy-3.3-manual

    jfinal enjoy-3.3-manual 开发使用手册 3.3版本 官方下载

    JFinal3.6-文档-离线版

    JFinal3.6-文档-离线版 。文档是通过爬虫抓取jfinal官网文档后生成的,因为本人公司内没有外网,无法在线查看文档,所以有次操作。 如果侵权,请联系本人删除,无意冒犯,还请见谅

    jfinal-oauth2.0-server:jfinal-oauth2.0-server,参考http

    jfinal-oauth2.0-server基于,参考实现了4.节描述的内容。实现了OAuth 2.0定义了四种授权方式授权码模式(authorization code): 先获取下次请求token的code,然后在带着code去请求token;简化模式(implicit):...

    jfinal-shiro-3.2.0-sources.jar

    JFinal集成Shiro插件,实现登录安全,权限控制等。。。。

    jfinal-3.0-API文档-中文版.zip

    标签:jfinal、中文文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。

    jfinal-3.0-API文档-中英对照版.zip

    标签:jfinal、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。 ...

    jfinal-3.3-manual.pdf

    JFinal 是基于 Java 语言的极速 WEB + ORM 开发框架,其核心设计目标是开发迅速、代 码量少、学习简单、功能强大、轻量级、易扩展、Restful。在拥有 Java 语言所有优势的同时 再拥有 ruby、python、php 等动态语言的...

    Jfinalplugin,angularjfinal-angular-icedog.zip

    并提供akka异步执行集成,多数据源自动orm映射,flyway数据库脚本升级, shiro 权限系统 freemarker-shiro标签支持,以及其他改进 使用angularjs作为前端框架, 以及 bootstrap requireJs+coffeescript+less...

    jfinal-2.1-all.zip

    Jfinal官方资料jfinal-2.1-all.zip

    jfinal-3.3-manual

    jfinal-3.3-manual 开发手册 java 使用帮助 官方下载

Global site tag (gtag.js) - Google Analytics