1.在编辑时,set,它的属性,直接在下面’disabled’
if (this.$route.query.status === 'edit') {
this.buttons.push({
type: 'primary',
event: 'edit',
name: this.$t('common.button.submit')
})
this.$set(
this.fieldList.find(item => item.prop === 'key'),
this.fieldList.find(item => item.prop === 'value'),
'disabled',
true
)
this.initData()
}