diff --git a/jero-web/src/views/processCenter/components/regulatoryCirculationHistory.vue b/jero-web/src/views/processCenter/components/regulatoryCirculationHistory.vue index 65bf69caf..2ff41bc7f 100644 --- a/jero-web/src/views/processCenter/components/regulatoryCirculationHistory.vue +++ b/jero-web/src/views/processCenter/components/regulatoryCirculationHistory.vue @@ -26,34 +26,46 @@ export default { name: 'regulatoryCirculationHistory', + props: { + isTrue: { + type: Boolean, + default: false + } + }, data() { return { dataSource: [], loading: false, - columns: [ + columnsAll: [ { title: this.$t('OperationContent'), dataIndex: 'taskDefinitionKeyName', align: 'center', - width: '25%' + width: '20%' + }, + { + title: this.$t('opinion'), + dataIndex: 'approvalOpinion', + align: 'center', + width: '20%' }, { title: this.$t('Operator'), dataIndex: 'createBy', align: 'center', - width: '25%' + width: '20%' }, { title: this.$t('role'), dataIndex: 'operatorRoleName', align: 'center', - width: '25%' + width: '20%' }, { title: this.$t('OperationTime'), dataIndex: 'createTime', align: 'center', - width: '25%', + width: '20%', customRender: function(t, r, index) { return moment(t).format('YYYY-MM-DD HH:mm:ss') } @@ -64,6 +76,20 @@ mounted() { this.getList() }, + computed: { + columns() { + let columnsAll = JSON.parse(JSON.stringify(this.columnsAll)) + if (!this.isTrue) { + for (let i = 0; i < columnsAll.length; i++) { + if (columnsAll[i].title == this.$t('opinion')) { + columnsAll.splice(i, 1) + i-- + } + } + } + return columnsAll + } + }, methods: { getList() { let query = { diff --git a/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue b/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue index 1361ff125..bf371d414 100644 --- a/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue +++ b/jero-web/src/views/processCenter/processForm/evaluationProcess/index.vue @@ -34,7 +34,7 @@ @submit="submit" @sendBack="sendBack" /> - + {{this.$t('pleaseWaitWhileRunning')}}