From 1d5b1dbeb856635513395bff0afe4c4900ab6e7a Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Wed, 28 Dec 2022 23:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activitiCommon/processInstanceDetails.js | 4 +- .../template/tpl/actModel/actModelList.html | 14 +--- .../processInstanceDetails.html | 77 ------------------- .../js/assetReportManage/assetReportList.js | 4 +- .../template/js/processAttr/processAttrAdd.js | 6 +- .../js/processAttr/processAttrEdit.js | 15 ++-- .../js/processAttr/processAttrList.js | 2 +- .../lib/layui/customer/skyeye/dsFormUtil.js | 62 ++++++++++++--- 8 files changed, 76 insertions(+), 108 deletions(-) diff --git a/activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js b/activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js index d26f5780e..5cf42e935 100644 --- a/activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js +++ b/activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js @@ -27,7 +27,9 @@ layui.config({ tableTemplate = $("#tableTemplate").html(),//表格展示 voucherTemplate = $("#voucherTemplate").html();//凭证展示 - AjaxPostUtil.request({url: flowableBasePath + "activitimode025", params: {processInstanceId: processInstanceId}, type: 'json', method: 'GET', callback: function(j){ + AjaxPostUtil.request({url: flowableBasePath + "queryBusinessData", params: {processInstanceId: processInstanceId}, type: 'json', method: 'POST', callback: function(json) { + console.log(json); + dsFormUtil.initSequenceDataDetails('showForm', json.rows); var jsonStr = "";//实体json对象 var str = ""; $.each(j.rows, function(i, item) { diff --git a/activiti/src/main/resources/template/tpl/actModel/actModelList.html b/activiti/src/main/resources/template/tpl/actModel/actModelList.html index 571b63182..c821ede33 100644 --- a/activiti/src/main/resources/template/tpl/actModel/actModelList.html +++ b/activiti/src/main/resources/template/tpl/actModel/actModelList.html @@ -34,19 +34,9 @@
- - - - - - - - - - - - - - - - `; + console.log(_js) + $("#" + customBoxId).append(_js); + } else if (item.showType == 6) { // 凭证展示 + var boxId = "showVoucher" + item.orderBy; + // 初始化凭证 + voucherUtil.initDataDetails(boxId, item.value); + } + }); + }, + + getTableHead: function (attrTransformTableList) { + var header = []; + $.each(attrTransformTableList, function (i, item) { + var field = { + field: item.attrKey, + title: item.label, + align: item.align, + width: item.width + }; + if (!isNull(item.templet)) { + field['templet'] = item.templet; + } + header.push(field); }); + return [header]; }, /** -- GitLab