From ed5cc6fc8360cd4e683087f1952532e86843d85f Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Wed, 25 Aug 2021 01:18:28 +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 --- .../newOaWorkflowPool/newOaWorkflowPool.html | 21 +++++++------- .../newOaWorkflowPool/newOaWorkflowPool.js | 28 ++++++++++++++++--- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.html b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.html index 466de0a9a..84d1ec091 100644 --- a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.html +++ b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.html @@ -53,25 +53,26 @@ 申请人 - 公告类型 - 开始时间 - 结束时间 + + {{item.label}} 状态 创建时间 操作 - - {{pool.createUserName}} - {{pool.noticeTypeCdName}} - {{pool.startTime}} - {{pool.endTime}} + + {{pool.create_user_name}} + + {{pool[item1.key]}} {{pool.stateName}} - {{notice.createTime}} + {{pool.create_time}}
-
diff --git a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js index f734fcdd5..1b8fd6ae7 100644 --- a/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js +++ b/public/components/property/newOaWorkflowPool/newOaWorkflowPool.js @@ -10,6 +10,7 @@ pools: [], total: 0, records: 1, + formJson: [], conditions: { createUserName: '', startTime: '', @@ -23,13 +24,14 @@ }, _initEvent: function () { vc.on('newOaWorkflowPool', 'witch', function (_value) { - $that.newOaWorkflowFormInfo.conditions.flowId = _value.flowId; + $that.newOaWorkflowPoolInfo.conditions.flowId = _value.flowId; vc.initDateTime('poolStartTime', function (_value) { $that.newOaWorkflowPoolInfo.conditions.startTime = _value; }); vc.initDateTime('poolEndTime', function (_value) { $that.newOaWorkflowPoolInfo.conditions.endTime = _value; }); + $that._listOaWorkFlowPoolForm(); vc.component._listOaWorkflowPools(DEFAULT_PAGE, DEFAULT_ROWS); }) vc.on('pagination', 'page_event', function (_currentPage) { @@ -37,6 +39,25 @@ }); }, methods: { + _listOaWorkFlowPoolForm: function () { + var param = { + params: { + page: 1, + row: 1, + flowId: $that.newOaWorkflowPoolInfo.conditions.flowId + } + }; + //发送get请求 + vc.http.apiGet('/oaWorkflow/queryOaWorkflowForm', + param, + function (json, res) { + let _newOaWorkflowFormInfo = JSON.parse(json); + $that.newOaWorkflowPoolInfo.formJson = JSON.parse(_newOaWorkflowFormInfo.data[0].formJson).components; + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, _listOaWorkflowPools: function (_page, _rows) { vc.component.newOaWorkflowPoolInfo.conditions.page = _page; vc.component.newOaWorkflowPoolInfo.conditions.row = _rows; @@ -45,14 +66,13 @@ }; //发送get请求 - vc.http.get('newOaWorkflowPool', - 'list', + vc.http.apiGet('/oaWorkflow/queryOaWorkflowFormData', param, function (json, res) { var _newOaWorkflowPoolInfo = JSON.parse(json); vc.component.newOaWorkflowPoolInfo.total = _newOaWorkflowPoolInfo.total; vc.component.newOaWorkflowPoolInfo.records = _newOaWorkflowPoolInfo.records; - vc.component.newOaWorkflowPoolInfo.notices = _newOaWorkflowPoolInfo.notices; + vc.component.newOaWorkflowPoolInfo.pools = _newOaWorkflowPoolInfo.data; vc.emit('pagination', 'init', { total: vc.component.newOaWorkflowPoolInfo.records, dataCount: vc.component.newOaWorkflowPoolInfo.total,