提交 5613ac44 编写于 作者: doc_wei's avatar doc_wei

feat: 表单布局打开布局方式修改

上级 08a62513
...@@ -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) {
......
...@@ -773,15 +773,32 @@ var dsFormUtil = { ...@@ -773,15 +773,32 @@ var dsFormUtil = {
url += `&objectId=${objectId}`; url += `&objectId=${objectId}`;
url += `&objectKey=${objectKey}`; url += `&objectKey=${objectKey}`;
} }
_openNewWindows({ if (operate.openType == 1) {
url: url, // 正常打开
title: operateOpenPage.name, _openNewWindows({
pageId: 'page' + operate.id, url: url,
area: ['90vw', '90vh'], title: operateOpenPage.name,
callBack: function (refreshCode) { pageId: 'page' + operate.id,
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); area: ['90vw', '90vh'],
dsFormTableUtil.loadTable(); callBack: function (refreshCode) {
}}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
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.
先完成此消息的编辑!
想要评论请 注册