Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
4e5232b4
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1433
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4e5232b4
编写于
10月 16, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
icon信息查询添加
上级
df91c2b8
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
588 addition
and
16 deletion
+588
-16
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveIconDao.java
...src/main/java/com/skyeye/authority/dao/SysEveIconDao.java
+18
-0
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveIconService.java
.../java/com/skyeye/authority/service/SysEveIconService.java
+17
-0
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveIconServiceImpl.java
.../skyeye/authority/service/impl/SysEveIconServiceImpl.java
+87
-0
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveIconController.java
...com/skyeye/authority/controller/SysEveIconController.java
+66
-0
skyeye-web/src/main/resources/dbmapper/SysEveIcomMapper.xml
skyeye-web/src/main/resources/dbmapper/SysEveIcomMapper.xml
+42
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+12
-0
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
+8
-6
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
+84
-8
skyeye-web/src/main/webapp/js/syseveicon/syseveiconadd.js
skyeye-web/src/main/webapp/js/syseveicon/syseveiconadd.js
+44
-0
skyeye-web/src/main/webapp/js/syseveicon/syseveiconlist.js
skyeye-web/src/main/webapp/js/syseveicon/syseveiconlist.js
+93
-0
skyeye-web/src/main/webapp/tpl/syseveicon/icon-item.tpl
skyeye-web/src/main/webapp/tpl/syseveicon/icon-item.tpl
+17
-0
skyeye-web/src/main/webapp/tpl/syseveicon/syseveiconadd.html
skyeye-web/src/main/webapp/tpl/syseveicon/syseveiconadd.html
+53
-0
skyeye-web/src/main/webapp/tpl/syseveicon/syseveiconlist.html
...ye-web/src/main/webapp/tpl/syseveicon/syseveiconlist.html
+45
-0
skyeye-web/src/main/webapp/tpl/sysevemenu/sysevemenuadd.html
skyeye-web/src/main/webapp/tpl/sysevemenu/sysevemenuadd.html
+1
-1
skyeye-web/src/main/webapp/tpl/sysevemenu/sysevemenueditTemplate.tpl
...src/main/webapp/tpl/sysevemenu/sysevemenueditTemplate.tpl
+1
-1
未找到文件。
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveIconDao.java
0 → 100644
浏览文件 @
4e5232b4
package
com.skyeye.authority.dao
;
import
java.util.List
;
import
java.util.Map
;
import
com.github.miemiedev.mybatis.paginator.domain.PageBounds
;
public
interface
SysEveIconDao
{
public
List
<
Map
<
String
,
Object
>>
querySysIconList
(
Map
<
String
,
Object
>
map
,
PageBounds
pageBounds
)
throws
Exception
;
public
int
insertSysIconMation
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
Map
<
String
,
Object
>
querySysIconMationByIconClass
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteSysIconMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveIconService.java
0 → 100644
浏览文件 @
4e5232b4
package
com.skyeye.authority.service
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
public
interface
SysEveIconService
{
public
void
querySysIconList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
insertSysIconMation
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
deleteSysIconMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveIconServiceImpl.java
0 → 100644
浏览文件 @
4e5232b4
package
com.skyeye.authority.service.impl
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.github.miemiedev.mybatis.paginator.domain.PageBounds
;
import
com.github.miemiedev.mybatis.paginator.domain.PageList
;
import
com.skyeye.authority.dao.SysEveIconDao
;
import
com.skyeye.authority.service.SysEveIconService
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
import
com.skyeye.common.util.ToolUtil
;
@Service
public
class
SysEveIconServiceImpl
implements
SysEveIconService
{
@Autowired
private
SysEveIconDao
sysEveIconDao
;
/**
*
* @Title: querySysIconList
* @Description: 获取ICON列表
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
querySysIconList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
List
<
Map
<
String
,
Object
>>
beans
=
sysEveIconDao
.
querySysIconList
(
map
,
new
PageBounds
(
Integer
.
parseInt
(
map
.
get
(
"page"
).
toString
()),
Integer
.
parseInt
(
map
.
get
(
"limit"
).
toString
())));
PageList
<
Map
<
String
,
Object
>>
beansPageList
=
(
PageList
<
Map
<
String
,
Object
>>)
beans
;
int
total
=
beansPageList
.
getPaginator
().
getTotalCount
();
outputObject
.
setBeans
(
beans
);
outputObject
.
settotal
(
total
);
}
/**
*
* @Title: insertSysIconMation
* @Description: 添加ICON信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
insertSysIconMation
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
bean
=
sysEveIconDao
.
querySysIconMationByIconClass
(
map
);
if
(
bean
==
null
){
Map
<
String
,
Object
>
user
=
inputObject
.
getLogParams
();
map
.
put
(
"id"
,
ToolUtil
.
getSurFaceId
());
map
.
put
(
"createId"
,
user
.
get
(
"id"
));
map
.
put
(
"createTime"
,
ToolUtil
.
getTimeAndToString
());
sysEveIconDao
.
insertSysIconMation
(
map
);
}
else
{
outputObject
.
setreturnMessage
(
"该ICON属性已存在,不可进行二次添加"
);
}
}
/**
*
* @Title: deleteSysIconMationById
* @Description: 删除ICON信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
deleteSysIconMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
sysEveIconDao
.
deleteSysIconMationById
(
map
);
}
}
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveIconController.java
0 → 100644
浏览文件 @
4e5232b4
package
com.skyeye.authority.controller
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.skyeye.authority.service.SysEveIconService
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
@Controller
public
class
SysEveIconController
{
@Autowired
private
SysEveIconService
sysEveIconService
;
/**
*
* @Title: querySysIconList
* @Description: 获取ICON列表
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveIconController/querySysIconList"
)
@ResponseBody
public
void
querySysIconList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveIconService
.
querySysIconList
(
inputObject
,
outputObject
);
}
/**
*
* @Title: insertSysIconMation
* @Description: 添加ICON信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveIconController/insertSysIconMation"
)
@ResponseBody
public
void
insertSysIconMation
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveIconService
.
insertSysIconMation
(
inputObject
,
outputObject
);
}
/**
*
* @Title: deleteSysIconMationById
* @Description: 删除ICON信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveIconController/deleteSysIconMationById"
)
@ResponseBody
public
void
deleteSysIconMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveIconService
.
deleteSysIconMationById
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/SysEveIcomMapper.xml
0 → 100644
浏览文件 @
4e5232b4
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.skyeye.authority.dao.SysEveIconDao"
>
<select
id=
"querySysIconList"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.icon_class iconClass
FROM
sys_eve_icon a
WHERE 1 = 1
<if
test=
"iconClass != '' and iconClass != null"
>
AND a.icon_class LIKE '%${iconClass}%'
</if>
</select>
<insert
id=
"insertSysIconMation"
parameterType=
"java.util.Map"
>
INSERT into sys_eve_icon
(id, icon_class, creater, create_time)
VALUES
(#{id}, #{iconClass}, #{createId}, #{createTime})
</insert>
<select
id=
"querySysIconMationByIconClass"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.icon_class iconClass
FROM
sys_eve_icon a
WHERE
a.icon_class = #{iconClass}
</select>
<delete
id=
"deleteSysMenuChildMationById"
parameterType=
"java.util.Map"
>
DELETE
FROM
sys_eve_icon
WHERE
id = #{id}
</delete>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
4e5232b4
...
@@ -106,6 +106,18 @@
...
@@ -106,6 +106,18 @@
<property
id=
"roleIds"
name=
"roleIds"
ref=
"required"
var=
"角色ID串"
/>
<property
id=
"roleIds"
name=
"roleIds"
ref=
"required"
var=
"角色ID串"
/>
</url>
</url>
<url
id=
"icon001"
path=
"/post/SysEveIconController/querySysIconList"
val=
"获取ICON列表"
>
<property
id=
"limit"
name=
"limit"
ref=
"required"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required"
var=
"分页参数,第几页"
/>
<property
id=
"iconClass"
name=
"iconClass"
ref=
""
var=
"icon属性"
/>
</url>
<url
id=
"icon002"
path=
"/post/SysEveIconController/insertSysIconMation"
val=
"添加ICON信息"
>
<property
id=
"iconClass"
name=
"iconClass"
ref=
"required"
var=
"icon属性"
/>
</url>
<url
id=
"icon003"
path=
"/post/SysEveIconController/deleteSysIconMationById"
val=
"删除ICON信息"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"icon属性id"
/>
</url>
<url
id=
"database001"
path=
"/post/SysDataBaseController/querySysDataBaseList"
val=
"获取数据库信息"
>
<url
id=
"database001"
path=
"/post/SysDataBaseController/querySysDataBaseList"
val=
"获取数据库信息"
>
<property
id=
"limit"
name=
"limit"
ref=
"required"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"limit"
name=
"limit"
ref=
"required"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required"
var=
"分页参数,第几页"
/>
<property
id=
"page"
name=
"page"
ref=
"required"
var=
"分页参数,第几页"
/>
...
...
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
浏览文件 @
4e5232b4
...
@@ -149,7 +149,7 @@ dataGrid.prototype = {
...
@@ -149,7 +149,7 @@ dataGrid.prototype = {
},
},
//初始化元素
//初始化元素
InitializeElement
:
function
()
{
InitializeElement
:
function
()
{
layui
.
$
(
"
#
"
+
this
.
_id
+
""
).
empty
().
html
(
"
<div class='
row row-model' id='
"
+
_op
.
settings
.
id
+
"
showBody'></div><div class='row row-model' id='
"
+
_op
.
settings
.
id
+
"
showFoot' style='text-align: center;'><div class='pagec' id='pagearea'><ul class='pagination
'></ul></div></div>
"
);
layui
.
$
(
"
#
"
+
this
.
_id
+
""
).
empty
().
html
(
"
<div class='
layui-col-xs12 row-model' id='
"
+
_op
.
settings
.
id
+
"
showBody'></div><div class='layui-col-xs12 row-model' id='
"
+
_op
.
settings
.
id
+
"
showFoot' style='text-align: center;'><div class='pagec layui-col-xs12' id='pagearea'><ul class='pagination layui-col-xs6
'></ul></div></div>
"
);
},
},
//初始化元素
//初始化元素
createBodyNoFoot
:
function
(
pn
)
{
createBodyNoFoot
:
function
(
pn
)
{
...
@@ -159,7 +159,8 @@ dataGrid.prototype = {
...
@@ -159,7 +159,8 @@ dataGrid.prototype = {
var
offset
=
(
_op
.
settings
.
pageindex
-
1
)
*
_op
.
settings
.
pagesize
;
var
offset
=
(
_op
.
settings
.
pageindex
-
1
)
*
_op
.
settings
.
pagesize
;
var
pageParams
=
{
var
pageParams
=
{
offset
:
offset
,
offset
:
offset
,
limit
:
_op
.
settings
.
pagesize
limit
:
_op
.
settings
.
pagesize
,
page
:
_op
.
settings
.
pageindex
};
};
_op
.
settings
.
params
=
layui
.
$
.
extend
({},
_op
.
settings
.
params
,
pageParams
);
_op
.
settings
.
params
=
layui
.
$
.
extend
({},
_op
.
settings
.
params
,
pageParams
);
var
json
=
this
.
getAjaxDate
(
_op
.
settings
.
url
,
_op
.
settings
.
params
);
var
json
=
this
.
getAjaxDate
(
_op
.
settings
.
url
,
_op
.
settings
.
params
);
...
@@ -195,7 +196,8 @@ dataGrid.prototype = {
...
@@ -195,7 +196,8 @@ dataGrid.prototype = {
var
offset
=
(
_op
.
settings
.
pageindex
-
1
)
*
_op
.
settings
.
pagesize
;
var
offset
=
(
_op
.
settings
.
pageindex
-
1
)
*
_op
.
settings
.
pagesize
;
var
pageParams
=
{
var
pageParams
=
{
offset
:
offset
,
offset
:
offset
,
limit
:
_op
.
settings
.
pagesize
limit
:
_op
.
settings
.
pagesize
,
page
:
_op
.
settings
.
pageindex
};
};
_op
.
settings
.
params
=
layui
.
$
.
extend
({},
_op
.
settings
.
params
,
pageParams
);
_op
.
settings
.
params
=
layui
.
$
.
extend
({},
_op
.
settings
.
params
,
pageParams
);
var
json
=
this
.
getAjaxDate
(
_op
.
settings
.
url
,
_op
.
settings
.
params
);
var
json
=
this
.
getAjaxDate
(
_op
.
settings
.
url
,
_op
.
settings
.
params
);
...
@@ -272,7 +274,7 @@ dataGrid.prototype = {
...
@@ -272,7 +274,7 @@ dataGrid.prototype = {
//添加全选全不选事件
//添加全选全不选事件
},
},
//自定义按钮事件
//自定义按钮事件
customClickPage
:
function
(
json
){
customClickPage
:
function
(
json
){
debugger
var
options
=
_op
.
settings
.
options
;
var
options
=
_op
.
settings
.
options
;
for
(
var
_option
in
options
){
for
(
var
_option
in
options
){
if
(
typeof
(
options
[
_option
])
==
"
function
"
)
{
if
(
typeof
(
options
[
_option
])
==
"
function
"
)
{
...
@@ -474,8 +476,8 @@ var _createObject = function(id, settings){
...
@@ -474,8 +476,8 @@ var _createObject = function(id, settings){
var
getObject
=
function
(
id
){
var
getObject
=
function
(
id
){
for
(
var
i
in
dataGrid_setting
){
for
(
var
i
in
dataGrid_setting
){
if
(
i
.
id
==
id
){
if
(
dataGrid_setting
[
i
]
.
id
==
id
){
return
i
.
settings
;
return
dataGrid_setting
[
i
]
.
settings
;
}
}
}
}
}
}
...
...
skyeye-web/src/main/webapp/assets/lib/winui/css/winui.css
浏览文件 @
4e5232b4
/**
@Name: winui
@Author: Leo
@Site: www.leo96.com
*/
html
,
html
,
body
{
body
{
height
:
100%
;
height
:
100%
;
...
@@ -16,6 +9,10 @@ body {
...
@@ -16,6 +9,10 @@ body {
user-select
:
none
;
user-select
:
none
;
}
}
button
{
cursor
:
pointer
!important
;
}
.winui-task-item
,
.winui-task-item
,
.winui-tilebox-head
,
.winui-tilebox-head
,
.winui-desktop-item
*,
.winui-desktop-item
*,
...
@@ -2009,6 +2006,85 @@ body .layer-ext-winconfirm {
...
@@ -2009,6 +2006,85 @@ body .layer-ext-winconfirm {
}
}
/***图片上传样式end***/
/***图片上传样式end***/
/***系统icon样式start***/
.item
{
padding-top
:
10px
;
}
.icon-item
{
text-align
:
center
;
}
.icon-item
>
i
{
height
:
60px
;
width
:
60px
;
font-size
:
50px
;
}
.icon-item
>
div
{
text-align
:
center
;
margin-top
:
10px
;
}
/***系统icon样式end***/
/***common start***/
.noMation
{
text-align
:
center
;
}
.red
{
color
:
#fb5553
;
}
.yl
{
margin-top
:
8px
;
margin-left
:
8px
;
}
/***common end***/
/***showmode start***/
.pagination
{
width
:
100%
;
}
.ali
{
float
:
left
;
width
:
35px
;
height
:
35px
;
}
.ali
>
a
{
padding
:
0px
!important
;
height
:
30px
;
width
:
30px
;
line-height
:
30px
;
font-weight
:
300
;
color
:
grey
;
}
.pageBtn
{
width
:
200px
!important
;
}
#skippage
{
height
:
30px
!important
;
line-height
:
30px
!important
;
}
#showFormshowFoot
{
margin-top
:
20px
;
}
.pagec
>
ul
{
text-align
:
center
;
}
/***showmode end***/
/*******************************************自定义样式end********************************************/
/*******************************************自定义样式end********************************************/
...
...
skyeye-web/src/main/webapp/js/syseveicon/syseveiconadd.js
0 → 100644
浏览文件 @
4e5232b4
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
fsCommon
'
,
'
fsTree
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
var
$
=
layui
.
$
,
form
=
layui
.
form
;
form
.
render
();
form
.
on
(
'
submit(formAddIcon)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
iconClass
:
$
(
"
#iconClass
"
).
val
(),
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
icon002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
return
false
;
});
//取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
(){
parent
.
layer
.
close
(
index
);
});
//预览
$
(
"
body
"
).
on
(
"
click
"
,
"
#yl
"
,
function
(){
$
(
"
#iconyl
"
).
attr
(
"
class
"
,
"
fa fa-fw
"
+
$
(
"
#iconClass
"
).
val
());
});
});
});
\ No newline at end of file
skyeye-web/src/main/webapp/js/syseveicon/syseveiconlist.js
0 → 100644
浏览文件 @
4e5232b4
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
;
//初始化数据
showGrid
({
id
:
"
showForm
"
,
url
:
reqBasePath
+
"
icon001
"
,
params
:
{
iconClass
:
$
(
"
#iconClass
"
).
val
()},
pagination
:
true
,
template
:
getFileContent
(
'
tpl/syseveicon/icon-item.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
options
:
{
'
click .del
'
:
function
(
index
,
row
){
layer
.
confirm
(
'
确认删除该ICON吗?
'
,
{
icon
:
3
,
title
:
'
删除ICON
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
icon003
"
,
params
:{
rowId
:
row
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
top
.
winui
.
window
.
msg
(
"
删除成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
}
},
ajaxSendAfter
:
function
(
json
){
}
});
//搜索表单
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
//编辑
function
edit
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/syseveuser/syseveuseredit.html
"
,
title
:
"
编辑用户
"
,
pageId
:
"
syseveuseredit
"
,
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
//新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
(){
_openNewWindows
({
url
:
"
../../tpl/syseveicon/syseveiconadd.html
"
,
title
:
"
新增图标
"
,
pageId
:
"
syseveiconadd
"
,
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
(){
loadTable
();
});
function
loadTable
(){
refreshGrid
(
"
showForm
"
,
{
params
:{
iconClass
:
$
(
"
#iconClass
"
).
val
()}});
}
exports
(
'
syseveiconlist
'
,
{});
});
skyeye-web/src/main/webapp/tpl/syseveicon/icon-item.tpl
0 → 100644
浏览文件 @
4e5232b4
{
{
#
each
rows
}
}
<div
class=
"layui-col-xs2 item"
>
<div
class=
"layui-col-xs12 icon-item"
>
<i
class=
"fa {
{
iconClass
}
} fa-fw"
></i>
</div>
<div
class=
"layui-col-xs12 icon-item"
>
<span>
{
{
iconClass
}
}
</span>
</div>
<div
class=
"layui-col-xs12 icon-item"
>
<div>
<a
class=
"layui-btn layui-btn-xs edit"
>
编辑
</a>
<a
class=
"layui-btn layui-btn-danger layui-btn-xs del"
>
删除
</a>
</div>
</div>
</div>
{
{/
each
}
}
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/syseveicon/syseveiconadd.html
0 → 100644
浏览文件 @
4e5232b4
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/font-awesome-4.7.0/css/font-awesome.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/ztree/css/zTreeStyle/zTreeStyle.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"width:600px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
ICON属性
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-col-xs6"
>
<div
class=
"layui-col-xs10"
>
<input
type=
"text"
id=
"iconClass"
name=
"iconClass"
win-verify=
"required"
placeholder=
"请输入ICON属性"
class=
"layui-input"
/>
</div>
<div
class=
"layui-col-xs2"
>
<a
class=
"layui-btn layui-btn-xs yl"
id=
"yl"
>
预览
</a>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
ICON预览
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-col-xs2 item"
>
<div
class=
"layui-col-xs12 icon-item"
>
<i
id=
"iconyl"
class=
""
></i>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddIcon"
>
保存
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/contextMenu/jquery.contextMenu.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/lib/layui/lay/modules/ztree/js/jquery.ztree.all.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/syseveicon/
'
}).
use
(
'
syseveiconadd
'
);
</script>
</body>
</html>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/syseveicon/syseveiconlist.html
0 → 100644
浏览文件 @
4e5232b4
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/font-awesome-4.7.0/css/font-awesome.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"width:700px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
图标属性
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"iconClass"
name=
"iconClass"
placeholder=
"请输入图标属性"
class=
"layui-input"
/>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
style=
"margin:0;"
>
<button
class=
"layui-btn"
lay-submit
lay-filter=
"formSearch"
>
搜索
</button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i>
刷新数据
</button>
<button
id=
"addBean"
class=
"winui-toolbtn"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增图标
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
class=
"layui-col-xs12"
id=
"showForm"
>
</div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/syseveicon/
'
}).
use
(
'
syseveiconlist
'
);
</script>
</body>
</html>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/sysevemenu/sysevemenuadd.html
浏览文件 @
4e5232b4
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddMenu"
>
确定
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddMenu"
>
保存
</button>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
</div>
</div>
</div>
</div>
...
...
skyeye-web/src/main/webapp/tpl/sysevemenu/sysevemenueditTemplate.tpl
浏览文件 @
4e5232b4
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditMenu"
>
确定
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditMenu"
>
保存
</button>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
</div>
</div>
</div>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录