提交 45adbc61 编写于 作者: doc_wei's avatar doc_wei

业务数据绑定动态表单功能修改

上级 f3103613
...@@ -22,12 +22,16 @@ layui.config({ ...@@ -22,12 +22,16 @@ layui.config({
ajaxSendLoadBefore: function (hdb) { ajaxSendLoadBefore: function (hdb) {
}, },
ajaxSendAfter: function (json) { ajaxSendAfter: function (json) {
$.each(json.bean.dsFormPageMations, function (i, item) { if (!isNull(json.bean.dsFormPageMations)) {
$.each(json.bean.dsFormPageMations, function (i, item) {
addRow();
$("#dsFormChooseList" + (rowNum - 1)).val(item.pageNum);
$("#dsFormChooseList" + (rowNum - 1)).attr("dataId", item.id);
$("#pageName" + (rowNum - 1)).html(item.pageName);
})
} else {
addRow(); addRow();
$("#dsFormChooseList" + (rowNum - 1)).val(item.pageNum); }
$("#dsFormChooseList" + (rowNum - 1)).attr("dataId", item.id);
$("#pageName" + (rowNum - 1)).html(item.pageName);
})
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
...@@ -27,8 +27,8 @@ layui.config({ ...@@ -27,8 +27,8 @@ layui.config({
{ field: 'serviceName', title: '服务名称', align: 'left', width: 120, templet: function (d) { { field: 'serviceName', title: '服务名称', align: 'left', width: 120, templet: function (d) {
return '<a lay-event="details" class="notice-title-click">' + d.serviceName + '</a>'; return '<a lay-event="details" class="notice-title-click">' + d.serviceName + '</a>';
}}, }},
{ field: 'className', title: '服务编码', align: 'left', width: 120 }, { field: 'className', title: '服务编码', align: 'left', width: 400 },
{ field: 'appId', title: '应用ID', align: 'left', width: 120 }, { field: 'appId', title: '应用ID', align: 'left', width: 240 },
{ field: 'appName', title: '应用名称', align: 'left', width: 120 }, { field: 'appName', title: '应用名称', align: 'left', width: 120 },
{ 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 },
...@@ -59,7 +59,7 @@ layui.config({ ...@@ -59,7 +59,7 @@ layui.config({
rowId = data.id; rowId = data.id;
_openNewWindows({ _openNewWindows({
url: "../../tpl/dsFormObjectRelation/dsFormObjectRelationEdit.html", url: "../../tpl/dsFormObjectRelation/dsFormObjectRelationEdit.html",
title: systemLanguage["com.skyeye.editPageTitle"][languageType], title: '绑定表单',
pageId: "dsFormObjectRelationEdit", pageId: "dsFormObjectRelationEdit",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function (refreshCode) { callBack: function (refreshCode) {
...@@ -71,7 +71,6 @@ layui.config({ ...@@ -71,7 +71,6 @@ layui.config({
// 详情 // 详情
function details(data) { function details(data) {
rowId = data.id; rowId = data.id;
var url = erpOrderUtil.getErpDetailUrl(data);
_openNewWindows({ _openNewWindows({
url: "../../tpl/dsFormObjectRelation/dsFormObjectRelationDetails.html", url: "../../tpl/dsFormObjectRelation/dsFormObjectRelationDetails.html",
title: systemLanguage["com.skyeye.detailsPageTitle"][languageType], title: systemLanguage["com.skyeye.detailsPageTitle"][languageType],
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<table id="messageTable" lay-filter="messageTable"></table> <table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar"> <script type="text/html" id="tableBar">
{{# if(auth('1641693544770')){ }} {{# if(auth('1641693544770')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a> <a class="layui-btn layui-btn-xs" lay-event="bindDsFormPage">绑定表单</a>
{{# } }} {{# } }}
</script> </script>
</div> </div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册