From 2180cc78de9bac4b73f0b692a7be4dcb341faa91 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 25 Aug 2021 22:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/bpmnjs/index.js | 4 +- .../newOaWorkflowPool/newOaWorkflowPool.js | 8 +- .../newOaWorkflowDetail.html | 70 ++++--- .../newOaWorkflowDetail.js | 191 +++++++----------- 4 files changed, 122 insertions(+), 151 deletions(-) diff --git a/public/bpmnjs/index.js b/public/bpmnjs/index.js index 32e58acf6..813584f59 100644 --- a/public/bpmnjs/index.js +++ b/public/bpmnjs/index.js @@ -8,7 +8,7 @@ //发送get请求 let _modelId = vc.getParam('modelId'); let _param = { - 'xml': _xml, + 'xml': _xml.replaceAll('Process_1',"java110_" + vc.getParam('flowId')), 'svg': svg }; vc.http.apiPost('/activiti/model/' + _modelId + '/save', @@ -57,8 +57,6 @@ } //初始化 window.initBpmnjs(); - //生成编号 - document.getElementById('camunda-id').value = "java110_" + _flowId }, function (errInfo, error) { console.log('请求失败处理'); } diff --git a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js index 380c665db..11c763035 100644 --- a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js +++ b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js @@ -34,7 +34,7 @@ $that._listOaWorkFlowPoolForm(); vc.component._listOaWorkflowPools(DEFAULT_PAGE, DEFAULT_ROWS); }) - vc.on('newOaWorkflowPool','paginationPlus', 'page_event', function (_currentPage) { + vc.on('newOaWorkflowPool', 'paginationPlus', 'page_event', function (_currentPage) { vc.component._listOaWorkflowPools(_currentPage, DEFAULT_ROWS); }); }, @@ -73,7 +73,7 @@ vc.component.newOaWorkflowPoolInfo.total = _newOaWorkflowPoolInfo.total; vc.component.newOaWorkflowPoolInfo.records = _newOaWorkflowPoolInfo.records; vc.component.newOaWorkflowPoolInfo.pools = _newOaWorkflowPoolInfo.data; - vc.emit('newOaWorkflowPool','paginationPlus', 'init', { + vc.emit('newOaWorkflowPool', 'paginationPlus', 'init', { total: vc.component.newOaWorkflowPoolInfo.records, dataCount: vc.component.newOaWorkflowPoolInfo.total, currentPage: _page @@ -83,8 +83,8 @@ } ); }, - _openNewOaWorkflowPoolDetail: function (_notice) { - vc.jumpToPage("/admin.html#/pages/common/noticeDetail?noticeId=" + _notice.noticeId); + _openNewOaWorkflowPoolDetail: function (_pool) { + vc.jumpToPage("/admin.html#/pages/property/newOaWorkflowDetail?id=" + _pool.id + "&flowId=" + $that.newOaWorkflowPoolInfo.conditions.flowId); }, _queryOaWorkflowPoolMethod: function () { vc.component._listOaWorkflowPools(DEFAULT_PAGE, DEFAULT_ROWS); diff --git a/public/pages/property/newOaWorkflowDetail/newOaWorkflowDetail.html b/public/pages/property/newOaWorkflowDetail/newOaWorkflowDetail.html index 417bee88f..25ad542ee 100644 --- a/public/pages/property/newOaWorkflowDetail/newOaWorkflowDetail.html +++ b/public/pages/property/newOaWorkflowDetail/newOaWorkflowDetail.html @@ -11,23 +11,33 @@
| 序号 | -处理人 | -状态 | -处理时间 | -耗时 | -意见 | -
|---|---|---|---|---|---|
| 序号 | +处理人 | +状态 | +耗时 | +意见 | +|
| {{index+1}} | -{{item.staffName}} | -{{item.stateName}} | -{{item.endTime}} | -{{item.duration}} | -{{item.context}} | -
| {{index+1}} | +{{item.auditName}} | +{{item.stateName}} | +{{item.duration}} | +{{item.message}} | +