Commit d22379f0 by Joey

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

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