|
|
@@ -82,6 +82,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ null,
|
|
|
{
|
|
|
type: 'invoke',
|
|
|
width: 160,
|
|
|
@@ -111,13 +112,20 @@ export default {
|
|
|
onTabClick ({ name: active }) {
|
|
|
if (this.active !== active) {
|
|
|
this.active = active
|
|
|
+ if (Number(active) === State.REJECTED) {
|
|
|
+ this.$set(this.schema.cols, 6, {
|
|
|
+ prop: 'reason', label: '驳回原因'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$set(this.schema.cols, 6, null)
|
|
|
+ }
|
|
|
this.$refs.table.mergeCondition({ status: Number(active) })
|
|
|
}
|
|
|
},
|
|
|
transform (item) {
|
|
|
const same = this.getSame(item.calendarRelease)
|
|
|
const diff = this.getDiff(item.calendarRelease)
|
|
|
- return { ...same, ...diff, workflowId: item.id, status: item.status }
|
|
|
+ return { ...same, ...diff, workflowId: item.id, status: item.status, reason: item.reason }
|
|
|
},
|
|
|
getSame ({
|
|
|
id,
|