mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
Partial implementation of fields edit
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
:content="col"
|
||||
:field="cKey"
|
||||
:type="fieldType(cKey)"
|
||||
@updateField="updateField"
|
||||
@updateField="updateField($event, row[primaryField.name])"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -128,10 +128,17 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
updateField (payload) {
|
||||
updateField (event, id) {
|
||||
if (!this.primaryField)
|
||||
this.addNotification({ status: 'warning', message: this.$t('message.unableEditFieldWithoutPrimary') });
|
||||
console.log(payload);
|
||||
else {
|
||||
const params = {
|
||||
primary: this.primaryField.name,
|
||||
id,
|
||||
...event
|
||||
};
|
||||
this.$emit('updateField', params);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user