Commit 56de8128 by Joey

perf(@gms/gms-plugin-billexpand): 工作流轨迹修复审批结束节点,样式调整

parent 3fc45192
...@@ -13,6 +13,7 @@ export const APPROVAL_TRACK_TABLE = { ...@@ -13,6 +13,7 @@ export const APPROVAL_TRACK_TABLE = {
CREATE_TIME: 'createTime', CREATE_TIME: 'createTime',
APPROVAL_COMMENT: 'approvalcomments', APPROVAL_COMMENT: 'approvalcomments',
NODE_NAME: 'approvalnodename', NODE_NAME: 'approvalnodename',
CURRENT_NODE: 'currnode',
CREATOR_FULL_NAME: 'creatorfullname', CREATOR_FULL_NAME: 'creatorfullname',
OPERATION: 'operation', OPERATION: 'operation',
} }
......
...@@ -166,11 +166,14 @@ export default { ...@@ -166,11 +166,14 @@ export default {
if (subTable instanceof Array) { if (subTable instanceof Array) {
this.data = subTable.map((obj) => { this.data = subTable.map((obj) => {
const operation = obj.getValue(APPROVAL_TRACK_TABLE.OPERATION) const operation = obj.getValue(APPROVAL_TRACK_TABLE.OPERATION)
const currNode = obj.getValue(APPROVAL_TRACK_TABLE.CURRENT_NODE)
return { return {
state: 2, state: 2,
result: result:
operation == '提交' currNode == 99
? -2
: operation == '提交'
? -1 ? -1
: operation == '同意' : operation == '同意'
? 1 ? 1
...@@ -184,6 +187,7 @@ export default { ...@@ -184,6 +187,7 @@ export default {
title: obj.getValue(APPROVAL_TRACK_TABLE.NODE_NAME), title: obj.getValue(APPROVAL_TRACK_TABLE.NODE_NAME),
} }
}) })
this.data = this.data.reverse()
} }
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment