Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
5613ac44
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
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看板
提交
5613ac44
编写于
7月 02, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 表单布局打开布局方式修改
上级
08a62513
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
28 addition
and
11 deletion
+28
-11
base-server/src/main/resources/template/js/operate/writeOperate.js
...er/src/main/resources/template/js/operate/writeOperate.js
+2
-2
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+26
-9
未找到文件。
base-server/src/main/resources/template/js/operate/writeOperate.js
浏览文件 @
5613ac44
...
@@ -92,7 +92,7 @@ layui.config({
...
@@ -92,7 +92,7 @@ layui.config({
$
(
"
#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
);
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
pageOpenType
"
,
'
radio
'
,
"
openType
"
,
operateOpenPage
.
openType
,
form
);
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
pageOpenType
"
,
'
radio
'
,
"
openType
"
,
json
.
bean
.
openType
,
form
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
$
(
'
#typeChangeBox
'
).
html
(
commonHtml
[
'
customPageUrl
'
]);
$
(
"
#pageUrl
"
).
val
(
operateOpenPage
.
pageUrl
);
$
(
"
#pageUrl
"
).
val
(
operateOpenPage
.
pageUrl
);
...
@@ -223,10 +223,10 @@ layui.config({
...
@@ -223,10 +223,10 @@ layui.config({
name
:
$
(
"
#openPageName
"
).
val
(),
name
:
$
(
"
#openPageName
"
).
val
(),
type
:
type
==
1
?
true
:
false
,
type
:
type
==
1
?
true
:
false
,
pageUrl
:
type
==
1
?
$
(
"
#pageUrl
"
).
val
()
:
dsFormUtil
.
dsFormChooseMation
.
id
,
pageUrl
:
type
==
1
?
$
(
"
#pageUrl
"
).
val
()
:
dsFormUtil
.
dsFormChooseMation
.
id
,
openType
:
dataShowType
.
getData
(
'
openType
'
),
params
:
pageParams
params
:
pageParams
};
};
params
.
operateOpenPage
=
JSON
.
stringify
(
operateOpenPage
);
params
.
operateOpenPage
=
JSON
.
stringify
(
operateOpenPage
);
params
.
openType
=
dataShowType
.
getData
(
'
openType
'
);
}
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeOperate
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeOperate
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
5613ac44
...
@@ -773,6 +773,8 @@ var dsFormUtil = {
...
@@ -773,6 +773,8 @@ var dsFormUtil = {
url
+=
`&objectId=
${
objectId
}
`
;
url
+=
`&objectId=
${
objectId
}
`
;
url
+=
`&objectKey=
${
objectKey
}
`
;
url
+=
`&objectKey=
${
objectKey
}
`
;
}
}
if
(
operate
.
openType
==
1
)
{
// 正常打开
_openNewWindows
({
_openNewWindows
({
url
:
url
,
url
:
url
,
title
:
operateOpenPage
.
name
,
title
:
operateOpenPage
.
name
,
...
@@ -782,6 +784,21 @@ var dsFormUtil = {
...
@@ -782,6 +784,21 @@ var dsFormUtil = {
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
dsFormTableUtil
.
loadTable
();
dsFormTableUtil
.
loadTable
();
}});
}});
}
else
if
(
operate
.
openType
==
2
)
{
// 父页面打开
parent
.
_openNewWindows
({
url
:
url
,
title
:
operateOpenPage
.
name
,
pageId
:
'
page
'
+
operate
.
id
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
dsFormTableUtil
.
loadTable
();
}});
}
else
if
(
operate
.
openType
==
3
)
{
// 新窗口打开
window
.
open
(
sysMainMation
.
homePagePath
+
url
,
'
_blank
'
);
}
}
else
if
(
operate
.
eventType
==
'
ajax
'
)
{
}
else
if
(
operate
.
eventType
==
'
ajax
'
)
{
// 发送请求
// 发送请求
var
businessApi
=
operate
.
businessApi
;
var
businessApi
=
operate
.
businessApi
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录