Commit d22379f0 by Joey

fix(@gms/gms-plugin-billexpand): 工作流等待时间显示错误

parent abe14953
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
formatStepTime(step) { formatStepTime(step) {
const currentTimestamp = Date.now() const currentTimestamp = Date.now()
if (step.state === 1) { if (step.state === 1) {
let ans = '已等待' let ans = ''
const createTimestamp = (new Date(step.createTime)).getTime() const createTimestamp = (new Date(step.createTime)).getTime()
let seconds = (currentTimestamp - createTimestamp) / 1000 let seconds = (currentTimestamp - createTimestamp) / 1000
const formatList = [ const formatList = [
...@@ -147,6 +147,7 @@ export default { ...@@ -147,6 +147,7 @@ export default {
seconds -= num * o.rate seconds -= num * o.rate
} }
} }
ans = '已等待' + ans
return ans return ans
} }
else { else {
...@@ -206,7 +207,6 @@ export default { ...@@ -206,7 +207,6 @@ export default {
} }
return step return step
}) })
console.log(curTrack)
curTrack.steps.push({ curTrack.steps.push({
title: "提交申请", title: "提交申请",
state: 2, state: 2,
......
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