mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
fix update order list when new order is created
This commit is contained in:
@@ -253,7 +253,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col pl-0 pl-md-auto p-r-5">
|
||||
<list-component key="2" section="addressSection" :endpoint="route('api.order.list', id)">
|
||||
<list-component key="2" section="orderSection" :endpoint="route('api.order.list', id)">
|
||||
<template slot="list" slot-scope="{data}">
|
||||
<order-component :data="data" class="b-b b-grey"></order-component>
|
||||
</template>
|
||||
|
||||
@@ -99,11 +99,10 @@
|
||||
},
|
||||
methods:{
|
||||
submitForm(){
|
||||
this.submit((this.route('api.order.create')), 'post', 'order.form', true, true)
|
||||
this.submit((this.route('api.order.create')), 'post', this.section+'.form', true, true)
|
||||
},
|
||||
successHandler(){
|
||||
this.crudSuccess();
|
||||
EventBus.$emit('updateOrders')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user