Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
a7eda96d
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看板
提交
a7eda96d
编写于
2月 12, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
菜单新增页面类型属性
上级
160d97b9
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
194 addition
and
64 deletion
+194
-64
base-server/src/main/resources/template/js/operate/writeOperate.js
...er/src/main/resources/template/js/operate/writeOperate.js
+6
-19
common/src/main/resources/template/js/dsFormPage/pageShow.js
common/src/main/resources/template/js/dsFormPage/pageShow.js
+21
-0
common/src/main/resources/template/tpl/dsFormPage/pageShow.html
.../src/main/resources/template/tpl/dsFormPage/pageShow.html
+17
-0
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuAdd.js
...rc/main/resources/template/js/sysEveMenu/sysEveMenuAdd.js
+19
-1
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuDetails.js
...ain/resources/template/js/sysEveMenu/sysEveMenuDetails.js
+22
-0
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuEdit.js
...c/main/resources/template/js/sysEveMenu/sysEveMenuEdit.js
+30
-1
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuList.js
...c/main/resources/template/js/sysEveMenu/sysEveMenuList.js
+2
-3
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuAdd.html
...main/resources/template/tpl/sysEveMenu/sysEveMenuAdd.html
+7
-5
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuDetails.html
.../resources/template/tpl/sysEveMenu/sysEveMenuDetails.html
+10
-19
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuEdit.html
...ain/resources/template/tpl/sysEveMenu/sysEveMenuEdit.html
+7
-5
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuList.html
...ain/resources/template/tpl/sysEveMenu/sysEveMenuList.html
+1
-1
web/src/main/resources/template/assets/lib/layui/custom.js
web/src/main/resources/template/assets/lib/layui/custom.js
+2
-0
web/src/main/resources/template/assets/lib/layui/customer/common/systemCommonUtil.js
...late/assets/lib/layui/customer/common/systemCommonUtil.js
+24
-0
web/src/main/resources/template/js/index/index.js
web/src/main/resources/template/js/index/index.js
+21
-9
web/src/main/resources/template/js/traditionpage/index.js
web/src/main/resources/template/js/traditionpage/index.js
+5
-1
未找到文件。
base-server/src/main/resources/template/js/operate/writeOperate.js
浏览文件 @
a7eda96d
...
@@ -69,19 +69,6 @@ layui.config({
...
@@ -69,19 +69,6 @@ layui.config({
</div>
</div>
</div>`
,
</div>`
,
'
customPageUrl
'
:
`<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="pageUrl" name="pageUrl" placeholder="请输入页面地址" win-verify="required" class="layui-input" maxlength="200"/>
</div>
</div>`
,
'
dsFormPage
'
:
`<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="pageUrl" name="pageUrl" placeholder="请选择表单布局" win-verify="required" class="layui-input" readonly="readonly"/>
<i class="fa fa-plus-circle input-icon chooseBtn" style="top: 12px;"></i>
</div>
</div>`
,
};
};
var
attrHtml
=
''
;
var
attrHtml
=
''
;
...
@@ -124,15 +111,15 @@ layui.config({
...
@@ -124,15 +111,15 @@ layui.config({
}
else
{
}
else
{
var
operateOpenPage
=
json
.
bean
.
operateOpenPage
;
var
operateOpenPage
=
json
.
bean
.
operateOpenPage
;
$
(
'
#eventTypeChangeBox
'
).
html
(
_html
[
'
operateOpenPage
'
]);
$
(
'
#eventTypeChangeBox
'
).
html
(
_html
[
'
operateOpenPage
'
]);
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
customPageUrl
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
customPageUrl
'
]);
$
(
"
#openPageName
"
).
val
(
operateOpenPage
.
name
);
$
(
"
#openPageName
"
).
val
(
operateOpenPage
.
name
);
var
type
=
operateOpenPage
.
type
?
"
1
"
:
"
2
"
;
var
type
=
operateOpenPage
.
type
?
"
1
"
:
"
2
"
;
$
(
"
input:radio[name=type][value=
"
+
type
+
"
]
"
).
attr
(
"
checked
"
,
true
);
$
(
"
input:radio[name=type][value=
"
+
type
+
"
]
"
).
attr
(
"
checked
"
,
true
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
customPageUrl
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
customPageUrl
'
]);
$
(
"
#pageUrl
"
).
val
(
operateOpenPage
.
pageUrl
);
$
(
"
#pageUrl
"
).
val
(
operateOpenPage
.
pageUrl
);
}
else
{
}
else
{
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
dsFormPage
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
dsFormPage
'
]);
dsFormUtil
.
dsFormChooseMation
=
operateOpenPage
.
dsFormPage
;
dsFormUtil
.
dsFormChooseMation
=
operateOpenPage
.
dsFormPage
;
var
serviceName
=
operateOpenPage
.
dsFormPage
.
serviceBeanCustom
.
serviceBean
.
name
;
var
serviceName
=
operateOpenPage
.
dsFormPage
.
serviceBeanCustom
.
serviceBean
.
name
;
$
(
"
#pageUrl
"
).
val
(
serviceName
+
'
【
'
+
operateOpenPage
.
dsFormPage
.
name
+
'
】
'
);
$
(
"
#pageUrl
"
).
val
(
serviceName
+
'
【
'
+
operateOpenPage
.
dsFormPage
.
name
+
'
】
'
);
...
@@ -182,7 +169,7 @@ layui.config({
...
@@ -182,7 +169,7 @@ layui.config({
}
else
{
}
else
{
// 新开页面
// 新开页面
$
(
'
#eventTypeChangeBox
'
).
html
(
_html
[
'
operateOpenPage
'
]);
$
(
'
#eventTypeChangeBox
'
).
html
(
_html
[
'
operateOpenPage
'
]);
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
customPageUrl
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
customPageUrl
'
]);
loadParamsTable
(
'
pageParams
'
);
loadParamsTable
(
'
pageParams
'
);
}
}
form
.
render
();
form
.
render
();
...
@@ -190,9 +177,9 @@ layui.config({
...
@@ -190,9 +177,9 @@ layui.config({
form
.
on
(
'
radio(type)
'
,
function
(
data
)
{
form
.
on
(
'
radio(type)
'
,
function
(
data
)
{
if
(
data
.
value
==
1
)
{
if
(
data
.
value
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
customPageUrl
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
customPageUrl
'
]);
}
else
{
}
else
{
$
(
'
#typeChangeBox
'
).
html
(
_h
tml
[
'
dsFormPage
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonH
tml
[
'
dsFormPage
'
]);
}
}
});
});
...
...
common/src/main/resources/template/js/dsFormPage/pageShow.js
0 → 100644
浏览文件 @
a7eda96d
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
;
var
pageId
=
GetUrlParam
(
"
pageId
"
);
if
(
isNull
(
pageId
))
{
winui
.
window
.
msg
(
"
请传入布局id
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
// 获取布局信息
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dsformpage006
"
,
params
:
{
id
:
pageId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
console
.
log
(
json
)
}});
exports
(
'
pageShow
'
,
{});
});
common/src/main/resources/template/tpl/dsFormPage/pageShow.html
0 → 100644
浏览文件 @
a7eda96d
<!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>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/dsFormPage/
'
}).
use
(
'
pageShow
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuAdd.js
浏览文件 @
a7eda96d
...
@@ -50,15 +50,26 @@ layui.config({
...
@@ -50,15 +50,26 @@ layui.config({
}
}
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
});
});
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
form
.
on
(
'
radio(pageType)
'
,
function
(
data
)
{
if
(
data
.
value
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
}
else
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
dsFormPage
'
]);
}
});
form
.
on
(
'
submit(formAddMenu)
'
,
function
(
data
)
{
form
.
on
(
'
submit(formAddMenu)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
level
=
$
(
"
input[name='level']:checked
"
).
val
();
var
level
=
$
(
"
input[name='level']:checked
"
).
val
();
var
pageType
=
$
(
"
input[name='pageType']:checked
"
).
val
();
var
params
=
{
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
name
:
$
(
"
#name
"
).
val
(),
sysWinId
:
$
(
"
#sysWinId
"
).
val
(),
sysWinId
:
$
(
"
#sysWinId
"
).
val
(),
desktopId
:
$
(
"
#desktop
"
).
val
(),
desktopId
:
$
(
"
#desktop
"
).
val
(),
pageUrl
:
$
(
"
#pageUrl
"
).
val
(),
pageType
:
pageType
==
1
?
true
:
false
,
pageUrl
:
pageType
==
1
?
$
(
"
#pageUrl
"
).
val
()
:
dsFormUtil
.
dsFormChooseMation
.
id
,
type
:
$
(
"
input[name='type']:checked
"
).
val
(),
type
:
$
(
"
input[name='type']:checked
"
).
val
(),
level
:
level
,
level
:
level
,
parentId
:
level
==
0
?
"
0
"
:
$
(
"
#menuParent
"
).
val
(),
parentId
:
level
==
0
?
"
0
"
:
$
(
"
#menuParent
"
).
val
(),
...
@@ -90,6 +101,13 @@ layui.config({
...
@@ -90,6 +101,13 @@ layui.config({
$
(
"
#lockParentSel
"
).
append
(
str
);
$
(
"
#lockParentSel
"
).
append
(
str
);
},
async
:
false
});
},
async
:
false
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseBtn
"
,
function
()
{
dsFormUtil
.
openDsFormPageChoosePage
(
function
(
dsFormChoose
)
{
var
serviceName
=
dsFormChoose
.
serviceBeanCustom
.
serviceBean
.
name
;
$
(
"
#pageUrl
"
).
val
(
serviceName
+
'
【
'
+
dsFormChoose
.
name
+
'
】
'
);
});
});
// 取消
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuDetails.js
浏览文件 @
a7eda96d
...
@@ -17,6 +17,27 @@ layui.config({
...
@@ -17,6 +17,27 @@ layui.config({
pagination
:
false
,
pagination
:
false
,
method
:
'
GET
'
,
method
:
'
GET
'
,
template
:
$
(
"
#beanTemplate
"
).
html
(),
template
:
$
(
"
#beanTemplate
"
).
html
(),
ajaxSendLoadBefore
:
function
(
hdb
,
json
)
{
if
(
json
.
bean
.
pageType
)
{
json
.
bean
.
pageType
=
'
自定义页面
'
;
json
.
bean
.
pageName
=
json
.
bean
.
pageUrl
;
}
else
{
json
.
bean
.
pageType
=
'
表单布局
'
;
dsFormUtil
.
dsFormChooseMation
=
json
.
bean
.
dsFormPage
;
var
serviceName
=
json
.
bean
.
dsFormPage
.
serviceBeanCustom
.
serviceBean
.
name
;
json
.
bean
.
pageName
=
serviceName
+
'
【
'
+
json
.
bean
.
dsFormPage
.
name
+
'
】
'
;
}
if
(
json
.
bean
.
sysType
==
1
)
{
json
.
bean
.
sysTypeName
=
'
是
'
;
}
else
{
json
.
bean
.
sysTypeName
=
'
否
'
;
}
if
(
json
.
bean
.
isShare
==
0
)
{
json
.
bean
.
isShareName
=
'
否
'
;
}
else
{
json
.
bean
.
isShareName
=
'
是
'
;
}
},
ajaxSendAfter
:
function
(
json
)
{
ajaxSendAfter
:
function
(
json
)
{
$
(
"
#icon
"
).
html
(
systemCommonUtil
.
initIconShow
(
json
.
bean
));
$
(
"
#icon
"
).
html
(
systemCommonUtil
.
initIconShow
(
json
.
bean
));
...
@@ -25,6 +46,7 @@ layui.config({
...
@@ -25,6 +46,7 @@ layui.config({
}
else
{
}
else
{
$
(
"
#level
"
).
html
(
"
子菜单
"
);
$
(
"
#level
"
).
html
(
"
子菜单
"
);
}
}
matchingLanguage
();
matchingLanguage
();
form
.
render
();
form
.
render
();
}
}
...
...
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuEdit.js
浏览文件 @
a7eda96d
...
@@ -58,6 +58,18 @@ layui.config({
...
@@ -58,6 +58,18 @@ layui.config({
$
(
"
input:radio[name='sysType'][value='
"
+
json
.
bean
.
sysType
+
"
']
"
).
attr
(
"
checked
"
,
true
);
$
(
"
input:radio[name='sysType'][value='
"
+
json
.
bean
.
sysType
+
"
']
"
).
attr
(
"
checked
"
,
true
);
$
(
"
input:radio[name='isShare'][value='
"
+
json
.
bean
.
isShare
+
"
']
"
).
attr
(
"
checked
"
,
true
);
$
(
"
input:radio[name='isShare'][value='
"
+
json
.
bean
.
isShare
+
"
']
"
).
attr
(
"
checked
"
,
true
);
var
type
=
json
.
bean
.
pageType
?
"
1
"
:
"
2
"
;
$
(
"
input:radio[name=pageType][value=
"
+
type
+
"
]
"
).
attr
(
"
checked
"
,
true
);
if
(
type
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
$
(
"
#pageUrl
"
).
val
(
json
.
bean
.
pageUrl
);
}
else
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
dsFormPage
'
]);
dsFormUtil
.
dsFormChooseMation
=
json
.
bean
.
dsFormPage
;
var
serviceName
=
json
.
bean
.
dsFormPage
.
serviceBeanCustom
.
serviceBean
.
name
;
$
(
"
#pageUrl
"
).
val
(
serviceName
+
'
【
'
+
json
.
bean
.
dsFormPage
.
name
+
'
】
'
);
}
matchingLanguage
();
matchingLanguage
();
form
.
render
();
form
.
render
();
...
@@ -73,15 +85,25 @@ layui.config({
...
@@ -73,15 +85,25 @@ layui.config({
}
}
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
});
});
form
.
on
(
'
radio(pageType)
'
,
function
(
data
)
{
if
(
data
.
value
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
}
else
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
dsFormPage
'
]);
}
});
form
.
on
(
'
submit(formEditMenu)
'
,
function
(
data
)
{
form
.
on
(
'
submit(formEditMenu)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
level
=
$
(
"
input[name='level']:checked
"
).
val
();
var
level
=
$
(
"
input[name='level']:checked
"
).
val
();
var
pageType
=
$
(
"
input[name='pageType']:checked
"
).
val
();
var
params
=
{
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
name
:
$
(
"
#name
"
).
val
(),
sysWinId
:
$
(
"
#sysWinId
"
).
val
(),
sysWinId
:
$
(
"
#sysWinId
"
).
val
(),
desktopId
:
$
(
"
#desktop
"
).
val
(),
desktopId
:
$
(
"
#desktop
"
).
val
(),
pageUrl
:
$
(
"
#pageUrl
"
).
val
(),
pageType
:
pageType
==
1
?
true
:
false
,
pageUrl
:
pageType
==
1
?
$
(
"
#pageUrl
"
).
val
()
:
dsFormUtil
.
dsFormChooseMation
.
id
,
type
:
$
(
"
input[name='type']:checked
"
).
val
(),
type
:
$
(
"
input[name='type']:checked
"
).
val
(),
level
:
level
,
level
:
level
,
parentId
:
level
==
0
?
"
0
"
:
$
(
"
#menuParent
"
).
val
(),
parentId
:
level
==
0
?
"
0
"
:
$
(
"
#menuParent
"
).
val
(),
...
@@ -117,6 +139,13 @@ layui.config({
...
@@ -117,6 +139,13 @@ layui.config({
$
(
"
#lockParentSel
"
).
append
(
str
);
$
(
"
#lockParentSel
"
).
append
(
str
);
},
async
:
false
});
},
async
:
false
});
}
}
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseBtn
"
,
function
()
{
dsFormUtil
.
openDsFormPageChoosePage
(
function
(
dsFormChoose
)
{
var
serviceName
=
dsFormChoose
.
serviceBeanCustom
.
serviceBean
.
name
;
$
(
"
#pageUrl
"
).
val
(
serviceName
+
'
【
'
+
dsFormChoose
.
name
+
'
】
'
);
});
});
// 取消
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
...
...
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuList.js
浏览文件 @
a7eda96d
...
@@ -47,7 +47,6 @@ layui.config({
...
@@ -47,7 +47,6 @@ layui.config({
{
field
:
'
isShare
'
,
title
:
'
共享
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
{
field
:
'
isShare
'
,
title
:
'
共享
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
return
d
.
isShare
==
0
?
'
否
'
:
'
是
'
;
return
d
.
isShare
==
0
?
'
否
'
:
'
是
'
;
}},
}},
{
field
:
'
parentName
'
,
title
:
'
父菜单
'
,
width
:
100
},
{
field
:
'
pageUrl
'
,
title
:
'
菜单链接
'
,
width
:
160
},
{
field
:
'
pageUrl
'
,
title
:
'
菜单链接
'
,
width
:
160
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
...
@@ -148,7 +147,7 @@ layui.config({
...
@@ -148,7 +147,7 @@ layui.config({
// 上移
// 上移
function
topOne
(
data
)
{
function
topOne
(
data
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys022
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys022
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveUpOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveUpOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -156,7 +155,7 @@ layui.config({
...
@@ -156,7 +155,7 @@ layui.config({
// 下移
// 下移
function
lowerOne
(
data
)
{
function
lowerOne
(
data
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys023
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys023
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.moveDownOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
...
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuAdd.html
浏览文件 @
a7eda96d
...
@@ -18,13 +18,15 @@
...
@@ -18,13 +18,15 @@
<div
class=
"layui-form-item layui-col-xs12"
id=
"iconMation"
>
<div
class=
"layui-form-item layui-col-xs12"
id=
"iconMation"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12
"
>
<div
class=
"layui-form-item layui-col-xs6
"
>
<label
class=
"layui-form-label"
>
菜单地址
<i
class=
"red"
>
*
</i></label>
<label
class=
"layui-form-label"
>
页面类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block
winui-radio
"
>
<input
type=
"
text"
id=
"pageUrl"
name=
"pageUrl"
win-verify=
"required"
placeholder=
"请输入菜单地址"
class=
"layui-input"
/>
<input
type=
"
radio"
name=
"pageType"
value=
"1"
title=
"自定义页面"
lay-filter=
"pageType"
checked
/>
<
div
class=
"layui-form-mid layui-word-aux"
>
如果是一级菜单,格式为:--
<br>
如果是子菜单,格式为:../../tpl/model/modellist.html
</div
>
<
input
type=
"radio"
name=
"pageType"
value=
"2"
title=
"表单布局"
lay-filter=
"pageType"
/
>
</div>
</div>
</div>
</div>
<div
id=
"typeChangeBox"
>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
所属桌面
</label>
<label
class=
"layui-form-label"
>
所属桌面
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
...
...
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuDetails.html
浏览文件 @
a7eda96d
...
@@ -29,22 +29,28 @@
...
@@ -29,22 +29,28 @@
<
div
class
=
"
layui-input-block
"
id
=
"
icon
"
style
=
"
font-size: 60px; display: flex;
"
>
<
div
class
=
"
layui-input-block
"
id
=
"
icon
"
style
=
"
font-size: 60px; display: flex;
"
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
页面类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
pageType
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
菜单地址
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
菜单地址
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
page
Url
}}
{{
page
Name
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属桌面
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
所属桌面
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
desktopN
ame
}}
{{
sysDesktop
.
n
ame
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属服务
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
所属服务
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
sysWin
N
ame
}}
{{
sysWin
.
n
ame
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
...
@@ -56,7 +62,7 @@
...
@@ -56,7 +62,7 @@
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
父菜单
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
父菜单
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
menuParentN
ame
}}
{{
parentMenu
.
n
ame
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
...
@@ -77,21 +83,6 @@
...
@@ -77,21 +83,6 @@
{{
isShareName
}}
{{
isShareName
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
使用信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
角色使用量
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
roleNum
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
权限点数量
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
authpointNum
}}
<
/div
>
<
/div
>
{{
/
bean
}}
{{
/
bean
}}
</script>
</script>
...
...
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuEdit.html
浏览文件 @
a7eda96d
...
@@ -24,13 +24,15 @@
...
@@ -24,13 +24,15 @@
<
div
class
=
"
layui-form-item layui-col-xs12
"
id
=
"
iconMation
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
id
=
"
iconMation
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs
12
"
>
<
div
class
=
"
layui-form-item layui-col-xs
6
"
>
<
label
class
=
"
layui-form-label
"
>
菜单地址
<
i
class
=
"
red
"
>*<
/i></
label
>
<
label
class
=
"
layui-form-label
"
>
页面类型
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
div
class
=
"
layui-input-block
winui-radio
"
>
<
input
type
=
"
text
"
id
=
"
pageUrl
"
name
=
"
pageUrl
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入菜单地址
"
class
=
"
layui-input
"
value
=
"
{{pageUrl}}
"
/>
<
input
type
=
"
radio
"
name
=
"
pageType
"
value
=
"
1
"
title
=
"
自定义页面
"
lay
-
filter
=
"
pageType
"
checked
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
如果是一级菜单
,
格式为
:
--<
br
>
如果是子菜单
,
格式为
:
..
/
..
/
tpl
/
model
/
modellist
.
html
<
/div
>
<
input
type
=
"
radio
"
name
=
"
pageType
"
value
=
"
2
"
title
=
"
表单布局
"
lay
-
filter
=
"
pageType
"
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
id
=
"
typeChangeBox
"
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属桌面
<
/label
>
<
label
class
=
"
layui-form-label
"
>
所属桌面
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
div
class
=
"
layui-input-block
"
>
...
...
userauth/src/main/resources/template/tpl/sysEveMenu/sysEveMenuList.html
浏览文件 @
a7eda96d
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
{{
#
if
(
auth
(
'
1552957538820
'
)){
}}
{{
#
if
(
auth
(
'
1552957538820
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
lower
"
>
下移
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
lower
"
>
下移
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
(
d
.
roleNum
==
0
||
isNull
(
d
.
roleNum
))
&&
auth
(
'
1552957567975
'
)){
}}
{{
#
if
(
auth
(
'
1552957567975
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
auth
(
'
1552957843505
'
)){
}}
{{
#
if
(
auth
(
'
1552957843505
'
)){
}}
...
...
web/src/main/resources/template/assets/lib/layui/custom.js
浏览文件 @
a7eda96d
...
@@ -56,6 +56,8 @@ if(isNull(localStorage.getItem("sysMainMation"))){
...
@@ -56,6 +56,8 @@ if(isNull(localStorage.getItem("sysMainMation"))){
initBaseParams
();
initBaseParams
();
}
}
var
dsFormPageUrl
=
"
../../tpl/dsFormPage/pageShow.html?pageId=
"
;
var
skyeyeVersion
;
var
skyeyeVersion
;
// 文件路径
// 文件路径
var
fileBasePath
;
var
fileBasePath
;
...
...
web/src/main/resources/template/assets/lib/layui/customer/common/systemCommonUtil.js
浏览文件 @
a7eda96d
...
@@ -321,6 +321,10 @@ var systemCommonUtil = {
...
@@ -321,6 +321,10 @@ var systemCommonUtil = {
t
.
next
().
css
(
"
cursor
"
,
"
not-allowed
"
);
t
.
next
().
css
(
"
cursor
"
,
"
not-allowed
"
);
},
},
checkUrl
:
function
(
url
)
{
return
(
url
.
startsWith
(
'
../
'
)
||
url
.
startsWith
(
'
--
'
));
},
/**
/**
* 对页面url添加版本控制
* 对页面url添加版本控制
*
*
...
@@ -1254,4 +1258,24 @@ var desktopMenuUtil = {
...
@@ -1254,4 +1258,24 @@ var desktopMenuUtil = {
return
''
;
return
''
;
}
}
};
// 公共的一些html脚本
var
commonHtml
=
{
'
customPageUrl
'
:
`<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="pageUrl" name="pageUrl" placeholder="请输入页面地址" win-verify="required" class="layui-input" maxlength="200"/>
<div class="layui-form-mid layui-word-aux">如果不想跳转,可填写:--<br>如果想跳转,格式为:../../tpl/model/modellist.html</div>
</div>
</div>`
,
'
dsFormPage
'
:
`<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="pageUrl" name="pageUrl" placeholder="请选择表单布局" win-verify="required" class="layui-input" readonly="readonly"/>
<i class="fa fa-plus-circle input-icon chooseBtn" style="top: 12px;"></i>
</div>
</div>`
,
};
};
\ No newline at end of file
web/src/main/resources/template/js/index/index.js
浏览文件 @
a7eda96d
...
@@ -952,15 +952,27 @@ layui.config({
...
@@ -952,15 +952,27 @@ layui.config({
var
id
=
$this
.
attr
(
'
win-id
'
);
var
id
=
$this
.
attr
(
'
win-id
'
);
var
type
=
parseInt
(
$this
.
attr
(
'
win-opentype
'
));
var
type
=
parseInt
(
$this
.
attr
(
'
win-opentype
'
));
var
maxOpen
=
parseInt
(
$this
.
attr
(
'
win-maxopen
'
))
||
-
1
;
var
maxOpen
=
parseInt
(
$this
.
attr
(
'
win-maxopen
'
))
||
-
1
;
if
(
url
==
'
theme
'
)
{
if
(
!
url
||
!
title
||
!
id
)
{
winui
.
window
.
openTheme
(
loadBottomMenuIcon
);
winui
.
window
.
msg
(
'
菜单配置错误(菜单链接、标题、id缺一不可)
'
);
return
;
return
;
}
}
if
(
!
url
||
!
title
||
!
id
)
{
// 自定义页面
winui
.
window
.
msg
(
'
菜单配置错误(菜单链接、标题、id缺一不可)
'
);
if
(
url
==
'
theme
'
)
{
return
;
winui
.
window
.
openTheme
(
loadBottomMenuIcon
);
}
return
;
url
=
indexMenu
.
getUrlPath
(
url
,
menuSysWinUrl
);
}
if
(
systemCommonUtil
.
checkUrl
(
url
))
{
// 自定义页面
if
(
url
==
'
theme
'
)
{
winui
.
window
.
openTheme
(
loadBottomMenuIcon
);
return
;
}
url
=
indexMenu
.
getUrlPath
(
url
,
menuSysWinUrl
);
}
else
{
url
=
dsFormPageUrl
+
url
;
}
if
(
type
===
1
)
{
if
(
type
===
1
)
{
// 新窗口打开
// 新窗口打开
window
.
open
(
url
);
window
.
open
(
url
);
...
...
web/src/main/resources/template/js/traditionpage/index.js
浏览文件 @
a7eda96d
...
@@ -147,7 +147,11 @@ layui.config({
...
@@ -147,7 +147,11 @@ layui.config({
active
=
{
active
=
{
//在这里给active绑定几项事件,后面可通过active调用这些事件
//在这里给active绑定几项事件,后面可通过active调用这些事件
tabAdd
:
function
(
url
,
id
,
name
)
{
tabAdd
:
function
(
url
,
id
,
name
)
{
url
=
systemCommonUtil
.
getHasVersionUrl
(
url
);
if
(
systemCommonUtil
.
checkUrl
(
url
))
{
url
=
systemCommonUtil
.
getHasVersionUrl
(
url
);
}
else
{
url
=
dsFormPageUrl
+
url
;
}
//新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值
//新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值
//关于tabAdd的方法所传入的参数可看layui的开发文档中基础方法部分
//关于tabAdd的方法所传入的参数可看layui的开发文档中基础方法部分
element
.
tabAdd
(
'
menubox
'
,
{
element
.
tabAdd
(
'
menubox
'
,
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录