Commit 0a986ae3 authored by jingnan's avatar jingnan 👀

看板界面周计划修改

parent b52097ec
...@@ -2537,11 +2537,19 @@ export default { ...@@ -2537,11 +2537,19 @@ export default {
completion(params) completion(params)
.then((res) => { .then((res) => {
if (res.message.includes('成功')) { if (res.message.includes('成功')) {
const actualData = res.items['实际完成任务']
// 实际完工 // 实际完工
const actual = res.items['实际完成任务'] const actual = Object.keys(actualData).sort().reduce((acc, key) => {
acc[key] = actualData[key]
return acc
}, {})
// 计划完工 // 计划完工
const plan = res.items['计划完成任务'] const planData = res.items['计划完成任务']
const optionTrendxAxisdata = res.items['X轴'] const plan = Object.keys(planData).sort().reduce((acc, key) => {
acc[key] = planData[key]
return acc
}, {})
const optionTrendxAxisdata = res.items['X轴'].sort()
const formatActual = Object.values(actual) const formatActual = Object.values(actual)
const formatPlan = Object.values(plan) const formatPlan = Object.values(plan)
optionTrend.xAxis.data = optionTrendxAxisdata optionTrend.xAxis.data = optionTrendxAxisdata
......
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