Commit ed56bb88 authored by xioln's avatar xioln

签审历史修改

parent 05c7a730
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { getInstTaskHisTory, getDictListByCode } from '@/api/taskDetail' import { getInstTaskHisTory } from '@/api/taskDetail'
export default { export default {
props: { props: {
flowData: { flowData: {
...@@ -54,9 +54,8 @@ export default { ...@@ -54,9 +54,8 @@ export default {
}, },
created () { created () {
}, },
async mounted () { mounted () {
await this.getDictArr() this.getWorkItemHistory()
await this.getWorkItemHistory()
}, },
computed: {}, computed: {},
methods: { methods: {
...@@ -88,16 +87,22 @@ export default { ...@@ -88,16 +87,22 @@ export default {
(dateEnd.getTime() - dateStart.getTime()) / (1000 * 60 * 60 * 24) (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) { 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