提交 ad2cc2e1 编写于 作者: Skyeye云's avatar Skyeye云

feat: 布局信息设定修改

上级 1003aeba
...@@ -88,8 +88,8 @@ layui.config({ ...@@ -88,8 +88,8 @@ layui.config({
// 删除 // 删除
function restore(data) { function restore(data) {
layer.confirm('还原操作', {icon: 3, title: '确定还原该数据吗?'}, function (index) { parent.layer.confirm('还原操作', {icon: 3, title: '确定还原该数据吗?'}, function (index) {
layer.close(index); parent.layer.close(index);
var params = { var params = {
className: objectId, className: objectId,
attrKey: data.attrKey attrKey: data.attrKey
...@@ -103,7 +103,7 @@ layui.config({ ...@@ -103,7 +103,7 @@ layui.config({
// 编辑 // 编辑
function edit(data) { function edit(data) {
_openNewWindows({ parent._openNewWindows({
url: "../../tpl/attr/writeAttr.html?className=" + objectId + '&attrKey=' + data.attrKey, url: "../../tpl/attr/writeAttr.html?className=" + objectId + '&attrKey=' + data.attrKey,
title: systemLanguage["com.skyeye.editPageTitle"][languageType], title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "writeAttr", pageId: "writeAttr",
......
...@@ -40,7 +40,7 @@ layui.config({ ...@@ -40,7 +40,7 @@ layui.config({
} }
$("body").on("click", "#editBean", function() { $("body").on("click", "#editBean", function() {
_openNewWindows({ parent._openNewWindows({
url: "../../tpl/classServer/classServerEdit.html?objectId=" + objectId, url: "../../tpl/classServer/classServerEdit.html?objectId=" + objectId,
title: systemLanguage["com.skyeye.editPageTitle"][languageType], title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "classServerEdit", pageId: "classServerEdit",
......
...@@ -78,8 +78,8 @@ layui.config({ ...@@ -78,8 +78,8 @@ layui.config({
// 删除 // 删除
function delet(data) { function delet(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { parent.layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index); parent.layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "deleteOperateById", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "deleteOperateById", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -94,8 +94,8 @@ layui.config({ ...@@ -94,8 +94,8 @@ layui.config({
} }
function openWritePage() { function openWritePage() {
_openNewWindows({ parent._openNewWindows({
url: "../../tpl/operate/writeOperate.html", url: "../../tpl/operate/writeOperate.html?className=" + objectId + "&id=" + rowId,
title: systemLanguage["com.skyeye.recordPageTitle"][languageType], title: systemLanguage["com.skyeye.recordPageTitle"][languageType],
pageId: "writeOperate", pageId: "writeOperate",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
......
...@@ -10,7 +10,9 @@ layui.config({ ...@@ -10,7 +10,9 @@ layui.config({
var $ = layui.$, var $ = layui.$,
form = layui.form; form = layui.form;
var selOption = getFileContent('tpl/template/select-option.tpl'); var selOption = getFileContent('tpl/template/select-option.tpl');
var className = GetUrlParam("className");
var id = GetUrlParam("id");
var _html = { var _html = {
'color': `<div class="layui-form-item layui-col-xs6"> 'color': `<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>
...@@ -45,12 +47,12 @@ layui.config({ ...@@ -45,12 +47,12 @@ layui.config({
}; };
var attrHtml = ''; var attrHtml = '';
AjaxPostUtil.request({url: reqBasePath + "queryAttrDefinitionList", params: {className: parent.objectId}, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "queryAttrDefinitionList", params: {className: className}, type: 'json', method: "POST", callback: function (json) {
attrHtml = getDataUseHandlebars(`<option value="">全部</option>{{#each rows}}<option value="{{attrKey}}">{{name}}</option>{{/each}}`, json); attrHtml = getDataUseHandlebars(`<option value="">全部</option>{{#each rows}}<option value="{{attrKey}}">{{name}}</option>{{/each}}`, json);
}, async: false}); }, async: false});
if (!isNull(parent.rowId)) { if (!isNull(id)) {
AjaxPostUtil.request({url: reqBasePath + "queryOperateById", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "queryOperateById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
$("#name").val(json.bean.name); $("#name").val(json.bean.name);
$("#authPointNum").val(json.bean.authPointNum); $("#authPointNum").val(json.bean.authPointNum);
$("#orderBy").val(json.bean.orderBy); $("#orderBy").val(json.bean.orderBy);
...@@ -108,14 +110,14 @@ layui.config({ ...@@ -108,14 +110,14 @@ layui.config({
dsFormColumnUtil.init({ dsFormColumnUtil.init({
id: 'attrSymbolsDesignBox', id: 'attrSymbolsDesignBox',
title: '按钮显示条件', title: '按钮显示条件',
className: parent.objectId className: className
}, isNull(json.bean.showConditionList) ? [] : json.bean.showConditionList); }, isNull(json.bean.showConditionList) ? [] : json.bean.showConditionList);
}, async: false}); }, async: false});
} else { } else {
dsFormColumnUtil.init({ dsFormColumnUtil.init({
id: 'attrSymbolsDesignBox', id: 'attrSymbolsDesignBox',
title: '按钮显示条件', title: '按钮显示条件',
className: parent.objectId className: className
}); });
skyeyeClassEnumUtil.showEnumDataListByClassName("operatePosition", 'select', "position", '', form); skyeyeClassEnumUtil.showEnumDataListByClassName("operatePosition", 'select', "position", '', form);
skyeyeClassEnumUtil.showEnumDataListByClassName("eventType", 'select', "eventType", '', form); skyeyeClassEnumUtil.showEnumDataListByClassName("eventType", 'select', "eventType", '', form);
...@@ -179,7 +181,7 @@ layui.config({ ...@@ -179,7 +181,7 @@ layui.config({
form.on('submit(formWriteBean)', function (data) { form.on('submit(formWriteBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
var params = { var params = {
className: parent.objectId, className: className,
name: $("#name").val(), name: $("#name").val(),
position: $("#position").val(), position: $("#position").val(),
color: isNull($("#color").val()) ? '' : $("#color").val(), color: isNull($("#color").val()) ? '' : $("#color").val(),
...@@ -187,7 +189,7 @@ layui.config({ ...@@ -187,7 +189,7 @@ layui.config({
eventType: $("#eventType").val(), eventType: $("#eventType").val(),
orderBy: $("#orderBy").val(), orderBy: $("#orderBy").val(),
showConditionList: JSON.stringify(dsFormColumnUtil.tableDataList), showConditionList: JSON.stringify(dsFormColumnUtil.tableDataList),
id: isNull(parent.rowId) ? '' : parent.rowId id: isNull(id) ? '' : id
}; };
if (params.eventType == 'ajax') { if (params.eventType == 'ajax') {
......
...@@ -91,8 +91,8 @@ layui.config({ ...@@ -91,8 +91,8 @@ layui.config({
// 删除 // 删除
function delet(data) { function delet(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) { parent.layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index); parent.layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "deleteDsFormPage", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "deleteDsFormPage", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
...@@ -101,8 +101,8 @@ layui.config({ ...@@ -101,8 +101,8 @@ layui.config({
} }
function openWritePage() { function openWritePage() {
_openNewWindows({ parent._openNewWindows({
url: "../../tpl/dsFormPage/writePage.html", url: "../../tpl/dsFormPage/writePage.html?className=" + objectId + "&id=" + rowId,
title: systemLanguage["com.skyeye.recordPageTitle"][languageType], title: systemLanguage["com.skyeye.recordPageTitle"][languageType],
pageId: "writePage", pageId: "writePage",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
......
...@@ -10,6 +10,9 @@ layui.config({ ...@@ -10,6 +10,9 @@ layui.config({
var $ = layui.$, var $ = layui.$,
form = layui.form; form = layui.form;
var selOption = getFileContent('tpl/template/select-option.tpl'); var selOption = getFileContent('tpl/template/select-option.tpl');
var className = GetUrlParam("className");
var id = GetUrlParam("id");
var pageHtml = { var pageHtml = {
'simpleTable': `<div class="layui-form-item layui-col-xs6"> 'simpleTable': `<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>
...@@ -57,8 +60,8 @@ layui.config({ ...@@ -57,8 +60,8 @@ layui.config({
$("#serviceStr").html(getDataUseHandlebars(selOption, {rows: serviceMap})); $("#serviceStr").html(getDataUseHandlebars(selOption, {rows: serviceMap}));
if (!isNull(parent.rowId)) { if (!isNull(id)) {
AjaxPostUtil.request({url: reqBasePath + "dsformpage006", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "dsformpage006", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
$("#name").val(json.bean.name); $("#name").val(json.bean.name);
$("#remark").val(json.bean.remark); $("#remark").val(json.bean.remark);
skyeyeClassEnumUtil.showEnumDataListByClassName("dsFormPageType", 'select', "type", json.bean.type, form); skyeyeClassEnumUtil.showEnumDataListByClassName("dsFormPageType", 'select', "type", json.bean.type, form);
...@@ -80,7 +83,7 @@ layui.config({ ...@@ -80,7 +83,7 @@ layui.config({
} }
function loadOperate(defaultValue) { function loadOperate(defaultValue) {
AjaxPostUtil.request({url: reqBasePath + "queryOperateList", params: {className: parent.objectId}, type: 'json', method: 'POST', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "queryOperateList", params: {className: className}, type: 'json', method: 'POST', callback: function (json) {
var value = isNull(defaultValue) ? '' : defaultValue.toString(); var value = isNull(defaultValue) ? '' : defaultValue.toString();
dataShowType.showData(json, 'verificationSelect', 'operateIdList', value, form); dataShowType.showData(json, 'verificationSelect', 'operateIdList', value, form);
}}); }});
...@@ -108,7 +111,7 @@ layui.config({ ...@@ -108,7 +111,7 @@ layui.config({
$("#searchTips").val(data.searchTips); $("#searchTips").val(data.searchTips);
} else if (type == 'processAttr') { } else if (type == 'processAttr') {
$('#otherDom').html(pageHtml[type]); $('#otherDom').html(pageHtml[type]);
AjaxPostUtil.request({url: flowableBasePath + 'queryActFlowListByClassName', params: {className: parent.objectId}, type: 'json', method: "POST", callback: function (json) { AjaxPostUtil.request({url: flowableBasePath + 'queryActFlowListByClassName', params: {className: className}, type: 'json', method: "POST", callback: function (json) {
$("#actFlowId").html(getDataUseHandlebars(`{{#each rows}}<option value="{{id}}">{{flowName}}</option>{{/each}}`, json)); $("#actFlowId").html(getDataUseHandlebars(`{{#each rows}}<option value="{{id}}">{{flowName}}</option>{{/each}}`, json));
if (!isNull(data.actFlowId)) { if (!isNull(data.actFlowId)) {
$("#actFlowId").val(data.actFlowId); $("#actFlowId").val(data.actFlowId);
...@@ -116,7 +119,7 @@ layui.config({ ...@@ -116,7 +119,7 @@ layui.config({
form.render('select'); form.render('select');
}, async: false}); }, async: false});
} else if (type == 'create' || type == 'edit') { } else if (type == 'create' || type == 'edit') {
AjaxPostUtil.request({url: reqBasePath + "queryServiceBeanCustom", params: {className: parent.objectId}, type: 'json', method: 'GET', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "queryServiceBeanCustom", params: {className: className}, type: 'json', method: 'GET', callback: function (json) {
// 判断是否开启了工作流,如果开启了工作流,则将【是否开启工作流】这个选项填充 // 判断是否开启了工作流,如果开启了工作流,则将【是否开启工作流】这个选项填充
if (json.bean.serviceBean.flowable) { if (json.bean.serviceBean.flowable) {
$('#otherDom').html(pageHtml['flowabled']); $('#otherDom').html(pageHtml['flowabled']);
...@@ -141,11 +144,11 @@ layui.config({ ...@@ -141,11 +144,11 @@ layui.config({
form.on('submit(formWriteBean)', function (data) { form.on('submit(formWriteBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
var params = { var params = {
id: isNull(parent.rowId) ? '' : parent.rowId, id: isNull(id) ? '' : id,
name: $("#name").val(), name: $("#name").val(),
remark: $("#remark").val(), remark: $("#remark").val(),
type: $("#type").val(), type: $("#type").val(),
className: parent.objectId, className: className,
operateIdList: isNull($('#operateIdList').attr('value')) ? [] : $('#operateIdList').attr('value'), operateIdList: isNull($('#operateIdList').attr('value')) ? [] : $('#operateIdList').attr('value'),
dataAuthPointNum: '' dataAuthPointNum: ''
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册