118 lines
2.8 KiB
Java
118 lines
2.8 KiB
Java
<template>
|
|
<div class="box">
|
|
<div class="box-text">
|
|
<div class="header-text">
|
|
{{$t('circulationHistory')}}
|
|
</div>
|
|
</div>
|
|
<div style="width: 100%">
|
|
<a-table
|
|
ref="table"
|
|
:loading="loading"
|
|
:pagination="false"
|
|
:scroll="{x: true}"
|
|
:data-source="dataSource"
|
|
:columns="columns"
|
|
>
|
|
<span slot="reviewResult" slot-scope="text,result">
|
|
{{text}}
|
|
</span>
|
|
</a-table>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getAction, postAction, downloadFile } from '@/api/manage'
|
|
import moment from 'moment'
|
|
import { Base64 } from 'js-base64'
|
|
|
|
export default {
|
|
name: 'circulationHistory',
|
|
data() {
|
|
return {
|
|
dataSource: [],
|
|
loading: false,
|
|
reviewResult: {
|
|
'launch': this.$t('Launch'),
|
|
'Compliance': this.$t('accord'),
|
|
'Non-Compliance': this.$t('nonConformity'),
|
|
'To be tracked': this.$t('Tracked'),
|
|
'NA': this.$t('notInvolved'),
|
|
'No rating': this.$t('toBeConfirmed')
|
|
},
|
|
columns: [
|
|
{
|
|
title: this.$t('OperationNode'),
|
|
dataIndex: 'name',
|
|
align: 'left'
|
|
},
|
|
{
|
|
title: this.$t('Operator'),
|
|
dataIndex: 'assignee',
|
|
align: 'left'
|
|
},
|
|
{
|
|
title: this.$t('result'),
|
|
dataIndex: 'reviewResult',
|
|
align: 'left',
|
|
scopedSlots: { customRender: 'reviewResult' }
|
|
},
|
|
{
|
|
title: this.$t('opinion'),
|
|
dataIndex: 'approvalOpinion',
|
|
align: 'left'
|
|
},
|
|
{
|
|
title: this.$t('operationTime'),
|
|
dataIndex: 'createTime',
|
|
align: 'left',
|
|
width: 200,
|
|
fixed: 'right'
|
|
}
|
|
],
|
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download'
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
getList() {
|
|
let query = {
|
|
actiProcInstId: this.$route.query.actiProcInstId || this.$route.query.prcId
|
|
}
|
|
this.loading = true
|
|
getAction('/wkflow/processHistoryEO/list', query).then((res) => {
|
|
if (res.success) {
|
|
this.dataSource = res.result || []
|
|
this.loading = false
|
|
} else {
|
|
this.dataSource = []
|
|
this.loading = false
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
.box {
|
|
padding: 0 24px 24px 24px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.box-text {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
height: 60px;
|
|
line-height: 40px;
|
|
|
|
.header-text {
|
|
font-size: 18px;
|
|
font-weight: 400;
|
|
color: #000F16;
|
|
}
|
|
}
|
|
</style> |