Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
80dfd46f
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1409
Star
161
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看板
提交
80dfd46f
编写于
1月 31, 2024
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 公告通知同步到表单布局
上级
314b974c
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
28 addition
and
2102 deletion
+28
-2102
gateway/src/main/resources/template/js/mainPage/mainPage.js
gateway/src/main/resources/template/js/mainPage/mainPage.js
+4
-12
gateway/src/main/resources/template/tpl/mainPage/mainPage.html
...ay/src/main/resources/template/tpl/mainPage/mainPage.html
+19
-30
message/src/main/resources/template/js/mymessage/myNoticeList.js
.../src/main/resources/template/js/mymessage/myNoticeList.js
+0
-145
message/src/main/resources/template/js/sysnotice/sysnoticeadd.js
.../src/main/resources/template/js/sysnotice/sysnoticeadd.js
+0
-171
message/src/main/resources/template/js/sysnotice/sysnoticedetails.js
.../main/resources/template/js/sysnotice/sysnoticedetails.js
+0
-33
message/src/main/resources/template/js/sysnotice/sysnoticeedit.js
...src/main/resources/template/js/sysnotice/sysnoticeedit.js
+0
-206
message/src/main/resources/template/js/sysnotice/sysnoticelist.js
...src/main/resources/template/js/sysnotice/sysnoticelist.js
+0
-261
message/src/main/resources/template/js/sysnotice/sysnoticetimeup.js
...c/main/resources/template/js/sysnotice/sysnoticetimeup.js
+0
-49
message/src/main/resources/template/js/sysnoticefront/sysnoticefrontdetails.js
...urces/template/js/sysnoticefront/sysnoticefrontdetails.js
+0
-24
message/src/main/resources/template/js/sysnoticefront/sysnoticefrontlist.js
...esources/template/js/sysnoticefront/sysnoticefrontlist.js
+0
-109
message/src/main/resources/template/js/sysnoticetype/sysnoticetypeadd.js
...n/resources/template/js/sysnoticetype/sysnoticetypeadd.js
+0
-76
message/src/main/resources/template/js/sysnoticetype/sysnoticetypeedit.js
.../resources/template/js/sysnoticetype/sysnoticetypeedit.js
+0
-46
message/src/main/resources/template/js/sysnoticetype/sysnoticetypelist.js
.../resources/template/js/sysnoticetype/sysnoticetypelist.js
+0
-194
message/src/main/resources/template/tpl/mymessage/myNoticeList.html
...c/main/resources/template/tpl/mymessage/myNoticeList.html
+0
-38
message/src/main/resources/template/tpl/sysnotice/sysnoticeadd.html
...c/main/resources/template/tpl/sysnotice/sysnoticeadd.html
+0
-88
message/src/main/resources/template/tpl/sysnotice/sysnoticedetails.html
...in/resources/template/tpl/sysnotice/sysnoticedetails.html
+0
-21
message/src/main/resources/template/tpl/sysnotice/sysnoticedetailsTemplate.tpl
...urces/template/tpl/sysnotice/sysnoticedetailsTemplate.tpl
+0
-88
message/src/main/resources/template/tpl/sysnotice/sysnoticeedit.html
.../main/resources/template/tpl/sysnotice/sysnoticeedit.html
+0
-21
message/src/main/resources/template/tpl/sysnotice/sysnoticeeditTemplate.tpl
...esources/template/tpl/sysnotice/sysnoticeeditTemplate.tpl
+0
-71
message/src/main/resources/template/tpl/sysnotice/sysnoticelist.html
.../main/resources/template/tpl/sysnotice/sysnoticelist.html
+0
-109
message/src/main/resources/template/tpl/sysnotice/sysnoticetimeup.html
...ain/resources/template/tpl/sysnotice/sysnoticetimeup.html
+0
-32
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontTemplate.tpl
...es/template/tpl/sysnoticefront/sysnoticefrontTemplate.tpl
+0
-4
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontdetails.html
...es/template/tpl/sysnoticefront/sysnoticefrontdetails.html
+0
-21
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl
...late/tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl
+0
-32
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontlist.html
...urces/template/tpl/sysnoticefront/sysnoticefrontlist.html
+0
-49
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeadd.html
...esources/template/tpl/sysnoticetype/sysnoticetypeadd.html
+0
-47
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeedit.html
...sources/template/tpl/sysnoticetype/sysnoticetypeedit.html
+0
-21
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl
.../template/tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl
+0
-26
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypelist.html
...sources/template/tpl/sysnoticetype/sysnoticetypelist.html
+0
-78
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+5
-0
未找到文件。
gateway/src/main/resources/template/js/mainPage/mainPage.js
浏览文件 @
80dfd46f
...
@@ -26,14 +26,7 @@ layui.config({
...
@@ -26,14 +26,7 @@ layui.config({
}
}
function
initNoticeList
(){
function
initNoticeList
(){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
mainpage002
"
,
params
:
{},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
queryUserReceivedTopNotice
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
.
each
(
json
.
rows
,
function
(
i
,
item
)
{
if
(
i
==
0
){
item
.
className
=
"
layui-this
"
;
item
.
contentClassName
=
"
layui-show
"
;
}
});
$
(
"
#noticeTitle
"
).
append
(
getDataUseHandlebars
(
$
(
"
#noticeTitleTemplate
"
).
html
(),
json
));
$
(
"
#noticeContent
"
).
append
(
getDataUseHandlebars
(
$
(
"
#noticeContentTemplate
"
).
html
(),
json
));
$
(
"
#noticeContent
"
).
append
(
getDataUseHandlebars
(
$
(
"
#noticeContentTemplate
"
).
html
(),
json
));
initForumList
();
initForumList
();
}});
}});
...
@@ -58,11 +51,10 @@ layui.config({
...
@@ -58,11 +51,10 @@ layui.config({
// 公告详情
// 公告详情
$
(
"
body
"
).
on
(
"
click
"
,
"
.notice
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.notice
"
,
function
(
e
)
{
rowId
=
$
(
this
).
attr
(
"
id
"
);
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/sysnoticefront/sysnoticefrontdetails.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2024013100006&id=
'
+
$
(
this
).
attr
(
"
id
"
),
null
),
title
:
"
公告详情
"
,
title
:
"
公告详情
"
,
pageId
:
"
sysnoticefrontdetails
"
,
pageId
:
"
noticeDetailsPage
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
callBack
:
function
(
refreshCode
)
{
}});
}});
...
@@ -71,7 +63,7 @@ layui.config({
...
@@ -71,7 +63,7 @@ layui.config({
// 知识库详情
// 知识库详情
$
(
"
body
"
).
on
(
"
click
"
,
"
.knowledge
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.knowledge
"
,
function
(
e
)
{
_openNewWindows
({
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023101500004&id=
'
+
$
(
this
).
attr
(
"
id
"
),
null
),
url
:
systemCommonUtil
.
getUrl
(
'
FP2023101500004&id=
'
+
$
(
this
).
attr
(
"
id
"
),
null
),
title
:
"
知识库详情
"
,
title
:
"
知识库详情
"
,
pageId
:
"
knowledgeDetailsPage
"
,
pageId
:
"
knowledgeDetailsPage
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
gateway/src/main/resources/template/tpl/mainPage/mainPage.html
浏览文件 @
80dfd46f
...
@@ -66,11 +66,21 @@
...
@@ -66,11 +66,21 @@
<div
class=
"layui-col-xs8"
>
<div
class=
"layui-col-xs8"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card"
>
<div
class=
"layui-tab layui-tab-brief layadmin-latestData"
style=
"background-color: white;"
>
<div
class=
"layui-tab layui-tab-brief layadmin-latestData"
style=
"background-color: white;"
>
<ul
class=
"layui-tab-title"
id=
"noticeTitle"
>
<ul
class=
"layui-tab-title"
>
<li
class=
"layui-this"
title=
"公告"
>
公告
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
id=
"noticeContent"
>
<div
class=
"layui-tab-content"
>
<table
class=
"layui-table"
lay-skin=
"line"
>
<thead>
<tr>
<th>
主题
</th>
<th
style=
"width: 120px;"
>
类型
</th>
<th
style=
"width: 140px;"
>
时间
</th>
</tr>
</thead>
<tbody
class=
"insurance-table"
id=
"noticeContent"
>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -115,34 +125,13 @@
...
@@ -115,34 +125,13 @@
</form>
</form>
</div>
</div>
<script
type=
"text/x-handlebars-template"
id=
"noticeTitleTemplate"
>
{{
#
each
rows
}}
<
li
class
=
"
{{className}}
"
title
=
"
{{name}}
"
>
{{
name
}}
<
/li
>
{{
/
each
}}
</script>
<script
type=
"text/x-handlebars-template"
id=
"noticeContentTemplate"
>
<script
type=
"text/x-handlebars-template"
id=
"noticeContentTemplate"
>
{{
#
each
rows
}}
{{
#
each
rows
}}
<
div
class
=
"
layui-tab-item {{contentClassName}}
"
style
=
"
height: 350px;
"
>
<
tr
style
=
"
height: 38px;
"
>
<
table
class
=
"
layui-table
"
lay
-
skin
=
"
line
"
>
<
td
><
a
href
=
"
javascript:;
"
style
=
"
color: #01AAED;
"
class
=
"
notice
"
id
=
"
{{id}}
"
>
{{
name
}}
<
/a></
td
>
<
thead
>
<
td
>
{{
createName
}}
<
/td
>
<
tr
>
<
td
>
{{
realLinesTime
}}
<
/td
>
<
th
>
主题
<
/th
>
<
/tr
>
<
th
style
=
"
width: 120px;
"
>
发送人
<
/th
>
<
th
style
=
"
width: 140px;
"
>
时间
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
class
=
"
insurance-table
"
>
{{
#
each
content
}}
<
tr
style
=
"
height: 38px;
"
>
<
td
><
a
href
=
"
javascript:;
"
style
=
"
color: #01AAED;
"
class
=
"
notice
"
id
=
"
{{id}}
"
>
{{
title
}}
<
/a></
td
>
<
td
>
{{
createName
}}
<
/td
>
<
td
>
{{
linesTime
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
{{
/
each
}}
{{
/
each
}}
</script>
</script>
...
...
message/src/main/resources/template/js/mymessage/myNoticeList.js
已删除
100644 → 0
浏览文件 @
314b974c
var
rowId
=
""
,
parentRowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
noticeBasePath
+
'
syseveusernotice001
'
,
where
:
{},
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
type
:
'
checkbox
'
,
fixed
:
'
left
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
标题
'
,
width
:
120
},
{
field
:
'
desc
'
,
title
:
'
信息
'
,
width
:
300
},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
'
提醒时间
'
,
width
:
180
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
240
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
del
'
)
{
//删除
del
(
data
);
}
else
if
(
layEvent
===
'
sel
'
)
{
//查看
sel
(
data
);
}
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
//查看
function
sel
(
data
)
{
rowId
=
data
.
id
;
parentRowId
=
data
.
id
;
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
syseveusernotice003
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
_openNewWindows
({
url
:
"
../../tpl/index/noticeDetail.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
noticeDetail
"
+
(
new
Date
()).
valueOf
(),
area
:
[
'
600px
'
,
'
400px
'
],
shade
:
false
,
skin
:
'
msg-skin-message
'
,
callBack
:
function
(
refreshCode
)
{
}});
}});
}
//删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
id
:
"
delNoticeList
"
,
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
],
skin
:
'
msg-skin-message
'
,
success
:
function
(
layero
,
index
){
var
times
=
$
(
"
#delNoticeList
"
).
parent
().
attr
(
"
times
"
);
var
zIndex
=
$
(
"
#delNoticeList
"
).
parent
().
css
(
"
z-index
"
);
$
(
"
#layui-layer-shade
"
+
times
).
css
({
'
z-index
'
:
zIndex
});
}},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
syseveusernotice004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//设置已读选中
$
(
"
body
"
).
on
(
"
click
"
,
"
#designReadBeans
"
,
function
()
{
var
checkStatus
=
table
.
checkStatus
(
'
messageTable
'
);
var
data
=
checkStatus
.
data
;
var
idsStr
=
''
;
$
.
each
(
data
,
function
(
i
,
item
)
{
if
(
item
.
state
==
'
未读
'
){
idsStr
+=
item
.
id
+
"
,
"
;
}
});
if
(
!
isNull
(
idsStr
)){
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
syseveusernotice005
"
,
params
:
{
rowIds
:
idsStr
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
else
{
winui
.
window
.
msg
(
'
选中数据中没有可操作的未读信息
'
,
{
icon
:
5
,
time
:
2000
});
}
});
//删除选中
$
(
"
body
"
).
on
(
"
click
"
,
"
#delBeans
"
,
function
()
{
var
checkStatus
=
table
.
checkStatus
(
'
messageTable
'
);
var
data
=
checkStatus
.
data
;
var
idsStr
=
''
;
$
.
each
(
data
,
function
(
i
,
item
)
{
idsStr
+=
item
.
id
+
"
,
"
;
});
if
(
!
isNull
(
idsStr
)){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
id
:
"
delAllNoticeList
"
,
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
],
skin
:
'
msg-skin-message
'
,
success
:
function
(
layero
,
index
){
var
times
=
$
(
"
#delAllNoticeList
"
).
parent
().
attr
(
"
times
"
);
var
zIndex
=
$
(
"
#delAllNoticeList
"
).
parent
().
css
(
"
z-index
"
);
$
(
"
#layui-layer-shade
"
+
times
).
css
({
'
z-index
'
:
zIndex
});
}},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
syseveusernotice006
"
,
params
:
{
rowIds
:
idsStr
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的消息
'
,
{
icon
:
5
,
time
:
2000
});
}
});
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:{}});
}
exports
(
'
mynoticelist
'
,
{});
});
message/src/main/resources/template/js/sysnotice/sysnoticeadd.js
已删除
100644 → 0
浏览文件 @
314b974c
var
layedit
;
var
userList
=
new
Array
();
//选择用户返回的集合或者进行回显的集合
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
tagEditor
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
layedit
=
layui
.
layedit
;
initNoticeTypeId
();
//初始化一级公告类型
function
initNoticeTypeId
(){
showGrid
({
id
:
"
noticeTypeId
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype011
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
}
//初始化二级公告类型
function
initSecondTypeId
(){
showGrid
({
id
:
"
secondTypeId
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype013
"
,
params
:
{
parentId
:
$
(
"
#noticeTypeId
"
).
val
()},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
}
//一级公告类型监听事件
form
.
on
(
'
select(noticeTypeId)
'
,
function
(
data
)
{
initSecondTypeId
();
});
//群发类型变化事件
form
.
on
(
'
radio(sendType)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//群发所有人
$
(
"
#sendTo
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//选择性群发
$
(
"
#sendTo
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
//定时通知变化事件
form
.
on
(
'
radio(timeSend)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//不设置定时通知
$
(
"
#sendTime
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//设置定时通知
$
(
"
#sendTime
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
// 定时通知时间选择器
laydate
.
render
({
elem
:
'
#delayedTime
'
,
type
:
'
datetime
'
});
//公告内容富文本框
var
content
=
layedit
.
build
(
'
content
'
,
{
tool
:
[
'
strong
'
//加粗
,
'
italic
'
//斜体
,
'
underline
'
//下划线
,
'
del
'
//删除线
,
'
|
'
//分割线
,
'
left
'
//左对齐
,
'
center
'
//居中对齐
,
'
right
'
//右对齐
,
'
link
'
//超链接
,
'
unlink
'
//清除链接
,
'
face
'
//表情
,
'
code
'
]
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
title
:
$
(
"
#title
"
).
val
(),
typeId
:
$
(
"
#noticeTypeId
"
).
val
(),
secondTypeId
:
$
(
"
#secondTypeId
"
).
val
(),
sendType
:
$
(
"
input[name='sendType']:checked
"
).
val
(),
timeSend
:
$
(
"
input[name='timeSend']:checked
"
).
val
(),
whetherEmail
:
$
(
"
input[name='whetherEmail']:checked
"
).
val
(),
content
:
encodeURIComponent
(
layedit
.
getContent
(
content
))
};
if
(
$
(
"
input[name='sendType']:checked
"
).
val
()
===
'
2
'
){
//选择性群发
if
(
userList
.
length
==
0
&&
isNull
(
$
(
'
#userName
'
).
tagEditor
(
'
getTags
'
)[
0
].
tags
)){
winui
.
window
.
msg
(
'
请选择收件人
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
params
.
userInfo
=
JSON
.
stringify
(
userList
);
}
}
else
{
params
.
userInfo
=
""
;
}
if
(
$
(
"
input[name='timeSend']:checked
"
).
val
()
===
'
2
'
){
//设置定时通知
if
(
isNull
(
$
(
"
#delayedTime
"
).
val
()))
{
winui
.
window
.
msg
(
'
请选择定时通知时间
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
params
.
delayedTime
=
$
(
"
#delayedTime
"
).
val
();
}
}
else
{
params
.
delayedTime
=
""
;
}
if
(
isNull
(
layedit
.
getContent
(
content
))){
winui
.
window
.
msg
(
'
请填写公告内容
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
$
(
'
#userName
'
).
tagEditor
({
initialTags
:
[],
placeholder
:
'
填写完成后直接回车即可
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
userList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
userList
,
val
));
}
});
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#userNameSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
1
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
1
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
userList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
userName
'
,
userReturnList
));
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnotice/sysnoticedetails.js
已删除
100644 → 0
浏览文件 @
314b974c
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
notice012
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysnotice/sysnoticedetailsTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
if
(
json
.
bean
.
sendType
==
"
群发所有人
"
){
$
(
"
#sendTo
"
).
hide
();
}
if
(
json
.
bean
.
timeSend
!=
"
设置
"
){
$
(
"
#sendTime
"
).
hide
();
}
if
(
json
.
bean
.
state
==
"
新建
"
){
$
(
"
#stateUp
"
).
hide
();
}
matchingLanguage
();
}
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnotice/sysnoticeedit.js
已删除
100644 → 0
浏览文件 @
314b974c
var
layedit
;
var
userList
=
new
Array
();
//选择用户返回的集合或者进行回显的集合
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
tableSelect
'
,
'
laydate
'
,
'
tagEditor
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
tableSelect
=
layui
.
tableSelect
,
laydate
=
layui
.
laydate
;
layedit
=
layui
.
layedit
;
//初始化一级公告类型
function
initNoticeType
(
id
){
showGrid
({
id
:
"
noticeTypeId
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype011
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
$
(
"
#noticeTypeId
"
).
val
(
id
);
form
.
render
(
'
select
'
);
}
});
}
//初始化二级公告类型
function
initSecondNoticeType
(
id
){
showGrid
({
id
:
"
secondTypeId
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype013
"
,
params
:
{
parentId
:
$
(
"
#noticeTypeId
"
).
val
()},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
$
(
"
#secondTypeId
"
).
val
(
id
);
form
.
render
(
'
select
'
);
}
});
}
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
notice006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysnotice/sysnoticeeditTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
initNoticeType
(
json
.
bean
.
typeId
);
initSecondNoticeType
(
json
.
bean
.
secondTypeId
);
//一级公告类型监听事件
form
.
on
(
'
select(noticeTypeId)
'
,
function
(
data
)
{
initSecondNoticeType
(
""
);
});
var
userNames
=
""
;
if
(
json
.
bean
.
sendType
===
'
2
'
||
json
.
bean
.
sendType
==
2
){
userList
=
json
.
bean
.
userInfo
;
$
.
each
(
userList
,
function
(
i
,
item
)
{
userNames
+=
item
.
name
+
'
,
'
;
});
}
//人员选择
$
(
'
#userName
'
).
tagEditor
({
initialTags
:
userNames
.
split
(
'
,
'
),
placeholder
:
'
填写完成后直接回车即可
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
userList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
userList
,
val
));
}
});
// 定时通知时间选择器
laydate
.
render
({
elem
:
'
#delayedTime
'
,
type
:
'
datetime
'
});
//设置群发类型
$
(
"
input:radio[name=sendType][value=
"
+
json
.
bean
.
sendType
+
"
]
"
).
attr
(
"
checked
"
,
true
);
//设置是否定时通知
if
(
json
.
bean
.
timeSend
==
'
2
'
){
$
(
"
input:radio[name=timeSend][value=
"
+
2
+
"
]
"
).
attr
(
"
checked
"
,
true
);
}
else
{
$
(
"
input:radio[name=timeSend][value=
"
+
1
+
"
]
"
).
attr
(
"
checked
"
,
true
);
}
//设置是否邮件通知
$
(
"
input:radio[name=whetherEmail][value=
"
+
json
.
bean
.
whetherEmail
+
"
]
"
).
attr
(
"
checked
"
,
true
);
//群发所有人
if
(
json
.
bean
.
sendType
==
'
1
'
){
$
(
"
#sendTo
"
).
hide
();
}
//群发类型变化事件
form
.
on
(
'
radio(sendType)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//群发所有人
$
(
"
#sendTo
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//选择性群发
$
(
"
#sendTo
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
//不设置定时上线
if
(
json
.
bean
.
timeSend
==
'
1
'
){
$
(
"
#sendTime
"
).
hide
();
}
//定时通知变化事件
form
.
on
(
'
radio(timeSend)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//不设置定时通知
$
(
"
#sendTime
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//设置定时通知
$
(
"
#sendTime
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
//富文本框编辑器
var
getContent
=
layedit
.
build
(
'
content
'
,
{
tool
:
[
'
strong
'
//加粗
,
'
italic
'
//斜体
,
'
underline
'
//下划线
,
'
del
'
//删除线
,
'
|
'
//分割线
,
'
left
'
//左对齐
,
'
center
'
//居中对齐
,
'
right
'
//右对齐
,
'
link
'
//超链接
,
'
unlink
'
//清除链接
,
'
face
'
//表情
,
'
code
'
]
});
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#userNameSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
1
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
1
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
userList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
userName
'
,
userReturnList
));
});
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowId
:
parent
.
rowId
,
title
:
$
(
"
#title
"
).
val
(),
typeId
:
$
(
"
#noticeTypeId
"
).
val
(),
secondTypeId
:
$
(
"
#secondTypeId
"
).
val
(),
sendType
:
$
(
"
input[name='sendType']:checked
"
).
val
(),
timeSend
:
$
(
"
input[name='timeSend']:checked
"
).
val
(),
whetherEmail
:
$
(
"
input[name='whetherEmail']:checked
"
).
val
(),
content
:
encodeURIComponent
(
layedit
.
getContent
(
getContent
))
};
if
(
$
(
"
input[name='sendType']:checked
"
).
val
()
===
'
2
'
){
//选择性群发
if
(
userList
.
length
==
0
||
isNull
(
$
(
'
#userName
'
).
tagEditor
(
'
getTags
'
)[
0
].
tags
)){
winui
.
window
.
msg
(
'
请选择收件人
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
params
.
userInfo
=
JSON
.
stringify
(
userList
);
}
}
else
{
params
.
userInfo
=
""
;
}
if
(
$
(
"
input[name='timeSend']:checked
"
).
val
()
===
'
2
'
){
//设置定时通知
if
(
isNull
(
$
(
"
#delayedTime
"
).
val
()))
{
winui
.
window
.
msg
(
'
请选择定时通知时间
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
params
.
delayedTime
=
$
(
"
#delayedTime
"
).
val
();
}
}
else
{
params
.
delayedTime
=
""
;
}
if
(
isNull
(
layedit
.
getContent
(
getContent
))){
winui
.
window
.
msg
(
'
请填写公告内容
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice007
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
}
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnotice/sysnoticelist.js
已删除
100644 → 0
浏览文件 @
314b974c
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
form
'
,
'
soulTable
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
soulTable
=
layui
.
soulTable
,
table
=
layui
.
table
;
// 公告上线时间时间段表格
laydate
.
render
({
elem
:
'
#upTime
'
,
range
:
'
~
'
});
authBtn
(
'
1561973831412
'
);
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
noticeBasePath
+
'
notice001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
overflow
:
{
type
:
'
tips
'
,
hoverTime
:
300
,
// 悬停时间,单位ms, 悬停 hoverTime 后才会显示,默认为 0
minWidth
:
150
,
// 最小宽度
maxWidth
:
500
// 最大宽度
},
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
公告标题
'
,
align
:
'
left
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
3
'
)
{
return
"
<span class='state-down'>下线</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
)
{
return
"
<span class='state-up'>上线</span>
"
;
}
else
if
(
d
.
state
==
'
1
'
)
{
return
"
<span class='state-new'>新建</span>
"
;
}
}},
{
field
:
'
typeName
'
,
title
:
'
一级分类
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
secondTypeName
'
,
title
:
'
二级分类
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
whetherEmail
'
,
title
:
'
邮件通知
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
whetherEmail
==
'
1
'
)
{
return
"
否
"
;
}
else
if
(
d
.
whetherEmail
==
'
2
'
)
{
return
"
是
"
;
}
}},
{
field
:
'
timeSend
'
,
title
:
'
定时任务
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
timeSend
==
'
1
'
)
{
return
"
-
"
;
}
else
if
(
d
.
timeSend
==
'
2
'
)
{
return
d
.
delayedTime
;
}
else
if
(
d
.
timeSend
==
'
3
'
)
{
return
"
已失效
"
;
}
else
if
(
d
.
timeSend
==
'
4
'
)
{
return
"
已执行
"
;
}
}},
{
field
:
'
sendType
'
,
title
:
'
群发类型
'
,
width
:
120
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
sendType
==
'
1
'
)
{
return
"
群发所有人
"
;
}
else
if
(
d
.
sendType
==
'
2
'
)
{
return
"
选择性群发
"
;
}
}},
{
field
:
'
realLinesType
'
,
title
:
'
上线类型
'
,
width
:
80
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
realLinesType
==
'
1
'
)
{
return
"
手动上线
"
;
}
else
if
(
d
.
realLinesType
==
'
2
'
)
{
return
"
定时上线
"
;
}
else
{
return
""
;
}
}},
{
field
:
'
realLinesTime
'
,
title
:
'
上线时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
370
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
soulTable
.
render
(
this
);
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delet
'
)
{
//删除
delet
(
data
);
}
else
if
(
layEvent
===
'
up
'
)
{
//上线
up
(
data
);
}
else
if
(
layEvent
===
'
down
'
)
{
//下线
down
(
data
);
}
else
if
(
layEvent
===
'
upMove
'
)
{
//上移
upMove
(
data
);
}
else
if
(
layEvent
===
'
downMove
'
)
{
//下移
downMove
(
data
);
}
else
if
(
layEvent
===
'
timeup
'
)
{
//定时上线
timeup
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//公告详情
details
(
data
);
}
});
//添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/sysnotice/sysnoticeadd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
sysnoticeadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
//定时上线
function
timeup
(
data
)
{
rowId
=
data
.
id
;
title
=
data
.
title
;
_openNewWindows
({
url
:
"
../../tpl/sysnotice/sysnoticetimeup.html
"
,
title
:
"
定时上线
"
,
pageId
:
"
sysnoticetimeup
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
//删除
function
delet
(
data
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice003
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//上线
function
up
(
data
)
{
var
msg
=
'
确认上线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
上线公告
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
上线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//下线
function
down
(
data
)
{
var
msg
=
'
确认下线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
下线公告
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
下线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/sysnotice/sysnoticeedit.html
"
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
sysnoticeedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
//上移
function
upMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice008
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveUpOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//下移
function
downMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice009
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//公告详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/sysnotice/sysnoticedetails.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
sysnoticedetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
loadTable
();
});
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
//上线时间搜索条件
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
var
startTime
=
""
,
endTime
=
""
;
if
(
!
isNull
(
$
(
"
#upTime
"
).
val
()))
{
startTime
=
$
(
"
#upTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#upTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
firstTime
:
startTime
,
lastTime
:
endTime
,
title
:
$
(
"
#title
"
).
val
(),
state
:
$
(
"
#state
"
).
val
(),
realLinesType
:
$
(
"
#realLinesType
"
).
val
(),
whetherEmail
:
$
(
"
#whetherEmail
"
).
val
()
};
}
exports
(
'
sysnoticelist
'
,
{});
});
message/src/main/resources/template/js/sysnotice/sysnoticetimeup.js
已删除
100644 → 0
浏览文件 @
314b974c
var
typeId
=
""
;
var
secondTypeId
=
""
;
var
layedit
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
tableSelect
'
,
'
laydate
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
,
'
layedit
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
tableSelect
=
layui
.
tableSelect
,
laydate
=
layui
.
laydate
;
layedit
=
layui
.
layedit
;
// 定时通知时间选择器
laydate
.
render
({
elem
:
'
#delayedTime
'
,
type
:
'
datetime
'
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowId
:
parent
.
rowId
,
title
:
parent
.
title
,
delayedTime
:
$
(
"
#delayedTime
"
).
val
()
};
if
(
isNull
(
params
.
delayedTime
)){
winui
.
window
.
msg
(
'
请选择定时通知时间
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
notice011
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnoticefront/sysnoticefrontdetails.js
已删除
100644 → 0
浏览文件 @
314b974c
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
,
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
notice014
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
matchingLanguage
();
}
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnoticefront/sysnoticefrontlist.js
已删除
100644 → 0
浏览文件 @
314b974c
var
startTime
=
""
;
var
endTime
=
""
;
var
typeId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
// 公告上线时间时间段表格
laydate
.
render
({
elem
:
'
#upTime
'
,
range
:
'
~
'
});
function
showList
(){
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
noticeBasePath
+
'
notice013
'
,
where
:
{
typeId
:
typeId
,
firstTime
:
startTime
,
lastTime
:
endTime
,
title
:
$
(
"
#titleName
"
).
val
()},
even
:
true
,
page
:
true
,
limits
:
[
8
,
16
,
24
,
32
,
40
,
48
,
56
],
limit
:
8
,
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
主题
'
,
align
:
'
left
'
,
width
:
400
,
templet
:
function
(
d
)
{
return
'
<a lay-event="titleName" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
typeName
'
,
title
:
'
类别
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
linesTime
'
,
title
:
'
发送时间
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
createName
'
,
title
:
'
发送人
'
,
align
:
'
left
'
,
width
:
90
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
});
}
//监听行单击事件
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
titleName
'
)
{
//点击主题弹出详情
details
(
data
);
}
});
//公告详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/sysnoticefront/sysnoticefrontdetails.html
"
,
title
:
"
公告详情
"
,
pageId
:
"
sysnoticefrontdetails
"
,
area
:
[
'
80vw
'
,
'
80vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
//初始化左侧菜单数据
showGrid
({
id
:
"
setting
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype011
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysnoticefront/sysnoticefrontTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{
},
ajaxSendAfter
:
function
(
json
)
{
//初始化所有上线列表数据
showList
();
}
});
$
(
"
body
"
).
on
(
"
click
"
,
"
.setting a
"
,
function
(
e
)
{
$
(
"
.setting a
"
).
removeClass
(
"
selected
"
);
$
(
this
).
addClass
(
"
selected
"
);
var
clickName
=
$
(
this
).
attr
(
"
rowname
"
);
$
(
"
#title
"
).
text
(
clickName
);
typeId
=
$
(
this
).
attr
(
"
rowid
"
);
loadTable
();
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
loadTable
();
});
//上线时间搜索条件
function
loadTable
()
{
if
(
isNull
(
$
(
"
#upTime
"
).
val
()))
{
startTime
=
""
;
endTime
=
""
;
}
else
{
startTime
=
$
(
"
#upTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#upTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
table
.
reloadData
(
"
messageTable
"
,
{
where
:{
typeId
:
typeId
,
firstTime
:
startTime
,
lastTime
:
endTime
,
title
:
$
(
"
#titleName
"
).
val
()}});
}
exports
(
'
sysnoticefrontlist
'
,
{});
});
message/src/main/resources/template/js/sysnoticetype/sysnoticetypeadd.js
已删除
100644 → 0
浏览文件 @
314b974c
var
parentId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
//类型级别变化事件
form
.
on
(
'
radio(level)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//该类型为一级类型
$
(
"
#parentIdBox
"
).
addClass
(
"
layui-hide
"
);
}
else
if
(
val
==
'
2
'
){
//该类型为二级类型
$
(
"
#parentIdBox
"
).
removeClass
(
"
layui-hide
"
);
initNoticeTypeId
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
//一级类型
function
initNoticeTypeId
(){
showGrid
({
id
:
"
lockParentSel
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype011
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
}
//一级类型监听事件
form
.
on
(
'
select(lockParentSel)
'
,
function
(
data
)
{
parentId
=
data
.
value
;
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
typeName
:
$
(
"
#typeName
"
).
val
(),
};
if
(
$
(
"
input[name='level']:checked
"
).
val
()
===
'
2
'
){
//该类型为二级类型
if
(
isNull
(
parentId
)){
winui
.
window
.
msg
(
'
请选择一级公告类型
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
else
{
params
.
parentId
=
parentId
;
}
}
else
if
(
$
(
"
input[name='level']:checked
"
).
val
()
===
'
1
'
){
params
.
parentId
=
'
0
'
;
}
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnoticetype/sysnoticetypeedit.js
已删除
100644 → 0
浏览文件 @
314b974c
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
showGrid
({
id
:
"
showForm
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
if
(
json
.
bean
.
pId
===
'
二级类型
'
){
//该类型为二级类型
$
(
"
#parentIdBox
"
).
removeClass
(
"
layui-hide
"
);
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowId
:
parent
.
rowId
,
typeName
:
$
(
"
#typeName
"
).
val
(),
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype007
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
}
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
message/src/main/resources/template/js/sysnoticetype/sysnoticetypelist.js
已删除
100644 → 0
浏览文件 @
314b974c
var
firstType
=
""
;
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
tableTreeDj
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
tableTree
=
layui
.
tableTreeDj
;
authBtn
(
'
1561106812907
'
);
// 公告类型列表
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
noticeBasePath
+
'
noticetype001
'
,
where
:
{
name
:
$
(
"
#name
"
).
val
(),
parentId
:
$
(
"
#firstType
"
).
val
()},
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
类型名称
'
,
width
:
120
},
{
field
:
'
allNum
'
,
title
:
'
总公告数量
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
upStateNum
'
,
title
:
'
上线公告数量
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
state
'
,
title
:
'
当前状态
'
,
width
:
120
,
align
:
'
center
'
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
3
'
){
return
"
<span class='state-down'>下线</span>
"
;
}
else
if
(
d
.
state
==
'
2
'
){
return
"
<span class='state-up'>上线</span>
"
;
}
else
if
(
d
.
state
==
'
1
'
){
return
"
<span class='state-new'>新建</span>
"
;
}
}},
{
field
:
'
pId
'
,
title
:
'
类型级别
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
)
{
if
(
d
.
pId
==
'
0
'
){
return
"
一级类型
"
;
}
else
{
return
"
二级类型
"
;
}
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
180
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
257
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
if
(
!
loadFirstType
){
initFirstType
();
}
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
pId
'
,
title
:
'
name
'
,
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
delet
'
)
{
//删除
delet
(
data
);
}
else
if
(
layEvent
===
'
up
'
)
{
//上线
up
(
data
);
}
else
if
(
layEvent
===
'
down
'
)
{
//下线
down
(
data
);
}
else
if
(
layEvent
===
'
upMove
'
)
{
//上移
upMove
(
data
);
}
else
if
(
layEvent
===
'
downMove
'
)
{
//下移
downMove
(
data
);
}
});
var
loadFirstType
=
false
;
//初始化一级类型
function
initFirstType
(){
loadFirstType
=
true
;
showGrid
({
id
:
"
firstType
"
,
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype012
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
}
//一级类型监听事件
form
.
on
(
'
select(firstType)
'
,
function
(
data
)
{
firstType
=
data
.
value
;
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
loadTable
();
});
//添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/sysnoticetype/sysnoticetypeadd.html
"
,
title
:
"
新增类型
"
,
pageId
:
"
sysnoticetypeadd
"
,
area
:
[
'
500px
'
,
'
40vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
//删除
function
delet
(
data
)
{
var
msg
=
'
确认删除选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
删除公告类型
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype003
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//上线
function
up
(
data
)
{
var
msg
=
'
确认上线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
上线公告类型
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype004
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
上线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//下线
function
down
(
data
)
{
var
msg
=
'
确认下线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
下线公告类型
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
下线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/sysnoticetype/sysnoticetypeedit.html
"
,
title
:
"
编辑类型
"
,
pageId
:
"
sysnoticetypeedit
"
,
area
:
[
'
500px
'
,
'
40vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
//上移
function
upMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype008
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveUpOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//下移
function
downMove
(
data
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
noticeBasePath
+
"
noticetype009
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
where
:{
name
:
$
(
"
#name
"
).
val
(),
parentId
:
$
(
"
#firstType
"
).
val
()}});
}
exports
(
'
sysnoticetypelist
'
,
{});
});
message/src/main/resources/template/tpl/mymessage/myNoticeList.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin: 0 auto; padding-top: 20px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
</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><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"delBeans"
class=
"winui-toolbtn"
><i
class=
"fa fa-trash-o"
aria-hidden=
"true"
></i>
删除选中
</button>
<button
id=
"designReadBeans"
class=
"winui-toolbtn"
><i
class=
"fa fa-book"
aria-hidden=
"true"
></i>
设置为已读
</button>
</div>
</div>
<div
style=
"margin: auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
sel
"
>
查看
<
/a
>
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
</script>
</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/mymessage/
'
}).
use
(
'
myNoticeList
'
);
</script>
</body>
</html>
message/src/main/resources/template/tpl/sysnotice/sysnoticeadd.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
公告标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入公告标题"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
一级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-inline"
>
<select
lay-filter=
"noticeTypeId"
lay-search=
""
win-verify=
"required"
id=
"noticeTypeId"
>
</select>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
二级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-inline"
>
<select
lay-filter=
"secondTypeId"
lay-search=
""
win-verify=
"required"
id=
"secondTypeId"
>
</select>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
群发类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"sendType"
value=
"1"
title=
"群发所有人"
lay-filter=
"sendType"
checked=
"checked"
/>
<input
type=
"radio"
name=
"sendType"
value=
"2"
title=
"选择性群发"
lay-filter=
"sendType"
/>
</div>
</div>
<div
class=
"layui-form-item"
id=
"sendTo"
style=
"display: none;"
>
<label
class=
"layui-form-label"
>
人员选择
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"userName"
name=
"userName"
placeholder=
"请选择公告收件人"
class=
"layui-input"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"userNameSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
定时通知
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"timeSend"
value=
"1"
title=
"不设置"
lay-filter=
"timeSend"
checked=
"checked"
/>
<input
type=
"radio"
name=
"timeSend"
value=
"2"
title=
"设置"
lay-filter=
"timeSend"
/>
</div>
</div>
<div
class=
"layui-form-item"
id=
"sendTime"
style=
"display: none;"
>
<label
class=
"layui-form-label"
>
通知时间
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"delayedTime"
name=
"delayedTime"
placeholder=
"请选择定时通知时间"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
邮件通知
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"whetherEmail"
value=
"1"
title=
"否"
lay-filter=
"whetherEmail"
checked=
"checked"
/>
<input
type=
"radio"
name=
"whetherEmail"
value=
"2"
title=
"是"
lay-filter=
"whetherEmail"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
公告内容
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<textarea
id=
"content"
name=
"content"
placeholder=
"请输入公告内容"
class=
"layui-textarea"
></textarea>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></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"
>
layui
.
config
({
base
:
'
../../js/sysnotice/
'
}).
use
(
'
sysnoticeadd
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticedetails.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</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/sysnotice/
'
}).
use
(
'
sysnoticedetails
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticedetailsTemplate.tpl
已删除
100644 → 0
浏览文件 @
314b974c
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
公告标题:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
title
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
一级分类:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
typeName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
二级分类:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
secondTypeName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
群发类型:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
sendType
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTo"
>
<label
class=
"layui-form-label"
>
人员选择:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
userName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
定时通知:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
timeSend
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTime"
>
<label
class=
"layui-form-label"
>
通知时间:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
delayedTime
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
邮件通知:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
whetherEmail
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
当前状态:
</label>
<div
class=
"layui-input-block ver-center {
{
colorClass
}
}"
>
{
{
state
}
}
</div>
</div>
<div
id=
"stateUp"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
上线类型:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
realLinesType
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTime"
>
<label
class=
"layui-form-label"
>
上线时间:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
realLinesTime
}
}
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
创建人:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
createName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
创建时间:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
createTime
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
公告内容:
</label>
<div
class=
"layui-input-block ver-center"
>
{{
{
content
}
}}
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticeedit.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</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/sysnotice/
'
}).
use
(
'
sysnoticeedit
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticeeditTemplate.tpl
已删除
100644 → 0
浏览文件 @
314b974c
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
公告标题
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"title"
name=
"title"
win-verify=
"required"
placeholder=
"请输入公告标题"
class=
"layui-input"
value=
"{
{
title
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
一级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
lay-filter=
"noticeTypeId"
lay-search=
""
win-verify=
"required"
id=
"noticeTypeId"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
二级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
lay-filter=
"secondTypeId"
lay-search=
""
win-verify=
"required"
id=
"secondTypeId"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
群发类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"sendType"
value=
"1"
title=
"群发所有人"
lay-filter=
"sendType"
/>
<input
type=
"radio"
name=
"sendType"
value=
"2"
title=
"选择性群发"
lay-filter=
"sendType"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTo"
>
<label
class=
"layui-form-label"
>
人员选择
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"userName"
name=
"userName"
placeholder=
"请选择公告收件人"
class=
"layui-input"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"userNameSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
定时通知
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"timeSend"
value=
"2"
title=
"是"
lay-filter=
"timeSend"
/>
<input
type=
"radio"
name=
"timeSend"
value=
"1"
title=
"否"
lay-filter=
"timeSend"
/>
<br><div
class=
"layui-form-mid layui-word-aux"
>
"已失效"和"已执行"默认为"否"
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTime"
>
<label
class=
"layui-form-label"
>
通知时间
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"delayedTime"
name=
"delayedTime"
placeholder=
"请选择定时通知时间"
class=
"layui-input"
value=
"{
{
delayedTime
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
邮件通知
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"whetherEmail"
value=
"2"
title=
"是"
lay-filter=
"whetherEmail"
/>
<input
type=
"radio"
name=
"whetherEmail"
value=
"1"
title=
"否"
lay-filter=
"whetherEmail"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
公告内容
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<textarea
id=
"content"
name=
"content"
placeholder=
"请输入公告内容"
class=
"layui-textarea"
>
{
{
content
}
}
</textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticelist.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<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=
"title"
name=
"title"
placeholder=
"请输入公告标题"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
上线时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"upTime"
name=
"upTime"
placeholder=
"请选择上线时间"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
新建
</option>
<option
value=
"2"
>
上线
</option>
<option
value=
"3"
>
下线
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
上线类型
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"realLinesType"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
手动上线
</option>
<option
value=
"2"
>
定时上线
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
邮件通知
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"whetherEmail"
>
<option
value=
""
>
全部
</option>
<option
value=
"2"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
type=
"button"
id=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></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><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1561973831412"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
state
==
3
){
}}
{{
#
if
(
auth
(
'
1561973892019
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973862516
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
up
"
>
上线
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973845878
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
timeSend
==
'
1
'
||
d
.
timeSend
==
'
3
'
||
d
.
timeSend
==
'
4
'
){
}}
{{
#
if
(
auth
(
'
1561973940442
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
timeup
"
>
定时上线
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
2
&&
auth
(
'
1561973877111
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
down
"
>
下线
<
/a
>
{{
#
}
else
if
(
d
.
state
==
1
){
}}
{{
#
if
(
auth
(
'
1561973892019
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973862516
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
up
"
>
上线
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973845878
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
timeSend
==
'
1
'
&&
auth
(
'
1561973940442
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
timeup
"
>
定时上线
<
/a
>
{{
#
}
}}
{{
#
}
else
{
}}
参数错误
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973909201
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
upMove
"
>
上移
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561973923764
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
downMove
"
>
下移
<
/a
>
{{
#
}
}}
</script>
</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/sysnotice/
'
}).
use
(
'
sysnoticelist
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnotice/sysnoticetimeup.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
id=
"sendTime"
>
<label
class=
"layui-form-label"
>
通知时间
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"delayedTime"
name=
"delayedTime"
placeholder=
"请选择定时通知时间"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></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"
>
layui
.
config
({
base
:
'
../../js/sysnotice/
'
}).
use
(
'
sysnoticetimeup
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontTemplate.tpl
已删除
100644 → 0
浏览文件 @
314b974c
<a
class=
"selected"
rowid=
""
rowname=
"全部"
><i
class=
"font-icon icon-reorder"
></i>
全部
</a>
{
{
#
each
rows
}
}
<a
rowid=
"{
{
id
}
}"
rowname=
"{
{
name
}
}"
>
{
{
name
}
}
</a>
{
{/
each
}
}
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontdetails.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</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/sysnoticefront/
'
}).
use
(
'
sysnoticefrontdetails
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontdetailsTemplate.tpl
已删除
100644 → 0
浏览文件 @
314b974c
{{
#
bean
}}
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
主题:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
title
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
类别:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
typeName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"sendTime"
>
<label
class=
"layui-form-label"
>
发送时间:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
linesTime
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
发送人:
</label>
<div
class=
"layui-input-block ver-center"
>
{
{
createName
}
}
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
内容:
</label>
<div
class=
"layui-input-block ver-center"
>
{{
{
content
}
}}
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticefront/sysnoticefrontlist.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto; height: 100%;"
>
<div
class=
"light-app-left"
>
<p
class=
"app-title"
>
<span>
我的信息
</span>
</p>
<div
class=
"setting"
id=
"setting"
>
</div>
</div>
<div
class=
"light-app-right"
id=
"showForm"
>
<div
class=
"h1"
id=
"title"
>
全部
</div>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<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=
"titleName"
name=
"titleName"
placeholder=
"请输入公告主题"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
发送时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"upTime"
name=
"upTime"
placeholder=
"请选择发送时间"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
type=
"button"
id=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
</div>
</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/sysnoticefront/
'
}).
use
(
'
sysnoticefrontlist
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeadd.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
类型名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeName"
name=
"typeName"
win-verify=
"required"
placeholder=
"请输入公告类型名称"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
类型级别
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"level"
value=
"1"
title=
"一级类型"
lay-filter=
"level"
checked
/>
<input
type=
"radio"
name=
"level"
value=
"2"
title=
"二级类型"
lay-filter=
"level"
/>
</div>
</div>
<div
class=
"layui-form-item layui-hide"
id=
"parentIdBox"
>
<label
class=
"layui-form-label"
>
上级类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
class=
"layui-input-block"
lay-search=
""
id=
"lockParentSel"
lay-filter=
"lockParentSel"
>
</select>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></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"
>
layui
.
config
({
base
:
'
../../js/sysnoticetype/
'
}).
use
(
'
sysnoticetypeadd
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeedit.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</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/sysnoticetype/
'
}).
use
(
'
sysnoticetypeedit
'
);
</script>
</body>
</html>
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypeeditTemplate.tpl
已删除
100644 → 0
浏览文件 @
314b974c
{{
#
bean
}}
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
类型名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"typeName"
name=
"typeName"
win-verify=
"required"
placeholder=
"请输入公告类型名称"
class=
"layui-input"
value=
"{
{
typeName
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
类型级别
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
>
{
{
pId
}
}
</div>
</div>
<div
class=
"layui-form-item layui-hide"
id=
"parentIdBox"
>
<label
class=
"layui-form-label"
>
上级类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block ver-center"
>
{
{
pName
}
}
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formEditBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
message/src/main/resources/template/tpl/sysnoticetype/sysnoticetypelist.html
已删除
100644 → 0
浏览文件 @
314b974c
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<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=
"name"
name=
"name"
placeholder=
"请输入公告类型名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
一级类型
</label>
<div
class=
"layui-input-inline"
>
<select
lay-filter=
"firstType"
lay-search=
""
id=
"firstType"
>
</select>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
type=
"button"
id=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></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><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1561106812907"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
state
==
3
){
}}
{{
#
if
(
auth
(
'
1561106862355
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106829283
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
up
"
>
上线
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106794451
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
2
&&
auth
(
'
1561106844126
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
down
"
>
下线
<
/a
>
{{
#
}
else
if
(
d
.
state
==
1
){
}}
{{
#
if
(
auth
(
'
1561106862355
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106829283
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
up
"
>
上线
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106794451
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
else
{
}}
参数错误
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106879576
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
upMove
"
>
上移
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1561106893228
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
downMove
"
>
下移
<
/a
>
{{
#
}
}}
</script>
</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/sysnoticetype/
'
}).
use
(
'
sysnoticetypelist
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
80dfd46f
...
@@ -119,6 +119,11 @@
...
@@ -119,6 +119,11 @@
"knowlgContentState"
:
{
"name"
:
"知识库状态"
,
"className"
:
"skyeye-knowlg#com.skyeye.eve.classenum.KnowlgContentState"
},
"knowlgContentState"
:
{
"name"
:
"知识库状态"
,
"className"
:
"skyeye-knowlg#com.skyeye.eve.classenum.KnowlgContentState"
},
"noticeState"
:
{
"name"
:
"公告状态"
,
"className"
:
"skyeye-notice#com.skyeye.eve.classenum.NoticeState"
},
"noticeRealLinesType"
:
{
"name"
:
"公告上线类型"
,
"className"
:
"skyeye-notice#com.skyeye.eve.classenum.NoticeRealLinesType"
},
"noticeTimeSend"
:
{
"name"
:
"是否设置定时发送"
,
"className"
:
"skyeye-notice#com.skyeye.eve.classenum.NoticeTimeSend"
},
"wagesTypeEnum"
:
{
"name"
:
"薪资字段类型"
,
"className"
:
"skyeye-wages#com.skyeye.eve.field.classenum.WagesTypeEnum"
},
"wagesTypeEnum"
:
{
"name"
:
"薪资字段类型"
,
"className"
:
"skyeye-wages#com.skyeye.eve.field.classenum.WagesTypeEnum"
},
"wagesModelFieldType"
:
{
"name"
:
"模板关联字段的字段类型"
,
"className"
:
"skyeye-wages#com.skyeye.eve.model.classenum.WagesModelFieldType"
},
"wagesModelFieldType"
:
{
"name"
:
"模板关联字段的字段类型"
,
"className"
:
"skyeye-wages#com.skyeye.eve.model.classenum.WagesModelFieldType"
},
"staffWagesStateEnum"
:
{
"name"
:
"员工薪资设定状态"
,
"className"
:
"skyeye-wages#com.skyeye.eve.field.classenum.StaffWagesStateEnum"
},
"staffWagesStateEnum"
:
{
"name"
:
"员工薪资设定状态"
,
"className"
:
"skyeye-wages#com.skyeye.eve.field.classenum.StaffWagesStateEnum"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录