Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
b3604aa8
Commit
b3604aa8
authored
Nov 14, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加角色
parent
8a05cc6d
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
941 additions
and
17 deletions
+941
-17
src/main/webapp/WEB-INF/system/code/code.html
+47
-0
src/main/webapp/WEB-INF/system/dict/dict.html
+38
-0
src/main/webapp/WEB-INF/system/dict/dict_add.html
+65
-0
src/main/webapp/WEB-INF/system/dict/dict_edit.html
+87
-0
src/main/webapp/WEB-INF/system/log/log.html
+46
-0
src/main/webapp/WEB-INF/system/log/login_log.html
+36
-0
src/main/webapp/WEB-INF/system/menu/menu.html
+41
-0
src/main/webapp/WEB-INF/system/menu/menu_add.html
+40
-0
src/main/webapp/WEB-INF/system/menu/menu_edit.html
+42
-0
src/main/webapp/WEB-INF/system/notice/notice.html
+38
-0
src/main/webapp/WEB-INF/system/notice/notice_add.html
+39
-0
src/main/webapp/WEB-INF/system/notice/notice_edit.html
+39
-0
src/main/webapp/WEB-INF/system/role/role.html
+75
-0
src/main/webapp/WEB-INF/system/role/role_add.html
+52
-0
src/main/webapp/WEB-INF/system/role/role_assign.html
+75
-0
src/main/webapp/WEB-INF/system/role/role_edit.html
+51
-0
src/main/webapp/assets/modular/system/role/role.js
+22
-17
src/main/webapp/assets/modular/system/role/role_add.js
+108
-0
src/main/webapp/assets/modular/system/role/role_edit.js
+0
-0
No files found.
src/main/webapp/WEB-INF/system/code/code.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-6 col-sm-offset-3"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
代码生成
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
模块英文名称
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"moduleName"
>
<span
class=
"help-block m-b-none"
>
例如:system
</span>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
业务名称
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"bizChName"
>
<span
class=
"help-block m-b-none"
>
例如:测试
</span>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
业务英文名称
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"bizEnName"
>
<span
class=
"help-block m-b-none"
>
例如:test
</span>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
输出路径
</label>
<div
class=
"col-sm-10"
>
<input
type=
"text"
class=
"form-control"
id=
"path"
>
<span
class=
"help-block m-b-none"
>
默认路径为D:\ideaSpace\guns,可修改为您的项目的路径
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<button
class=
"btn btn-primary"
onclick=
"Code.generate()"
>
代码生成
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/code/code.js"
></script>
@}
src/main/webapp/WEB-INF/system/dict/dict.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
字典管理
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"row row-lg"
>
<div
class=
"col-sm-12"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
>
<
#
NameCon
id=
"condition"
name=
"名称"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"Dict.search()"
/>
</div>
</div>
<div
class=
"hidden-xs"
id=
"DictTableToolbar"
role=
"group"
>
@if(shiro.hasPermission("/dict/add")){
<
#
button
name=
"添加"
icon=
"fa-plus"
clickFun=
"Dict.openAddDict()"
/>
@}
@if(shiro.hasPermission("/dict/update")){
<
#
button
name=
"修改"
icon=
"fa-plus"
clickFun=
"Dict.openDictDetail()"
space=
"true"
/>
@}
@if(shiro.hasPermission("/dict/delete")){
<
#
button
name=
"删除"
icon=
"fa-plus"
clickFun=
"Dict.delete()"
space=
"true"
/>
@}
</div>
<
#
table
id=
"DictTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/dict/dict.js"
></script>
@}
src/main/webapp/WEB-INF/system/dict/dict_add.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
>
<input
type=
"hidden"
id=
"id"
value=
""
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
id=
"itemsArea"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
类型编码
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
id=
"dictCode"
type=
"text"
>
</div>
<label
class=
"col-sm-2 control-label"
>
类型名称
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
id=
"dictName"
type=
"text"
>
</div>
<div
class=
"col-sm-2"
>
<
#
button
btnCss=
"info"
name=
"增加"
icon=
"fa-plus"
clickFun=
"DictInfoDlg.addItem()"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
id=
"dictTips"
type=
"text"
>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
</div>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"DictInfoDlg.addSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"DictInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
<script
type=
"text/template"
id=
"itemTemplate"
>
<
div
class
=
"form-group"
name
=
"dictItem"
id
=
"dictItem"
>
<
label
class
=
"col-sm-1 control-label"
>
值
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemCode"
>
<
/div
>
<
label
class
=
"col-sm-1 control-label"
>
名称
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemName"
>
<
/div
>
<
label
class
=
"col-sm-1 control-label"
>
序号
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemNum"
>
<
/div
>
<
div
class
=
"col-sm-2"
>
<
#
button
btnCss
=
"danger"
name
=
"删除"
id
=
"cancel"
icon
=
"fa-remove"
clickFun
=
"DictInfoDlg.deleteItem(event)"
/>
<
/div
>
<
/div
>
</script>
<script
src=
"${ctxPath}/static/modular/system/dict/dict_info.js"
></script>
@}
\ No newline at end of file
src/main/webapp/WEB-INF/system/dict/dict_edit.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
>
<input
type=
"hidden"
id=
"id"
value=
""
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
id=
"itemsArea"
>
<input
type=
"hidden"
id=
"itemSize"
value=
"${subDicts.~size!0}"
/>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
类型编码
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
id=
"dictCode"
type=
"text"
value=
"${dict.code}"
>
</div>
<label
class=
"col-sm-2 control-label"
>
类型名称
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
id=
"dictName"
type=
"text"
value=
"${dict.name}"
>
<input
type=
"hidden"
id=
"dictId"
value=
"${dict.id}"
>
</div>
<div
class=
"col-sm-2"
>
<
#
button
btnCss=
"info"
name=
"增加"
icon=
"fa-plus"
clickFun=
"DictInfoDlg.addItem()"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-8"
>
<input
class=
"form-control"
id=
"dictTips"
type=
"text"
value=
"${dict.tips}"
>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
@for(item in subDicts){
<div
class=
"form-group"
name=
"dictItem"
id=
"dictItem${itemLP.index}"
>
<label
class=
"col-sm-1 control-label"
>
值
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
type=
"text"
name=
"itemCode"
value=
"${item.code}"
>
</div>
<label
class=
"col-sm-1 control-label"
>
名称
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
type=
"text"
name=
"itemName"
value=
"${item.name}"
>
</div>
<label
class=
"col-sm-1 control-label"
>
序号
</label>
<div
class=
"col-sm-2"
>
<input
class=
"form-control"
type=
"text"
name=
"itemNum"
value=
"${item.num}"
>
</div>
<div
class=
"col-sm-2"
>
<
#
button
btnCss=
"danger"
name=
"删除"
id=
"cancel"
icon=
"fa-remove"
clickFun=
"DictInfoDlg.deleteItem(event)"
/>
</div>
</div>
@}
</input>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"DictInfoDlg.editSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"DictInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
<script
type=
"text/template"
id=
"itemTemplate"
>
<
div
class
=
"form-group"
name
=
"dictItem"
id
=
"dictItem"
>
<
label
class
=
"col-sm-1 control-label"
>
值
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemCode"
>
<
/div
>
<
label
class
=
"col-sm-1 control-label"
>
名称
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemName"
>
<
/div
>
<
label
class
=
"col-sm-1 control-label"
>
序号
<
/label
>
<
div
class
=
"col-sm-2"
>
<
input
class
=
"form-control"
type
=
"text"
name
=
"itemNum"
>
<
/div
>
<
div
class
=
"col-sm-2"
>
<
#
button
btnCss
=
"danger"
name
=
"删除"
id
=
"cancel"
icon
=
"fa-remove"
clickFun
=
"DictInfoDlg.deleteItem(event)"
/>
<
/div
>
<
/div
>
</script>
<script
src=
"${ctxPath}/static/modular/system/dict/dict_info.js"
></script>
@}
\ No newline at end of file
src/main/webapp/WEB-INF/system/log/log.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
业务日志
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"row row-lg"
>
<div
class=
"col-sm-12"
>
<div
class=
"row"
>
<div
class=
"col-sm-2"
>
<
#
TimeCon
id=
"beginTime"
name=
"开始时间"
isTime=
"false"
pattern=
"YYYY-MM-DD"
/>
</div>
<div
class=
"col-sm-2"
>
<
#
TimeCon
id=
"endTime"
name=
"结束时间"
isTime=
"false"
pattern=
"YYYY-MM-DD"
/>
</div>
<div
class=
"col-sm-2"
>
<
#
NameCon
id=
"logName"
name=
"日志名称"
/>
</div>
<div
class=
"col-sm-2"
>
<
#
SelectCon
id=
"logType"
name=
"日志类型"
>
<option
value=
"0"
>
全部
</option>
<option
value=
"1"
>
业务日志
</option>
<option
value=
"2"
>
异常日志
</option>
</
#
SelectCon>
</div>
<div
class=
"col-sm-2"
>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"OptLog.search()"
/>
</div>
</div>
<div
class=
"hidden-xs"
id=
"OptLogTableToolbar"
role=
"group"
>
<
#
button
name=
"查看详情"
icon=
"fa-plus"
clickFun=
"OptLog.detail()"
/>
@if(shiro.hasPermission("/log/delLog")){
<
#
button
name=
"清空日志"
icon=
"fa-plus"
clickFun=
"OptLog.delLog()"
space=
"true"
/>
@}
</div>
<
#
table
id=
"OptLogTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/log/log.js"
></script>
@}
src/main/webapp/WEB-INF/system/log/login_log.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
登录日志
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"row row-lg"
>
<div
class=
"col-sm-12"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
>
<
#
TimeCon
id=
"beginTime"
name=
"开始时间"
isTime=
"false"
pattern=
"YYYY-MM-DD"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
TimeCon
id=
"endTime"
name=
"结束时间"
isTime=
"false"
pattern=
"YYYY-MM-DD"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
NameCon
id=
"logName"
name=
"日志名称"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"LoginLog.search()"
/>
</div>
</div>
<div
class=
"hidden-xs"
id=
"LoginLogTableToolbar"
role=
"group"
>
<
#
button
name=
"清空日志"
icon=
"fa-plus"
clickFun=
"LoginLog.delLog()"
/>
</div>
<
#
table
id=
"LoginLogTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/log/login_log.js"
></script>
@}
src/main/webapp/WEB-INF/system/menu/menu.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
菜单管理
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"row row-lg"
>
<div
class=
"col-sm-12"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
>
<
#
NameCon
id=
"menuName"
name=
"菜单名称"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
NameCon
id=
"level"
name=
"层级"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"Menu.search()"
/>
</div>
</div>
<div
class=
"hidden-xs"
id=
"menuTableToolbar"
role=
"group"
>
@if(shiro.hasPermission("/menu/add")){
<
#
button
name=
"添加"
icon=
"fa-plus"
clickFun=
"Menu.openAddMenu()"
/>
@}
@if(shiro.hasPermission("/menu/edit")){
<
#
button
name=
"修改"
icon=
"fa-edit"
clickFun=
"Menu.openChangeMenu()"
space=
"true"
/>
@}
@if(shiro.hasPermission("/menu/remove")){
<
#
button
name=
"删除"
icon=
"fa-remove"
clickFun=
"Menu.delMenu()"
space=
"true"
/>
@}
</div>
<
#
table
id=
"menuTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/menu/menu.js"
></script>
@}
src/main/webapp/WEB-INF/system/menu/menu_add.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
id=
"menuInfoForm"
>
<input
type=
"hidden"
id=
"id"
value=
""
>
<div
class=
"row"
>
<div
class=
"col-sm-6 b-r"
>
<
#
input
id=
"name"
name=
"名称"
underline=
"true"
/>
<
#
input
id=
"code"
name=
"菜单编号"
underline=
"true"
/>
<
#
input
id=
"pcodeName"
name=
"父级编号"
underline=
"true"
hidden=
"pcode"
readonly=
"readonly"
clickFun=
"MenuInfoDlg.showMenuSelectTree(); return false;"
style=
"background-color: #ffffff !important;"
selectFlag=
"true"
selectId=
"pcodeTreeDiv"
selectTreeId=
"pcodeTree"
selectStyle=
"width:244px !important;"
/>
<
#
select
id=
"ismenu"
name=
"是否是菜单"
>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
不是
</option>
</
#
select>
</div>
<div
class=
"col-sm-6"
>
<
#
input
id=
"url"
name=
"请求地址"
underline=
"true"
/>
<
#
input
id=
"num"
name=
"排序"
underline=
"true"
/>
<
#
input
id=
"icon"
name=
"图标"
underline=
"false"
/>
</div>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"MenuInfoDlg.addSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"MenuInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/menu/menu_info.js"
></script>
@}
src/main/webapp/WEB-INF/system/menu/menu_edit.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
id=
"menuInfoForm"
>
<input
type=
"hidden"
id=
"id"
value=
"${menu.id}"
>
<input
type=
"hidden"
id=
"ismenuValue"
value=
"${menu.ismenu}"
>
<div
class=
"row"
>
<div
class=
"col-sm-6 b-r"
>
<
#
input
id=
"name"
name=
"名称"
value=
"${menu.name}"
underline=
"true"
/>
<
#
input
id=
"code"
name=
"菜单编号"
value=
"${menu.code}"
underline=
"true"
/>
<
#
input
id=
"pcodeName"
name=
"父级编号"
value=
"${menu.pcodeName}"
underline=
"true"
hidden=
"pcode"
readonly=
"readonly"
hiddenValue=
"${menu.pcode}"
clickFun=
"MenuInfoDlg.showMenuSelectTree(); return false;"
style=
"background-color: #ffffff !important;"
selectFlag=
"true"
selectId=
"pcodeTreeDiv"
selectTreeId=
"pcodeTree"
selectStyle=
"width:244px !important;"
/>
<
#
select
id=
"ismenu"
name=
"是否是菜单"
>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
不是
</option>
</
#
select>
</div>
<div
class=
"col-sm-6"
>
<
#
input
id=
"url"
name=
"请求地址"
value=
"${menu.url}"
underline=
"true"
/>
<
#
input
id=
"num"
name=
"排序"
value=
"${menu.num}"
underline=
"true"
/>
<
#
input
id=
"icon"
name=
"图标"
underline=
"false"
value=
"${menu.icon}"
/>
</div>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"MenuInfoDlg.editSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"MenuInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/menu/menu_info.js"
></script>
@}
src/main/webapp/WEB-INF/system/notice/notice.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
通知管理
</h5>
</div>
<div
class=
"ibox-content"
>
<div
class=
"row row-lg"
>
<div
class=
"col-sm-12"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
>
<
#
NameCon
id=
"condition"
name=
"名称"
/>
</div>
<div
class=
"col-sm-3"
>
<
#
button
name=
"搜索"
icon=
"fa-search"
clickFun=
"Notice.search()"
/>
</div>
</div>
<div
class=
"hidden-xs"
id=
"NoticeTableToolbar"
role=
"group"
>
@if(shiro.hasPermission("/notice/add")){
<
#
button
name=
"添加"
icon=
"fa-plus"
clickFun=
"Notice.openAddNotice()"
/>
@}
@if(shiro.hasPermission("/notice/update")){
<
#
button
name=
"修改"
icon=
"fa-plus"
clickFun=
"Notice.openNoticeDetail()"
space=
"true"
/>
@}
@if(shiro.hasPermission("/notice/delete")){
<
#
button
name=
"删除"
icon=
"fa-plus"
clickFun=
"Notice.delete()"
space=
"true"
/>
@}
</div>
<
#
table
id=
"NoticeTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<script
src=
"${ctxPath}/static/modular/system/notice/notice.js"
></script>
@}
src/main/webapp/WEB-INF/system/notice/notice_add.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
id=
"noticeInfoForm"
>
<input
type=
"hidden"
id=
"id"
value=
""
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
标题
</label>
<div
class=
"col-sm-11"
>
<input
class=
"form-control"
id=
"title"
name=
"title"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
内容
</label>
<div
class=
"col-sm-11"
>
<div
id=
"editor"
class=
"editorHeight"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"NoticeInfoDlg.addSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"NoticeInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
src=
"//unpkg.com/wangeditor/release/wangEditor.min.js"
></script>
<script
src=
"${ctxPath}/static/modular/system/notice/notice_info.js"
></script>
@}
src/main/webapp/WEB-INF/system/notice/notice_edit.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-content"
>
<div
class=
"form-horizontal"
id=
"noticeInfoForm"
>
<input
type=
"hidden"
id=
"id"
value=
"${notice.id}"
>
<input
type=
"hidden"
id=
"contentVal"
value=
'${notice.content}'
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
标题
</label>
<div
class=
"col-sm-11"
>
<input
class=
"form-control"
id=
"title"
name=
"title"
type=
"text"
value=
"${notice.title}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
内容
</label>
<div
class=
"col-sm-11"
>
<div
id=
"editor"
class=
"editorHeight"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row btn-group-m-t"
>
<div
class=
"col-sm-10"
>
<
#
button
btnCss=
"info"
name=
"提交"
id=
"ensure"
icon=
"fa-check"
clickFun=
"NoticeInfoDlg.editSubmit()"
/>
<
#
button
btnCss=
"danger"
name=
"取消"
id=
"cancel"
icon=
"fa-eraser"
clickFun=
"NoticeInfoDlg.close()"
/>
</div>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
src=
"${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"
></script>
<script
src=
"${ctxPath}/static/modular/system/notice/notice_info.js"
></script>
@}
src/main/webapp/WEB-INF/system/role/role.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html",{plugins:["table","layer","sweet-alert"],js:["/assets/modular/system/role/role.js"]}){
<div
class=
"row"
id=
"rolePage"
>
<div
class=
"col-lg-12"
>
<div
class=
"card card-outline-info m-b-10"
>
<div
class=
"card-header"
>
<h5
class=
"m-b-0 text-white"
>
角色管理
</h5>
</div>
<div
class=
"card-block"
>
<div
class=
"form-horizontal"
>
<div
class=
"form-body"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"input-group condition-button"
>
<span
class=
"input-group-addon"
>
角色名称
</span>
<input
v-model=
"roleName"
type=
"text"
class=
"form-control"
placeholder=
"角色名称"
autocomplete=
"off"
>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"input-group condition-button"
>
<div
class=
"input-group-btn condition-button"
>
<button
type=
"button"
id=
"check-minutes"
class=
"btn btn-info waves-effect waves-light condition-button-width"
onclick=
"Role.search()"
>
查询
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"card card-outline-info m-b-0"
>
<div
class=
"card-block p-t-0 p-b-0"
>
<div
class=
"form-horizontal"
>
<div
class=
"form-actions"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<div
class=
"card m-b-0 p-b-0"
>
<div
class=
"hidden-xs"
id=
"roleTableToolbar"
role=
"group"
>
@if(shiro.hasPermission("/mgr/add")){
<button
type=
"button"
class=
"btn btn-primary waves-effect"
onclick=
"Role.openAddRole()"
>
<i
class=
"fa fa-plus"
></i>
添加
</button>
@}
@if(shiro.hasPermission("/mgr/edit")){
<button
type=
"button"
class=
"btn btn-primary waves-effect m-l-5"
onclick=
"Role.openChangeRole()"
>
<i
class=
"fa fa-edit"
></i>
修改
</button>
@}
@if(shiro.hasPermission("/mgr/delete")){
<button
type=
"button"
class=
"btn btn-primary waves-effect m-l-5"
onclick=
"Role.delRole()"
>
<i
class=
"fa fa-remove"
></i>
删除
</button>
@}
@if(shiro.hasPermission("/role/setAuthority")){
<button
type=
"button"
class=
"btn btn-primary waves-effect m-l-5"
onclick=
"Role.assign()"
>
<i
class=
"fa fa-remove"
></i>
权限配置
</button>
@}
</div>
<
#
table
id=
"roleTable"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@}
src/main/webapp/WEB-INF/system/role/role_add.html
0 → 100644
View file @
b3604aa8
@layout("/common/_dialog.html",{plugins:["sweet-alert","layer"],js:["/assets/modular/system/role/role_add.js"]}){
<div
class=
"container-fluid"
>
<form
id=
"roleForm"
\@
submit=
"submitForm"
>
<div
class=
"row"
>
<div
class=
"col-6"
>
<div
class=
"form-group"
>
<h5>
角色名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"name"
type=
"text"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
上级名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"pName"
id=
"pName"
\@
click=
"showParentSelectTree"
type=
"text"
class=
"form-control"
autocomplete=
"off"
>
<input
v-model=
"pid"
type=
"hidden"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
别名
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"tips"
type=
"text"
class=
"form-control"
>
</div>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"form-group"
>
<h5>
部门名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"deptName"
id=
"detpName"
\@
click=
"showDeptSelectTree"
type=
"text"
class=
"form-control"
autocomplete=
"off"
>
<input
v-model=
"deptid"
type=
"hidden"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
排序
</h5>
<div
class=
"controls"
>
<input
v-model=
"num"
type=
"text"
class=
"form-control"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6"
>
<div
class=
"text-xs-right"
>
<button
class=
"btn btn-info normal-button-width"
\@
click=
"ensure"
>
提交
</button>
<button
class=
"btn btn-inverse normal-button-width m-l-10"
\@
click=
"close"
>
取消
</button>
</div>
</div>
</div>
</form>
</div>
@}
src/main/webapp/WEB-INF/system/role/role_assign.html
0 → 100644
View file @
b3604aa8
@layout("/common/_container.html"){
<script
type=
"text/javascript"
>
$
(
function
()
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
$
(
"#btn_close"
).
bind
(
"click"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
$
(
"#btn_save"
).
bind
(
"click"
,
function
()
{
var
ids
=
Feng
.
zTreeCheckedNodes
(
"zTree"
);
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/role/setAuthority"
,
function
(
data
)
{
Feng
.
success
(
"分配角色成功!"
);
window
.
parent
.
Role
.
table
.
refresh
();
parent
.
layer
.
close
(
index
);
},
function
(
data
)
{
Feng
.
error
(
"分配角色失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
ajax
.
set
(
"roleId"
,
"${roleId}"
);
ajax
.
set
(
"ids"
,
ids
);
ajax
.
start
();
});
initZtree
();
});
function
initZtree
()
{
var
setting
=
{
check
:
{
enable
:
true
,
chkboxType
:
{
"Y"
:
"ps"
,
"N"
:
"ps"
}
},
data
:
{
simpleData
:
{
enable
:
true
}
}
};
var
ztree
=
new
$ZTree
(
"zTree"
,
"/menu/menuTreeListByRoleId/"
+
"${roleId}"
);
ztree
.
setSettings
(
setting
);
ztree
.
init
();
}
</script>
<!-- 配置grid -->
<div
class=
"container"
style=
"padding: 0px 10px !important;margin-top: -10px;text-align: center !important;"
>
<div
class=
"row"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
${roleName!}
</h5>
</div>
<div
class=
"ibox-content"
>
<ul
id=
"zTree"
class=
"ztree"
></ul>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<button
class=
"btn btn-sm btn-info"
type=
"button"
id=
"btn_save"
>
<i
class=
"ace-icon fa fa-check bigger-110"
></i>
保存
</button>
<button
class=
"btn btn-sm btn-danger"
type=
"button"
id=
"btn_close"
>
<i
class=
"ace-icon fa fa-close bigger-110"
></i>
关闭
</button>
</div>
</div>
</div>
@}
src/main/webapp/WEB-INF/system/role/role_edit.html
0 → 100644
View file @
b3604aa8
@layout("/common/_dialog.html",{plugins:["sweet-alert"],js:["/assets/modular/system/role/role_edit.js"]}){
<div
class=
"container-fluid"
>
<form
id=
"userForm"
\@
submit=
"submitForm"
>
<div
class=
"row"
>
<div
class=
"col-6"
>
<div
class=
"form-group"
>
<h5>
角色名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"name"
type=
"text"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
上级名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"pName"
type=
"text"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
别名
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"tips"
type=
"password"
class=
"form-control"
>
</div>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"form-group"
>
<h5>
部门名称
<span
class=
"text-danger"
>
*
</span></h5>
<div
class=
"controls"
>
<input
v-model=
"deptName"
id=
"detpName"
\@
click=
"showDeptSelectTree"
type=
"text"
class=
"form-control"
autocomplete=
"off"
>
<input
v-model=
"deptid"
type=
"hidden"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
<h5>
排序
</h5>
<div
class=
"controls"
>
<input
v-model=
"num"
type=
"text"
class=
"form-control"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6"
>
<div
class=
"text-xs-right"
>
<button
class=
"btn btn-info normal-button-width"
\@
click=
"ensure"
>
提交
</button>
<button
class=
"btn btn-inverse normal-button-width m-l-10"
\@
click=
"close"
>
取消
</button>
</div>
</div>
</div>
</form>
</div>
@}
src/main/webapp/assets/modular/system/role/role.js
View file @
b3604aa8
...
@@ -5,21 +5,23 @@ var Role = {
...
@@ -5,21 +5,23 @@ var Role = {
id
:
"roleTable"
,
//表格id
id
:
"roleTable"
,
//表格id
seItem
:
null
,
//选中的条目
seItem
:
null
,
//选中的条目
table
:
null
,
table
:
null
,
layerIndex
:
-
1
layerIndex
:
-
1
,
condition
:
{
roleName
:
""
}
};
};
/**
/**
* 初始化表格的列
* 初始化表格的列
*/
*/
Role
.
initColumn
=
function
()
{
Role
.
initColumn
=
function
()
{
var
columns
=
[
return
[
{
field
:
'selectItem'
,
radio
:
true
},
{
field
:
'selectItem'
,
radio
:
true
},
{
title
:
'id'
,
field
:
'id'
,
visible
:
false
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'id'
,
field
:
'id'
,
visible
:
false
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'名称'
,
field
:
'name'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'名称'
,
field
:
'name'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'上级角色'
,
field
:
'pName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'上级角色'
,
field
:
'pName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'所在部门'
,
field
:
'deptName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'所在部门'
,
field
:
'deptName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'别名'
,
field
:
'tips'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
}]
{
title
:
'别名'
,
field
:
'tips'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
}];
return
columns
;
};
};
...
@@ -28,7 +30,7 @@ Role.initColumn = function () {
...
@@ -28,7 +30,7 @@ Role.initColumn = function () {
*/
*/
Role
.
check
=
function
()
{
Role
.
check
=
function
()
{
var
selected
=
$
(
'#'
+
this
.
id
).
bootstrapTable
(
'getSelections'
);
var
selected
=
$
(
'#'
+
this
.
id
).
bootstrapTable
(
'getSelections'
);
if
(
selected
.
length
==
0
)
{
if
(
selected
.
length
==
=
0
)
{
Feng
.
info
(
"请先选中表格中的某一记录!"
);
Feng
.
info
(
"请先选中表格中的某一记录!"
);
return
false
;
return
false
;
}
else
{
}
else
{
...
@@ -41,15 +43,14 @@ Role.check = function () {
...
@@ -41,15 +43,14 @@ Role.check = function () {
* 点击添加管理员
* 点击添加管理员
*/
*/
Role
.
openAddRole
=
function
()
{
Role
.
openAddRole
=
function
()
{
var
i
ndex
=
layer
.
open
({
this
.
layerI
ndex
=
layer
.
open
({
type
:
2
,
type
:
2
,
title
:
'添加角色'
,
title
:
'添加角色'
,
area
:
[
'800px'
,
'4
5
0px'
],
//宽高
area
:
[
'800px'
,
'4
0
0px'
],
//宽高
fix
:
false
,
//不固定
fix
:
false
,
//不固定
maxmin
:
true
,
maxmin
:
true
,
content
:
Feng
.
ctxPath
+
'/role/role_add'
content
:
Feng
.
ctxPath
+
'/role/role_add'
});
});
this
.
layerIndex
=
index
;
};
};
/**
/**
...
@@ -57,15 +58,14 @@ Role.openAddRole = function () {
...
@@ -57,15 +58,14 @@ Role.openAddRole = function () {
*/
*/
Role
.
openChangeRole
=
function
()
{
Role
.
openChangeRole
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
i
ndex
=
layer
.
open
({
this
.
layerI
ndex
=
layer
.
open
({
type
:
2
,
type
:
2
,
title
:
'修改角色'
,
title
:
'修改角色'
,
area
:
[
'800px'
,
'4
5
0px'
],
//宽高
area
:
[
'800px'
,
'4
0
0px'
],
//宽高
fix
:
false
,
//不固定
fix
:
false
,
//不固定
maxmin
:
true
,
maxmin
:
true
,
content
:
Feng
.
ctxPath
+
'/role/role_edit/'
+
this
.
seItem
.
id
content
:
Feng
.
ctxPath
+
'/role/role_edit/'
+
this
.
seItem
.
id
});
});
this
.
layerIndex
=
index
;
}
}
};
};
...
@@ -75,7 +75,7 @@ Role.openChangeRole = function () {
...
@@ -75,7 +75,7 @@ Role.openChangeRole = function () {
Role
.
delRole
=
function
()
{
Role
.
delRole
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
operation
=
function
()
{
var
operation
=
function
()
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/role/remove"
,
function
()
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/role/remove"
,
function
()
{
Feng
.
success
(
"删除成功!"
);
Feng
.
success
(
"删除成功!"
);
Role
.
table
.
refresh
();
Role
.
table
.
refresh
();
...
@@ -86,7 +86,7 @@ Role.delRole = function () {
...
@@ -86,7 +86,7 @@ Role.delRole = function () {
ajax
.
start
();
ajax
.
start
();
};
};
Feng
.
confirm
(
"是否删除角色 "
+
Role
.
seItem
.
name
+
"?"
,
operation
);
Feng
.
confirm
(
"是否删除角色 "
+
Role
.
seItem
.
name
+
"?"
,
operation
);
}
}
};
};
...
@@ -95,7 +95,7 @@ Role.delRole = function () {
...
@@ -95,7 +95,7 @@ Role.delRole = function () {
*/
*/
Role
.
assign
=
function
()
{
Role
.
assign
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
i
ndex
=
layer
.
open
({
this
.
layerI
ndex
=
layer
.
open
({
type
:
2
,
type
:
2
,
title
:
'权限配置'
,
title
:
'权限配置'
,
area
:
[
'300px'
,
'450px'
],
//宽高
area
:
[
'300px'
,
'450px'
],
//宽高
...
@@ -103,7 +103,6 @@ Role.assign = function () {
...
@@ -103,7 +103,6 @@ Role.assign = function () {
maxmin
:
true
,
maxmin
:
true
,
content
:
Feng
.
ctxPath
+
'/role/role_assign/'
+
this
.
seItem
.
id
content
:
Feng
.
ctxPath
+
'/role/role_assign/'
+
this
.
seItem
.
id
});
});
this
.
layerIndex
=
index
;
}
}
};
};
...
@@ -112,11 +111,17 @@ Role.assign = function () {
...
@@ -112,11 +111,17 @@ Role.assign = function () {
*/
*/
Role
.
search
=
function
()
{
Role
.
search
=
function
()
{
var
queryData
=
{};
var
queryData
=
{};
queryData
[
'roleName'
]
=
$
(
"#roleName"
).
val
()
;
queryData
[
'roleName'
]
=
Role
.
condition
.
roleName
;
Role
.
table
.
refresh
({
query
:
queryData
});
Role
.
table
.
refresh
({
query
:
queryData
});
}
}
;
$
(
function
()
{
$
(
function
()
{
Role
.
app
=
new
Vue
({
el
:
'#rolePage'
,
data
:
Role
.
condition
});
var
defaultColunms
=
Role
.
initColumn
();
var
defaultColunms
=
Role
.
initColumn
();
var
table
=
new
BSTable
(
Role
.
id
,
"/role/list"
,
defaultColunms
);
var
table
=
new
BSTable
(
Role
.
id
,
"/role/list"
,
defaultColunms
);
table
.
setPaginationType
(
"client"
);
table
.
setPaginationType
(
"client"
);
...
...
src/main/webapp/assets/modular/system/role/role_add.js
0 → 100644
View file @
b3604aa8
/**
* 角色详情对话框(可用于添加和修改对话框)
*/
var
RoleAddDlg
=
{
data
:
{
name
:
""
,
pName
:
""
,
pid
:
""
,
tips
:
""
,
deptName
:
""
,
deptid
:
""
,
num
:
""
}
};
/**
* 关闭此对话框
*/
RoleAddDlg
.
close
=
function
()
{
parent
.
layer
.
close
(
window
.
parent
.
Role
.
layerIndex
);
};
/**
* 验证表单
*/
RoleAddDlg
.
validateForm
=
function
()
{
var
data
=
RoleAddDlg
.
data
;
if
(
!
data
.
name
)
{
return
"请输入角色名称"
;
}
if
(
!
(
data
.
pName
))
{
return
"请输入上级名称"
;
}
if
(
!
data
.
deptName
)
{
return
"请输入部门名称"
;
}
if
(
!
data
.
tips
)
{
return
"请输入备注"
;
}
return
true
;
};
/**
* 提交添加角色
*/
RoleAddDlg
.
addSubmit
=
function
()
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/role/add"
,
function
(
data
)
{
Feng
.
success
(
"添加成功!"
);
window
.
parent
.
Role
.
table
.
refresh
();
RoleAddDlg
.
close
();
},
function
(
data
)
{
Feng
.
error
(
"添加失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
ajax
.
set
(
this
.
data
);
ajax
.
start
();
};
$
(
function
()
{
RoleAddDlg
.
app
=
new
Vue
({
el
:
'#roleForm'
,
data
:
RoleAddDlg
.
data
,
methods
:
{
submitForm
:
function
(
e
)
{
e
.
preventDefault
();
},
showDeptSelectTree
:
function
()
{
var
formName
=
encodeURIComponent
(
"parent.RoleAddDlg.app.deptName"
);
var
formId
=
encodeURIComponent
(
"parent.RoleAddDlg.app.deptid"
);
var
treeUrl
=
encodeURIComponent
(
Feng
.
ctxPath
+
"/dept/tree"
);
layer
.
open
({
type
:
2
,
title
:
'部门选择'
,
area
:
[
'300px'
,
'400px'
],
content
:
Feng
.
ctxPath
+
'/system/commonTree?formName='
+
formName
+
"&formId="
+
formId
+
"&treeUrl="
+
treeUrl
});
},
showParentSelectTree
:
function
()
{
var
formName
=
encodeURIComponent
(
"parent.RoleAddDlg.app.pName"
);
var
formId
=
encodeURIComponent
(
"parent.RoleAddDlg.app.pid"
);
var
treeUrl
=
encodeURIComponent
(
Feng
.
ctxPath
+
"/role/roleTreeList"
);
layer
.
open
({
type
:
2
,
title
:
'部门选择'
,
area
:
[
'300px'
,
'400px'
],
content
:
Feng
.
ctxPath
+
'/system/commonTree?formName='
+
formName
+
"&formId="
+
formId
+
"&treeUrl="
+
treeUrl
});
},
ensure
:
function
()
{
var
result
=
RoleAddDlg
.
validateForm
();
if
(
result
===
true
)
{
RoleAddDlg
.
addSubmit
();
}
else
{
Feng
.
alert
(
result
);
}
},
close
:
function
()
{
RoleAddDlg
.
close
();
}
}
});
});
src/main/webapp/assets/modular/system/role/role_
info
.js
→
src/main/webapp/assets/modular/system/role/role_
edit
.js
View file @
b3604aa8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment