修改禅道已知bug

This commit is contained in:
qq787203167
2022-08-16 18:08:08 +08:00
parent 180f2b853a
commit 20f14d1878
2 changed files with 32 additions and 6 deletions
@@ -26,34 +26,46 @@
export default { export default {
name: 'regulatoryCirculationHistory', name: 'regulatoryCirculationHistory',
props: {
isTrue: {
type: Boolean,
default: false
}
},
data() { data() {
return { return {
dataSource: [], dataSource: [],
loading: false, loading: false,
columns: [ columnsAll: [
{ {
title: this.$t('OperationContent'), title: this.$t('OperationContent'),
dataIndex: 'taskDefinitionKeyName', dataIndex: 'taskDefinitionKeyName',
align: 'center', align: 'center',
width: '25%' width: '20%'
},
{
title: this.$t('opinion'),
dataIndex: 'approvalOpinion',
align: 'center',
width: '20%'
}, },
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'createBy', dataIndex: 'createBy',
align: 'center', align: 'center',
width: '25%' width: '20%'
}, },
{ {
title: this.$t('role'), title: this.$t('role'),
dataIndex: 'operatorRoleName', dataIndex: 'operatorRoleName',
align: 'center', align: 'center',
width: '25%' width: '20%'
}, },
{ {
title: this.$t('OperationTime'), title: this.$t('OperationTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center', align: 'center',
width: '25%', width: '20%',
customRender: function(t, r, index) { customRender: function(t, r, index) {
return moment(t).format('YYYY-MM-DD HH:mm:ss') return moment(t).format('YYYY-MM-DD HH:mm:ss')
} }
@@ -64,6 +76,20 @@
mounted() { mounted() {
this.getList() 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: { methods: {
getList() { getList() {
let query = { let query = {
@@ -34,7 +34,7 @@
@submit="submit" @submit="submit"
@sendBack="sendBack" @sendBack="sendBack"
/> />
<circulationHistory v-if="isDisplay"/> <circulationHistory :isTrue="true" v-if="isDisplay"/>
</div> </div>
</div> </div>
<JLoading :loading="loading">{{this.$t('pleaseWaitWhileRunning')}}</JLoading> <JLoading :loading="loading">{{this.$t('pleaseWaitWhileRunning')}}</JLoading>