|
|
@@ -16,14 +16,18 @@ export default {
|
|
|
default: State.READY
|
|
|
}
|
|
|
},
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ active: `${this.status}`
|
|
|
+ }
|
|
|
+ },
|
|
|
computed: {
|
|
|
schema () {
|
|
|
return {
|
|
|
condition: {
|
|
|
type: this.type,
|
|
|
- resolutionRatio: void 0,
|
|
|
- status: this.status,
|
|
|
- name: ''
|
|
|
+ status: Number(this.active),
|
|
|
+ ...this.getCondition()
|
|
|
},
|
|
|
list: getSchedules,
|
|
|
filters: [
|
|
|
@@ -34,12 +38,16 @@ export default {
|
|
|
{ prop: 'name', label: '名称', 'min-width': 120 },
|
|
|
{ prop: 'resolutionRatio', label: '分辨率' },
|
|
|
{ prop: 'createTime', label: '创建时间', 'min-width': 90 },
|
|
|
+ this.active === `${State.REJECTED}` ? { prop: 'remark', label: '驳回原因' } : null,
|
|
|
{ type: 'invoke', width: 160, render: this.invokes }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getCondition () {
|
|
|
+ return this.$condition || { resolutionRatio: void 0, name: '' }
|
|
|
+ },
|
|
|
onView ({ id }) {
|
|
|
this.$refs.scheduleDialog.show(id)
|
|
|
},
|