Commit ed56bb88 authored by xioln's avatar xioln

签审历史修改

parent 05c7a730
......@@ -31,7 +31,7 @@
</template>
<script>
import { getInstTaskHisTory, getDictListByCode } from '@/api/taskDetail'
import { getInstTaskHisTory } from '@/api/taskDetail'
export default {
props: {
flowData: {
......@@ -54,9 +54,8 @@ export default {
},
created () {
},
async mounted () {
await this.getDictArr()
await this.getWorkItemHistory()
mounted () {
this.getWorkItemHistory()
},
computed: {},
methods: {
......@@ -88,16 +87,22 @@ export default {
(dateEnd.getTime() - dateStart.getTime()) / (1000 * 60 * 60 * 24)
)
},
getDictArr () {
getDictListByCode('MigrationPlanStatus').then(res => {
if (!res || !res.items) {
return []
}
this.dictArr = res.items.content
})
},
translateStatus(status) {
return this.dictArr.find(item => item.dictKey === status)?.dictValue
let str = ''
switch (status) {
case 'COMPLETE':
str = '已完成'
break
case 'BE_RESOLVED':
str = '待处理'
break
case 'PENDING':
str = '被委托人待处理'
break
case 'RUNNING':
str = '进行中'
}
return str
}
}
}
......
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