+
-
diff --git a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html b/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html
deleted file mode 100644
index 937050734018e99fd7eec724009e2c20b4b53c55..0000000000000000000000000000000000000000
--- a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html b/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html
deleted file mode 100644
index e0d5361843520992bdc33da7f9a6dc434400ea18..0000000000000000000000000000000000000000
--- a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html b/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
deleted file mode 100644
index 90d942d6fe99a9bbe04633b489630f217a45b58e..0000000000000000000000000000000000000000
--- a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.html b/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.html
deleted file mode 100644
index 786255fa5b5d820441b5ce654cd550fd17734b81..0000000000000000000000000000000000000000
--- a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessList.html b/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessList.html
deleted file mode 100644
index adc9b7737f2214425406e7256c2e4b3f1e317b3b..0000000000000000000000000000000000000000
--- a/activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessList.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js b/dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
index 660977b09ea4840b4efedf07d12bc8135b53fecc..8232e29dc76e8b78354c65f5aba9bf171a228cbd 100644
--- a/dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
+++ b/dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
@@ -27,7 +27,7 @@ layui.config({
addRow();
$("#dsFormChooseList" + (rowNum - 1)).val(item.pageNum);
$("#dsFormChooseList" + (rowNum - 1)).attr("dataId", item.id);
- $("#pageName" + (rowNum - 1)).html(item.pageName);
+ $("#name" + (rowNum - 1)).html(item.name);
})
} else {
addRow();
@@ -75,7 +75,7 @@ layui.config({
id: "row" + rowNum.toString(), //checkbox的id
trId: "tr" + rowNum.toString(), //行的id
dsFormChooseList: "dsFormChooseList" + rowNum.toString(), // 动态表单选择id
- pageName: "pageName" + rowNum.toString() // 动态表单页面名称id
+ name: "name" + rowNum.toString() // 动态表单页面名称id
};
$("#useTable").append(getDataUseHandlebars(usetableTemplate, par));
form.render('checkbox');
@@ -86,9 +86,9 @@ layui.config({
$("body").on("click", "#" + btnId, function (e) {
dsFormUtil.chooseType = false; // 单选
dsFormUtil.openDsFormPageChoosePage(function (){
- $("#" + par.dsFormChooseList).val(dsFormUtil.dsFormChooseMation.pageNum);
+ $("#" + par.dsFormChooseList).val(dsFormUtil.dsFormChooseMation.numCode);
$("#" + par.dsFormChooseList).attr("dataId", dsFormUtil.dsFormChooseMation.id);
- $("#" + par.pageName).html(dsFormUtil.dsFormChooseMation.pageName);
+ $("#" + par.name).html(dsFormUtil.dsFormChooseMation.name);
});
});
}
diff --git a/dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js b/dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js
index 0056c14fb302cba01c4f08ebe84394e537accd2c..b43176df8544a9352a48111a1b49af8ed63c9dc4 100644
--- a/dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js
+++ b/dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js
@@ -35,16 +35,17 @@ layui.config({
if(typeof item.aData == 'string'){
obj = JSON.parse(item.aData);
}
- item.context = getDataUseHandlebars(item.templateContent, obj);
+ item.context = getDataUseHandlebars(item.dsFormComponent.templateContent, obj);
} else if (item.associatedDataTypes == 2){//接口
AjaxPostUtil.request({url: flowableBasePath + "dsformpage011", params: {interfa: item.aData}, type: 'json', callback: function(j){
var obj = JSON.parse(j.bean.aData);
- item.context = getDataUseHandlebars(item.templateContent, obj);
+ item.context = getDataUseHandlebars(item.dsFormComponent.templateContent, obj);
}, async: false});
}
+ item.value = item.defaultValue;
var jsonStr = {bean: item};
- var html = getDataUseHandlebars('{{#bean}}' + item.htmlContent + '{{/bean}}', jsonStr);
- var html_js = getDataUseHandlebars('{{#bean}}' + item.jsContent + '{{/bean}}', jsonStr);
+ var html = getDataUseHandlebars('{{#bean}}' + item.dsFormComponent.htmlContent + '{{/bean}}', jsonStr);
+ var html_js = getDataUseHandlebars('{{#bean}}' + item.dsFormComponent.jsContent + '{{/bean}}', jsonStr);
var jsCon = '';
$(html).appendTo($("#showForm").get(0)).attr("rowid", item.id);
$("#showForm").append(jsCon);
@@ -54,12 +55,7 @@ layui.config({
function loadPageMation(json){
$.each(json.rows, function(i, item) {
- if(parseInt(item.state) == 1){
- // 加载非删除状态的数据
- loadNewControl(item);
- } else {
- jsonArray.push(item);
- }
+ loadNewControl(item);
});
loadFormItemDrop();
matchingLanguage();
@@ -96,11 +92,11 @@ layui.config({
$.each(json.bean, function (key, value) {
$.each(value, function (j, bean) {
bean.logo = systemCommonUtil.initIconShow(bean);
+ formPageControl.push(bean);
});
});
},
ajaxSendAfter:function (json) {
- formPageControl = [].concat(json.rows);
form.render();
}
});
@@ -110,12 +106,8 @@ layui.config({
$(".draggable").draggable({
appendTo: "body",
helper: "clone",
- drag: function (event, ui) {
-
- },
- stop: function () {
-
- }
+ drag: function (event, ui) {},
+ stop: function () {}
});
$(".droppable").droppable({
accept: ".draggable",
@@ -157,16 +149,14 @@ layui.config({
});
var params = {
pageId: rowId,
- defaultWidth: 'layui-col-xs12',
+ width: 'layui-col-xs12',
title: '标题',
linkedData: linkedData,
require: '',
placeholder: '',
defaultValue: '',
formContentId: id,
- editableNodeId: '',
- editableNodeName: '',
- keyId: ''
+ attrKey: ''
};
if(linkedData == 1){
@@ -183,28 +173,15 @@ layui.config({
params.associatedDataTypes = "";
params.aData = "";
}
- params = getDataScript(params);
// 保存控件
reqSaveData(params, templateContent);
}
- // 获取该控件的脚本信息
- function getDataScript(params){
- AjaxPostUtil.request({url: flowableBasePath + "queryDsFormContentMationById", params: {id: params.formContentId}, type: 'json', method: 'GET', callback: function (json) {
- params.htmlContent = encodeURIComponent(json.bean.htmlContent);
- params.jsContent = encodeURIComponent(json.bean.jsContent);
- }, async: false});
- return params;
- }
-
// 保存“新增控件”
function reqSaveData(params, templateContent){
AjaxPostUtil.request({url: flowableBasePath + "dsformpage003", params: params, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
- var templateJson = json.bean;
- templateJson.biaoJi = "1";
- templateJson.templateContent = templateContent;
- loadNewControl(templateJson);
+ loadNewControl(json.bean);
loadFormItemDrop();
}, async: false});
}
@@ -230,14 +207,14 @@ layui.config({
obj = JSON.stringify(item.aData);
}
// json串
- $("#JsonData").val(obj);
+ $("#jsonData").val(obj);
} else if (associatedDataTypes == "2") {
// 接口
- $("#nterfac").val(item.aData);
+ $("#interfa").val(item.aData);
}
$("input:radio[name=associatedDataTypes][value=" + associatedDataTypes + "]").attr("checked", true);
}
- $("#defaultWidth").val(item.defaultWidth);
+ $("#width").val(item.width);
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
@@ -251,16 +228,11 @@ layui.config({
form.on('select(require)',function(data) {
arr = data.value;
});
+
+ if (!isNull(item.require)) {
+ arr = item.require.split(",");
+ }
- // 可编辑节点Id
- $('#editableNodeId').tagEditor({
- placeholder: '请输入可编辑节点Id'
- });
-
- // 可编辑节点名称
- $('#editableNodeName').tagEditor({
- placeholder: '请输入可编辑节点名称'
- });
initRequire(item);
matchingLanguage();
return;
@@ -274,7 +246,7 @@ layui.config({
$("#showForm div[rowid='" + rowid + "']").remove();
$.each(jsonArray, function(i, item) {
if(item.id === rowid){
- jsonArray[i].state = 0;
+ jsonArray[i].deleteFlag = 1;
}
});
$("#btnBoxDesignForm").empty();
@@ -291,14 +263,12 @@ layui.config({
return;
}
var newParams = jsonArray[inDataIndex];
- newParams.labelContent = $("#title").val();
+ newParams.title = $("#title").val();
newParams.placeholder = $("#placeholder").val();
newParams.require = arr.join(",");
- newParams.value = $("#defaultValue").val();
- newParams.defaultWidth = $("#defaultWidth").val();
- newParams.keyId = $("#keyId").val();
- newParams.editableNodeId = data.field.editableNodeId;
- newParams.editableNodeName = data.field.editableNodeName;
+ newParams.defaultValue = $("#defaultValue").val();
+ newParams.width = $("#width").val();
+ newParams.attrKey = $("#attrKey").val();
var linkedData; //控件关联的数据
var defaultData; //选择事件的默认数据
var tplContentVal; //数据展示模板的内容的值
@@ -320,7 +290,7 @@ layui.config({
if (newParams.linkedData == 1) {
newParams.associatedDataTypes = data.field.associatedDataTypes;
if (newParams.associatedDataTypes == 1) {
- var defaultDataStr = $("#JsonData").val();
+ var defaultDataStr = $("#jsonData").val();
if (isNull(defaultDataStr)) {
winui.window.msg("请填写Json串!", {icon: 2, time: 2000});
return false;
@@ -339,7 +309,7 @@ layui.config({
}
}
} else if (newParams.associatedDataTypes == 2) {
- var interfa = $("#nterfac").val();
+ var interfa = $("#interfa").val();
if (interfa.length == 0) {
winui.window.msg("请填写接口!", {icon: 2, time: 2000});
return false;
@@ -368,18 +338,16 @@ layui.config({
// 对控件进行排序
sortNodeData();
$("#showForm").empty();
- jsonArray.sort(getSortFun('asc','orderBy'));
+ jsonArray.sort(getSortFun('asc', 'orderBy'));
var newJson = [].concat(jsonArray);
jsonArray = [];
loadPageMation({rows: newJson});
}
- function sortNodeData(){
+ function sortNodeData() {
$.each(jsonArray, function(i, item) {
- if(parseInt(item.state) == 1){
- var inIndex = $("#showForm div[rowid='" + item.id + "']").index();
- jsonArray[i].orderBy = inIndex / 2 + 1;
- }
+ var inIndex = $("#showForm div[rowid='" + item.id + "']").index();
+ jsonArray[i].orderBy = inIndex;
});
}
@@ -407,14 +375,10 @@ layui.config({
form.render();
}
- $("body").on("keyup", ".keyIdName", function() {
- $(this).val($(this).val().replace(/[^\w\.\/]/ig,''));
- });
-
- //保存
+ // 保存
$("body").on("click", "#save", function() {
sortDataIn();
- if(jsonArray.length == 0){
+ if (jsonArray.length == 0) {
winui.window.msg('保存页面不能为空!', {icon: 2, time: 2000});
return;
}
diff --git a/dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js b/dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js
index 243bf46ec35443fdf6eed21f430d74ce035f75f1..7cf26801036b12b20bbe22f61af05b1e59e9c509 100644
--- a/dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js
+++ b/dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js
@@ -47,9 +47,9 @@ layui.config({
limit: getLimit(),
cols: [[
{ type: parent.dsFormUtil.chooseType ? 'checkbox' : 'radio', fixed: 'left'},
- { field: 'pageName', title: '页面名称', align: 'left', width: 120 },
- { field: 'pageDesc', title: '页面简介', align: 'left', width: 350 },
- { field: 'pageNum', title: '页面编号', align: 'center', width: 150 },
+ { field: 'name', title: '名称', align: 'left', width: 120 },
+ { field: 'remark', title: '简介', align: 'left', width: 350 },
+ { field: 'numCode', title: '页面编号', align: 'center', width: 150 },
]],
done: function(res, curr, count){
matchingLanguage();
@@ -85,6 +85,10 @@ layui.config({
form.render();
});
}
+
+ initTableSearchUtil.initAdvancedSearch(this, res.searchFilter, form, "请输入名称", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
}
});
@@ -108,21 +112,16 @@ layui.config({
});
form.render();
- form.on('submit(formSearch)', function (data) {
- if (winui.verifyForm(data.elem)) {
- table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
- }
- return false;
- });
-
$("body").on("click", "#reloadTable", function() {
+ loadTable();
+ });
+
+ function loadTable() {
table.reloadData("messageTable", {where: getTableParams()});
- });
+ }
function getTableParams() {
- return {
- pageName: $("#pageName").val()
- };
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('dsFormPageListChoose', {});
diff --git a/dsform/src/main/resources/template/js/dsFormPage/pageAdd.js b/dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
index 217face840a71e43dc37e38a913afaf0b6282ae0..e253675c9b0ce331ab99ccc3d490197c05a79740 100644
--- a/dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
+++ b/dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
@@ -15,10 +15,10 @@ layui.config({
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
- pageName: $("#pageName").val(),
- pageDesc: $("#pageDesc").val()
+ name: $("#name").val(),
+ remark: $("#remark").val()
};
- AjaxPostUtil.request({url: flowableBasePath + "dsformpage002", params: params, type: 'json', method: "POST", callback: function (json) {
+ AjaxPostUtil.request({url: flowableBasePath + "writeDsFormPage", params: params, type: 'json', method: "POST", callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
diff --git a/dsform/src/main/resources/template/js/dsFormPage/pageEdit.js b/dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
index b443fcd708152f903fea601c943d00ee97b6cbd6..bf41d447936705ac57d817d35a0f522c9c0f552d 100644
--- a/dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
+++ b/dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
@@ -13,7 +13,7 @@ layui.config({
showGrid({
id: "showForm",
url: flowableBasePath + "dsformpage006",
- params: {rowId:parent.rowId},
+ params: {id: parent.rowId},
pagination: false,
method: "GET",
template: $("#showTemplate").html(),
@@ -24,11 +24,11 @@ layui.config({
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
- rowId: parent.rowId,
- pageName: $("#pageName").val(),
- pageDesc: $("#pageDesc").val()
+ id: parent.rowId,
+ name: $("#name").val(),
+ remark: $("#remark").val()
};
- AjaxPostUtil.request({url: flowableBasePath + "dsformpage007", params: params, type: 'json', method: "PUT", callback: function (json) {
+ AjaxPostUtil.request({url: flowableBasePath + "writeDsFormPage", params: params, type: 'json', method: "POST", callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
diff --git a/dsform/src/main/resources/template/js/dsFormPage/pageList.js b/dsform/src/main/resources/template/js/dsFormPage/pageList.js
index c429e1fb00515f98fdd7c46b518f9d44bf6b4423..235b29151e2b231a4308e6f6bfa7189b1d35a16f 100644
--- a/dsform/src/main/resources/template/js/dsFormPage/pageList.js
+++ b/dsform/src/main/resources/template/js/dsFormPage/pageList.js
@@ -25,13 +25,16 @@ layui.config({
limit: getLimit(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
- { field: 'pageName', title: '页面名称', align: 'left', width: 120 },
- { field: 'pageDesc', title: '页面简介', align: 'left', width: 350 },
- { field: 'pageNum', title: '页面编号', align: 'center', width: 150 },
+ { field: 'name', title: '名称', align: 'left', width: 120 },
+ { field: 'remark', title: '简介', align: 'left', width: 350 },
+ { field: 'numCode', title: '编号', align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
+ initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () {
+ table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
+ });
}
});
@@ -60,7 +63,7 @@ layui.config({
}});
});
- // 表单控件
+ // 表单设计
function control(data) {
rowId = data.id;
_openNewWindows({
@@ -76,7 +79,7 @@ layui.config({
function delet(data) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
- AjaxPostUtil.request({url: flowableBasePath + "dsformpage005", params: {rowId: data.id}, type: 'json', method: "DELETE", callback: function (json) {
+ AjaxPostUtil.request({url: flowableBasePath + "deleteDsFormPage", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
@@ -98,26 +101,16 @@ layui.config({
}
form.render();
- form.on('submit(formSearch)', function (data) {
- if (winui.verifyForm(data.elem)) {
- table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
- }
- return false;
+ $("body").on("click", "#reloadTable", function() {
+ loadTable();
});
- // 刷新数据
- $("body").on("click", "#reloadTable", function() {
- loadTable();
- });
-
- function loadTable() {
- table.reloadData("messageTable", {where: getTableParams()});
- }
+ function loadTable() {
+ table.reloadData("messageTable", {where: getTableParams()});
+ }
- function getTableParams() {
- return {
- pageName: $("#pageName").val()
- };
+ function getTableParams() {
+ return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('pageList', {});
diff --git a/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html b/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html
index 36bd1fe6603ea7947b22ccba17f67c225524e4d6..2b8f26e9a0c15d2d4515ed8ffc46eeabeeab3e26 100644
--- a/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html
+++ b/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html
@@ -52,7 +52,7 @@
@@ -99,7 +99,7 @@
-
-
diff --git a/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html b/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html
index 8f63ddbeff35748e5ef080befdc59ecc91af7c6a..17f6ebb2e2985999810e15fca81cbef4751f07fe 100644
--- a/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html
+++ b/dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html
@@ -7,34 +7,15 @@
-
-
+
diff --git a/erp/src/main/resources/template/js/material/materialList.js b/erp/src/main/resources/template/js/material/materialList.js
index 79844a9e07a75d3984ce66d8168fc58330eba212..211ffa52f95267cf865286da46eef09522be29a0 100644
--- a/erp/src/main/resources/template/js/material/materialList.js
+++ b/erp/src/main/resources/template/js/material/materialList.js
@@ -118,7 +118,6 @@ layui.config({
}
form.render();
- // 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
diff --git a/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js b/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
index 765e5afa29a092b47512fc6945be9e619ec5aa78..34ab686945a4ef86a9b708fe6c4c81c277e15923 100644
--- a/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+++ b/web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
@@ -8,7 +8,7 @@ var dsFormUtil = {
dsFormDataKey: "initData",
dsFormBtnTemplate: '
',
- customDsFormBox: '
{{pageName}}
',
+ customDsFormBox: '
{{dsFormPage.name}}
',
// 必须包含的包
mastHaveImport: ['laydate', 'layedit', 'colorpicker', 'slider', 'fileUpload', 'codemirror', 'xml', 'clike', 'css', 'htmlmixed', 'javascript', 'nginx', 'solr', 'sql', 'vue',
'matchbrackets', 'closebrackets', 'showHint', 'anywordHint', 'lint', 'jsonLint', 'foldcode', 'foldgutter', 'braceFold', 'commentFold', 'form'],
@@ -41,7 +41,7 @@ var dsFormUtil = {
},
/**
- * 初始化表单选择按钮信息
+ * 初始化表单选择按钮信息 todo 目前没有用到
*
* @param id dom对象的id
*/
@@ -86,7 +86,7 @@ var dsFormUtil = {
},
/**
- * 加载动态表单到页面
+ * 加载动态表单(新增操作)
*
* @param showBoxId 要追加的boxid后面
* @param code 动态表单-----业务逻辑表单关联表中的code
@@ -103,7 +103,7 @@ var dsFormUtil = {
loadDsFormItem: function(showBoxId, json) {
$.each(json.rows, function(j, bean){
- var customBoxId = bean.id;
+ var customBoxId = bean.dsFormPage.id;
$("#" + showBoxId).append(getDataUseHandlebars(dsFormUtil.customDsFormBox, bean));
dsFormUtil.loadDsFormItemToEdit(customBoxId, bean.content);
});
@@ -264,7 +264,7 @@ var dsFormUtil = {
},
/**
- * 加载动态表单详情到页面
+ * 加载动态表单详情
*
* @param showBoxId要追加的boxid后面
* @param objectId 绑定的objectId
@@ -272,7 +272,7 @@ var dsFormUtil = {
loadPageShowDetailsByObjectId: function(showBoxId, objectId) {
AjaxPostUtil.request({url: flowableBasePath + "dsformpage015", params: {objectId: objectId}, method: "GET", type: 'json', callback: function(json) {
$.each(json.rows, function(j, bean) {
- var customBoxId = bean.id;
+ var customBoxId = bean.dsFormPage.id;
$("#" + showBoxId).append(getDataUseHandlebars(dsFormUtil.customDsFormBox, bean));
dsFormUtil.initSequenceDataDetails(customBoxId, bean.content);
});
@@ -336,7 +336,7 @@ var dsFormUtil = {
},
/**
- * 加载动态表单详情到编辑
+ * 加载动态表单(编辑操作)
*
* @param showBoxId要追加的boxid后面
* @param objectId 绑定的objectId