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

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

上级 08a62513
......@@ -92,7 +92,7 @@ layui.config({
$("#openPageName").val(operateOpenPage.name);
var type = operateOpenPage.type ? "1" : "2";
$("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) {
$('#typeChangeBox').html(commonHtml['customPageUrl']);
$("#pageUrl").val(operateOpenPage.pageUrl);
......@@ -223,10 +223,10 @@ layui.config({
name: $("#openPageName").val(),
type: type == 1 ? true : false,
pageUrl: type == 1 ? $("#pageUrl").val() : dsFormUtil.dsFormChooseMation.id,
openType: dataShowType.getData('openType'),
params: pageParams
};
params.operateOpenPage = JSON.stringify(operateOpenPage);
params.openType = dataShowType.getData('openType');
}
AjaxPostUtil.request({url: reqBasePath + "writeOperate", params: params, type: 'json', method: 'POST', callback: function (json) {
......
......@@ -773,15 +773,32 @@ var dsFormUtil = {
url += `&objectId=${objectId}`;
url += `&objectKey=${objectKey}`;
}
_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();
}});
if (operate.openType == 1) {
// 正常打开
_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 == 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') {
// 发送请求
var businessApi = operate.businessApi;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册