Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
4f521f8a
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
4f521f8a
编写于
7月 30, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【服务管理】删除系统分类管理
上级
ff07de20
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
7 addition
and
784 deletion
+7
-784
userauth/src/main/resources/template/js/appstore/storeindex.js
...uth/src/main/resources/template/js/appstore/storeindex.js
+0
-145
userauth/src/main/resources/template/js/sysevewin/sysevewinadd.js
.../src/main/resources/template/js/sysevewin/sysevewinadd.js
+1
-40
userauth/src/main/resources/template/js/sysevewin/sysevewinedit.js
...src/main/resources/template/js/sysevewin/sysevewinedit.js
+6
-58
userauth/src/main/resources/template/js/syswintype/syswintypeadd.js
...rc/main/resources/template/js/syswintype/syswintypeadd.js
+0
-71
userauth/src/main/resources/template/js/syswintype/syswintypeedit.js
...c/main/resources/template/js/syswintype/syswintypeedit.js
+0
-89
userauth/src/main/resources/template/js/syswintype/syswintypelist.js
...c/main/resources/template/js/syswintype/syswintypelist.js
+0
-153
userauth/src/main/resources/template/tpl/appstore/firsttypeTemplate.tpl
...ain/resources/template/tpl/appstore/firsttypeTemplate.tpl
+0
-4
userauth/src/main/resources/template/tpl/appstore/secondtypeTemplate.tpl
...in/resources/template/tpl/appstore/secondtypeTemplate.tpl
+0
-6
userauth/src/main/resources/template/tpl/appstore/storeindex.html
.../src/main/resources/template/tpl/appstore/storeindex.html
+0
-37
userauth/src/main/resources/template/tpl/appstore/storeindexTemplate.tpl
...in/resources/template/tpl/appstore/storeindexTemplate.tpl
+0
-18
userauth/src/main/resources/template/tpl/syswintype/syswintypeadd.html
...main/resources/template/tpl/syswintype/syswintypeadd.html
+0
-47
userauth/src/main/resources/template/tpl/syswintype/syswintypeedit.html
...ain/resources/template/tpl/syswintype/syswintypeedit.html
+0
-47
userauth/src/main/resources/template/tpl/syswintype/syswintypelist.html
...ain/resources/template/tpl/syswintype/syswintypelist.html
+0
-69
未找到文件。
userauth/src/main/resources/template/js/appstore/storeindex.js
已删除
100644 → 0
浏览文件 @
ff07de20
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
;
//加载一级分类
showGrid
({
id
:
"
sysFirstType
"
,
url
:
reqBasePath
+
"
sysevewintype012
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/appstore/firsttypeTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
}
});
initDate
();
function
initDate
(){
var
secondType
=
""
;
$
.
each
(
$
(
'
#sysSecondType input:checkbox:checked
'
),
function
()
{
secondType
=
secondType
+
$
(
this
).
val
()
+
"
,
"
;
});
//初始化数据
showGrid
({
id
:
"
showForm
"
,
url
:
reqBasePath
+
"
sysevewin008
"
,
params
:
{
firstType
:
$
(
"
#sysFirstType
"
).
find
(
"
.active
"
).
find
(
'
a
'
).
attr
(
'
rowid
'
),
secondType
:
secondType
},
pagination
:
true
,
pagesize
:
18
,
template
:
getFileContent
(
'
tpl/appstore/storeindexTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
hdb
.
registerHelper
(
"
compare1
"
,
function
(
v1
,
options
){
return
fileBasePath
+
v1
;
});
hdb
.
registerHelper
(
'
compare2
'
,
function
(
v1
,
v2
,
options
)
{
if
(
isNull
(
v1
)){
return
''
;
}
else
{
return
'
<button class="layui-btn layui-btn-sm aysnMenu" rowid="
'
+
v2
+
'
">下载</button>
'
;
}
});
},
options
:
{},
ajaxSendAfter
:
function
(
json
)
{
$
(
"
.sysExperience
"
).
hide
();
$
(
"
.aysnMenu
"
).
hide
();
//遮罩层移入移出事件
$
(
"
.app-store-item-bottom-card
"
).
mouseover
(
function
(
e
){
$
(
this
).
parent
().
find
(
"
.app-store-item-bottom
"
).
addClass
(
"
app-store-item-bottom-zz
"
);
$
(
this
).
find
(
"
.sysExperience
"
).
show
();
$
(
this
).
find
(
"
.aysnMenu
"
).
show
();
}).
mouseout
(
function
(
e
){
$
(
this
).
parent
().
find
(
"
.app-store-item-bottom
"
).
removeClass
(
"
app-store-item-bottom-zz
"
);
$
(
this
).
find
(
"
.sysExperience
"
).
hide
();
$
(
this
).
find
(
"
.aysnMenu
"
).
hide
();
});
matchingLanguage
();
form
.
render
();
}
});
}
//一级分类点击事件
$
(
"
#sysFirstType
"
).
on
(
'
click
'
,
"
a
"
,
function
(
e
)
{
$
(
"
#sysFirstType
"
).
find
(
"
li
"
).
removeClass
(
"
active
"
);
$
(
this
).
parent
().
addClass
(
"
active
"
);
var
rowId
=
$
(
this
).
attr
(
"
rowid
"
);
//加载二级分类
showGrid
({
id
:
"
sysSecondType
"
,
url
:
reqBasePath
+
"
sysevewintype013
"
,
params
:
{
rowId
:
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/appstore/secondtypeTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
checkbox
'
);
initDate
();
}
});
});
//二级分类点击事件
form
.
on
(
'
checkbox(checkboxProperty)
'
,
function
(
data
){
if
(
$
(
'
#sysSecondType input:checkbox:checked
'
).
length
==
$
(
'
#sysSecondType input:checkbox
'
).
length
){
$
(
"
#sysSecondType
"
).
find
(
"
li
"
).
find
(
'
a[rowid="111"]
'
).
parent
().
addClass
(
'
active
'
);
}
else
{
$
(
"
#sysSecondType
"
).
find
(
"
li
"
).
find
(
'
a[rowid="111"]
'
).
parent
().
removeClass
(
'
active
'
);
}
initDate
();
});
//二级分类全选操作
$
(
"
#sysSecondType
"
).
on
(
'
click
'
,
"
a[rowid='111']
"
,
function
(
e
)
{
$
.
each
(
$
(
'
#sysSecondType input:checkbox
'
),
function
()
{
$
(
this
).
prop
(
"
checked
"
,
true
);
});
$
(
this
).
parent
().
addClass
(
'
active
'
);
form
.
render
(
'
checkbox
'
);
initDate
();
});
//体验
$
(
"
body
"
).
on
(
'
click
'
,
"
.sysExperience
"
,
function
(
e
)
{
var
sysurl
=
$
(
this
).
attr
(
'
sysurl
'
);
window
.
open
(
sysurl
,
'
_blank
'
,
''
);
});
//详情
$
(
"
body
"
).
on
(
'
click
'
,
"
.sysDetails
"
,
function
(
e
)
{
});
//同步
$
(
"
body
"
).
on
(
'
click
'
,
"
.aysnMenu
"
,
function
(
e
)
{
var
downLoadId
=
$
(
this
).
attr
(
"
rowid
"
);
layer
.
prompt
({
formType
:
0
,
value
:
''
,
title
:
'
请输入系统所在地址
'
},
function
(
val
,
index
){
layer
.
close
(
index
);
layer
.
confirm
(
'
确定从该地址:[
'
+
val
+
'
]进行数据同步吗?
'
,
{
icon
:
3
,
title
:
'
数据同步
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysimportantsynchronization001
"
,
params
:{
rowId
:
downLoadId
,
url
:
val
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
同步成功
"
,
{
icon
:
1
,
time
:
2000
});
}});
});
});
});
exports
(
'
storeindex
'
,
{});
});
userauth/src/main/resources/template/js/sysevewin/sysevewinadd.js
浏览文件 @
4f521f8a
...
...
@@ -71,53 +71,15 @@ layui.config({
}
});
//加载一级分类
showGrid
({
id
:
"
sysFirstType
"
,
url
:
reqBasePath
+
"
sysevewintype012
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
select(sysFirstType)
'
,
function
(
data
){
var
firstSelTypeId
;
if
(
isNull
(
data
.
value
)){
firstSelTypeId
=
'
111
'
;
}
else
{
firstSelTypeId
=
data
.
value
;
}
showGrid
({
id
:
"
sysSecondType
"
,
url
:
reqBasePath
+
"
sysevewintype013
"
,
params
:
{
rowId
:
firstSelTypeId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
sysName
:
$
(
"
#sysName
"
).
val
(),
sysUrl
:
$
(
"
#sysUrl
"
).
val
(),
sysDesc
:
encodeURIComponent
(
layedit
.
getContent
(
layContent
)),
sysType
:
$
(
"
#sysType
"
).
val
(),
sysFirstType
:
data
.
field
.
sysFirstType
,
sysSecondType
:
data
.
field
.
sysSecondType
,
};
params
.
sysPic
=
$
(
"
#sysPic
"
).
find
(
"
input[type='hidden'][name='upload']
"
).
attr
(
"
oldurl
"
);
if
(
isNull
(
params
.
sysPic
)){
...
...
@@ -132,11 +94,10 @@ layui.config({
return
false
;
});
//取消
//
取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/js/sysevewin/sysevewinedit.js
浏览文件 @
4f521f8a
...
...
@@ -15,7 +15,7 @@ layui.config({
var
layContent
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewin003
"
,
params
:{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
if
(
!
isNull
(
json
.
bean
)){
if
(
!
isNull
(
json
.
bean
))
{
rowId
=
json
.
bean
.
id
;
// 初始化上传
$
(
"
#sysPic
"
).
upload
(
systemCommonUtil
.
uploadCommon003Config
(
'
sysPic
'
,
8
,
json
.
bean
.
sysPic
,
1
));
...
...
@@ -23,34 +23,6 @@ layui.config({
$
(
"
#sysName
"
).
val
(
json
.
bean
.
sysName
);
$
(
"
#sysUrl
"
).
val
(
json
.
bean
.
sysUrl
);
$
(
"
#content
"
).
val
(
json
.
bean
.
sysDesc
);
//加载一级分类
showGrid
({
id
:
"
sysFirstType
"
,
url
:
reqBasePath
+
"
sysevewintype012
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
j
){
$
(
"
#sysFirstType
"
).
val
(
json
.
bean
.
sysFirstType
);
form
.
render
(
'
select
'
);
showGrid
({
id
:
"
sysSecondType
"
,
url
:
reqBasePath
+
"
sysevewintype013
"
,
params
:
{
rowId
:
json
.
bean
.
sysFirstType
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
j
){
$
(
"
#sysSecondType
"
).
val
(
json
.
bean
.
sysSecondType
);
form
.
render
(
'
select
'
);
}
});
}
});
}
layedit
.
set
({
...
...
@@ -112,43 +84,19 @@ layui.config({
matchingLanguage
();
form
.
render
();
form
.
on
(
'
select(sysFirstType)
'
,
function
(
data
){
var
firstSelTypeId
;
if
(
isNull
(
data
.
value
)){
firstSelTypeId
=
'
111
'
;
}
else
{
firstSelTypeId
=
data
.
value
;
}
showGrid
({
id
:
"
sysSecondType
"
,
url
:
reqBasePath
+
"
sysevewintype013
"
,
params
:
{
rowId
:
firstSelTypeId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
});
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
sysName
:
$
(
"
#sysName
"
).
val
(),
sysUrl
:
$
(
"
#sysUrl
"
).
val
(),
sysDesc
:
encodeURIComponent
(
layedit
.
getContent
(
layContent
)),
rowId
:
parent
.
rowId
,
sysFirstType
:
data
.
field
.
sysFirstType
,
sysSecondType
:
data
.
field
.
sysSecondType
,
sysPic
:
$
(
"
#sysPic
"
).
find
(
"
input[type='hidden'][name='upload']
"
).
attr
(
"
oldurl
"
)
};
params
.
sysPic
=
$
(
"
#sysPic
"
).
find
(
"
input[type='hidden'][name='upload']
"
).
attr
(
"
oldurl
"
);
if
(
isNull
(
params
.
sysPic
)){
winui
.
window
.
msg
(
'
请上传系统图片
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
params
.
sysPic
))
{
winui
.
window
.
msg
(
'
请上传系统图片
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewin004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
userauth/src/main/resources/template/js/syswintype/syswintypeadd.js
已删除
100644 → 0
浏览文件 @
ff07de20
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
//加载一级分类
showGrid
({
id
:
"
parentId
"
,
url
:
reqBasePath
+
"
sysevewintype002
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
});
//分类级别变化事件
form
.
on
(
'
radio(typeLevel)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//一级分类
$
(
"
#parentIdDiv
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//二级分类
$
(
"
#parentIdDiv
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
typeName
:
$
(
"
#typeName
"
).
val
(),
};
if
(
data
.
field
.
typeLevel
==
'
1
'
){
//一级分类
params
.
parentId
=
'
0
'
;
}
else
if
(
data
.
field
.
typeLevel
==
'
2
'
){
//二级分类
if
(
isNull
(
$
(
"
#parentId
"
).
val
())){
winui
.
window
.
msg
(
'
请选择一级分类
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
params
.
parentId
=
$
(
"
#parentId
"
).
val
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype003
"
,
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
userauth/src/main/resources/template/js/syswintype/syswintypeedit.js
已删除
100644 → 0
浏览文件 @
ff07de20
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype004
"
,
params
:{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
(
"
#typeName
"
).
val
(
json
.
bean
.
typeName
);
if
(
json
.
bean
.
parentId
===
'
0
'
){
$
(
"
input:radio[name=typeLevel][value=1]
"
).
attr
(
"
checked
"
,
true
);
$
(
"
#parentIdDiv
"
).
hide
();
}
else
{
$
(
"
input:radio[name=typeLevel][value=2]
"
).
attr
(
"
checked
"
,
true
);
$
(
"
#parentIdDiv
"
).
show
();
}
//加载一级分类
showGrid
({
id
:
"
parentId
"
,
url
:
reqBasePath
+
"
sysevewintype006
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
j
){
if
(
json
.
bean
.
parentId
!=
'
0
'
){
$
(
"
#parentId
"
).
val
(
json
.
bean
.
parentId
);
}
form
.
render
(
'
select
'
);
}
});
matchingLanguage
();
form
.
render
();
//分类级别变化事件
form
.
on
(
'
radio(typeLevel)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
'
1
'
){
//一级分类
$
(
"
#parentIdDiv
"
).
hide
();
}
else
if
(
val
==
'
2
'
){
//二级分类
$
(
"
#parentIdDiv
"
).
show
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
}
});
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
typeName
:
$
(
"
#typeName
"
).
val
(),
rowId
:
parent
.
rowId
,
};
if
(
data
.
field
.
typeLevel
==
'
1
'
){
//一级分类
params
.
parentId
=
'
0
'
;
}
else
if
(
data
.
field
.
typeLevel
==
'
2
'
){
//二级分类
if
(
isNull
(
$
(
"
#parentId
"
).
val
())){
winui
.
window
.
msg
(
'
请选择一级分类
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
params
.
parentId
=
$
(
"
#parentId
"
).
val
();
}
else
{
winui
.
window
.
msg
(
'
状态值错误
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype005
"
,
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
userauth/src/main/resources/template/js/syswintype/syswintypelist.js
已删除
100644 → 0
浏览文件 @
ff07de20
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
(
'
1552962225700
'
);
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
reqBasePath
+
'
sysevewintype001
'
,
where
:
{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()},
cols
:
[[
{
field
:
'
name
'
,
width
:
300
,
title
:
'
分类名称
'
},
{
field
:
'
stateName
'
,
width
:
100
,
title
:
'
状态
'
},
{
field
:
'
winNum
'
,
width
:
100
,
title
:
'
项目数量
'
},
{
field
:
'
orderBy
'
,
width
:
100
,
title
:
'
排序
'
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
240
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(){
matchingLanguage
();
}
},
{
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
===
'
del
'
)
{
//删除
del
(
data
,
obj
);
}
else
if
(
layEvent
===
'
upMove
'
)
{
//上移
upMove
(
data
);
}
else
if
(
layEvent
===
'
downMove
'
)
{
//下移
downMove
(
data
);
}
else
if
(
layEvent
===
'
upState
'
)
{
//上线
upState
(
data
,
obj
);
}
else
if
(
layEvent
===
'
downState
'
)
{
//下线
downState
(
data
,
obj
);
}
});
//编辑
function
edit
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/syswintype/syswintypeedit.html
"
,
title
:
"
编辑分类
"
,
pageId
:
"
sysevewintypeedit
"
,
area
:
[
'
500px
'
,
'
350px
'
],
callBack
:
function
(
refreshCode
){
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//删除
function
del
(
data
,
obj
){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
){
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype007
"
,
params
:{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//上移
function
upMove
(
data
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype008
"
,
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
:
reqBasePath
+
"
sysevewintype009
"
,
params
:{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
//上线
function
upState
(
data
,
obj
){
var
msg
=
obj
?
'
确认上线该分类【
'
+
obj
.
data
.
name
+
'
】吗?
'
:
'
确认上线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
系统分类上线操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype010
"
,
params
:{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
上线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//下线
function
downState
(
data
,
obj
){
var
msg
=
obj
?
'
确认下线该分类【
'
+
obj
.
data
.
name
+
'
】吗?
'
:
'
确认下线选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
系统分类下线操作
'
},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevewintype011
"
,
params
:{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
下线成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
//添加分类
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/syswintype/syswintypeadd.html
"
,
title
:
"
新增分类
"
,
pageId
:
"
sysevewintypeadd
"
,
area
:
[
'
500px
'
,
'
350px
'
],
callBack
:
function
(
refreshCode
){
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
(){
tableTree
.
reload
(
"
messageTable
"
,
{
where
:{
typeName
:
$
(
"
#typeName
"
).
val
(),
state
:
$
(
"
#state
"
).
val
()}});
}
exports
(
'
syswintypelist
'
,
{});
});
userauth/src/main/resources/template/tpl/appstore/firsttypeTemplate.tpl
已删除
100644 → 0
浏览文件 @
ff07de20
<li
class=
"active"
><a
href=
"javascript:;"
rowid=
"111"
>
全部
</a></li>
{
{
#
each
rows
}
}
<li><a
href=
"javascript:;"
rowid=
"{
{
id
}
}"
>
{
{
name
}
}
</a></li>
{
{/
each
}
}
\ No newline at end of file
userauth/src/main/resources/template/tpl/appstore/secondtypeTemplate.tpl
已删除
100644 → 0
浏览文件 @
ff07de20
<li
class=
"active"
><a
href=
"javascript:;"
rowid=
"111"
>
全部
</a></li>
{
{
#
each
rows
}
}
<li>
<input
type=
"checkbox"
name=
""
title=
"{
{
name
}
}"
lay-skin=
"primary"
value=
"{
{
id
}
}"
lay-filter=
"checkboxProperty"
checked
>
</li>
{
{/
each
}
}
\ No newline at end of file
userauth/src/main/resources/template/tpl/appstore/storeindex.html
已删除
100644 → 0
浏览文件 @
ff07de20
<!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;"
>
<div
class=
"layui-col-xs8 layui-col-xs-offset2"
style=
"height: 150px;"
>
<div
class=
"store-cat-item"
>
<span><i
class=
"fa layui-icon layui-icon-app fa-fw"
></i>
系统分类:
</span>
<ul
id=
"sysFirstType"
>
</ul>
</div>
<div
class=
"store-cat-item colorFilt"
>
<span><i
class=
"fa fa-list-ul fa-fw"
></i>
系统类型:
</span>
<form
class=
"layui-form"
action=
""
autocomplete=
"off"
>
<ul
id=
"sysSecondType"
>
<li
class=
"active"
><a
href=
"javascript:;"
rowid=
"111"
>
全部
</a></li>
</ul>
</form>
</div>
</div>
<div
class=
"layui-col-xs8 layui-col-xs-offset2"
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/appstore/
'
}).
use
(
'
storeindex
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/appstore/storeindexTemplate.tpl
已删除
100644 → 0
浏览文件 @
ff07de20
{{
#
each
rows
}}
<div
class=
"app-store-item"
>
<div
class=
"app-store-item-content"
>
<div
class=
"layui-col-xs12 app-store-item-top sysDetails"
rowid=
"{
{
id
}
}"
>
<img
class=
"app-store-pic"
src=
"{
{
#
compare1
sysPic
}
}{
{/
compare1
}
}"
>
</div>
</div>
<div
class=
"layui-col-xs12 app-store-item-bottom"
>
</div>
<div
class=
"layui-col-xs12 app-store-item-bottom-card"
>
<button
class=
"layui-btn layui-btn-normal layui-btn-sm sysExperience"
rowid=
"{
{
id
}
}"
sysurl=
"{
{
sysUrl
}
}"
>
试用
</button>
{
{
#
compare2
powerId
id
}
}{
{/
compare2
}
}
</div>
<div
class=
"layui-col-xs12 app-store-item-center"
>
<p>
{
{
sysName
}
}
</p>
</div>
</div>
{
{/
each
}
}
\ No newline at end of file
userauth/src/main/resources/template/tpl/syswintype/syswintypeadd.html
已删除
100644 → 0
浏览文件 @
ff07de20
<!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=
"typeLevel"
value=
"1"
title=
"一级分类"
lay-filter=
"typeLevel"
checked
/>
<input
type=
"radio"
name=
"typeLevel"
value=
"2"
title=
"二级分类"
lay-filter=
"typeLevel"
/>
</div>
</div>
<div
class=
"layui-form-item"
id=
"parentIdDiv"
style=
"display: none;"
>
<label
class=
"layui-form-label"
>
一级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"parentId"
name=
"parentId"
lay-search=
""
>
</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/syswintype/
'
}).
use
(
'
syswintypeadd
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/syswintype/syswintypeedit.html
已删除
100644 → 0
浏览文件 @
ff07de20
<!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=
"typeLevel"
value=
"1"
title=
"一级分类"
lay-filter=
"typeLevel"
/>
<input
type=
"radio"
name=
"typeLevel"
value=
"2"
title=
"二级分类"
lay-filter=
"typeLevel"
/>
</div>
</div>
<div
class=
"layui-form-item"
id=
"parentIdDiv"
style=
"display: none;"
>
<label
class=
"layui-form-label"
>
一级分类
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"parentId"
name=
"parentId"
lay-search=
""
>
</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=
"formEditBean"
><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/syswintype/
'
}).
use
(
'
syswintypeedit
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/syswintype/syswintypelist.html
已删除
100644 → 0
浏览文件 @
ff07de20
<!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=
"typeName"
name=
"typeName"
placeholder=
"请输入分类名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"state"
name=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
新建
</option>
<option
value=
"2"
>
正常
</option>
<option
value=
"3"
>
下线
</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"
lay-submit
lay-filter=
"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=
"1552962225700"
><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
(
auth
(
'
1552962243686
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
winNum
==
0
&&
d
.
state
!=
2
&&
auth
(
'
1552962266748
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552962279682
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
upMove
"
>
上移
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552962291002
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
downMove
"
>
下移
<
/a
>
{{
#
}
}}
{{
#
if
((
d
.
state
==
1
||
d
.
state
==
3
)
&&
auth
(
'
1552962305899
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
upState
"
>
上线
<
/a
>
{{
#
}
else
if
(
d
.
state
==
2
&&
auth
(
'
1552962317041
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
downState
"
>
下线
<
/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/syswintype/
'
}).
use
(
'
syswintypelist
'
);
</script>
</body>
</html>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录