base work for edit mf done
This commit is contained in:
parent
22f368bf22
commit
ed1a240777
1 changed files with 10 additions and 1 deletions
|
@ -9,10 +9,10 @@
|
||||||
<v-container>
|
<v-container>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="6">
|
<v-col cols="6">
|
||||||
{{ mf }}
|
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
|
{{ mf }}
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn v-if="!mf.isNew" color="red-darken-1"
|
<v-btn v-if="!mf.isNew" color="red-darken-1"
|
||||||
|
@ -43,6 +43,15 @@ export default {
|
||||||
mf: this.set_mf,
|
mf: this.set_mf,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
title() {
|
||||||
|
if ( this.mf.isNew ) {
|
||||||
|
return "New Medicated Feed"
|
||||||
|
} else {
|
||||||
|
return "Edit Medicated Feed"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
this.$emit('closetab','list')
|
this.$emit('closetab','list')
|
||||||
|
|
Loading…
Reference in a new issue