Create draft show page
This commit is contained in:
43
resources/assets/js/views/banking/accounts.js
vendored
43
resources/assets/js/views/banking/accounts.js
vendored
@ -19,7 +19,7 @@ import BulkAction from './../../plugins/bulk-action';
|
||||
Vue.use(DashboardPlugin);
|
||||
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
el: '#main-body',
|
||||
|
||||
mixins: [
|
||||
Global
|
||||
@ -28,8 +28,47 @@ const app = new Vue({
|
||||
data: function () {
|
||||
return {
|
||||
form: new Form('account'),
|
||||
bulk_action: new BulkAction('accounts')
|
||||
bulk_action: new BulkAction('accounts'),
|
||||
template: {
|
||||
modal: false,
|
||||
title: '',
|
||||
message: '',
|
||||
html: '',
|
||||
errors: new Error()
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
onTemplate() {
|
||||
this.template.modal = true;
|
||||
|
||||
this.transfer_form = new Form('template');
|
||||
|
||||
this.transfer_form.template = this.transfer_form._template;
|
||||
},
|
||||
|
||||
addTemplate() {
|
||||
if (this.transfer_form.template != 1) {
|
||||
|
||||
this.transfer_form.submit();
|
||||
|
||||
this.template.errors = this.transfer_form.errors;
|
||||
}
|
||||
|
||||
this.form.loading = true;
|
||||
|
||||
this.$emit("confirm");
|
||||
},
|
||||
|
||||
closeTemplate() {
|
||||
this.template = {
|
||||
modal: false,
|
||||
title: '',
|
||||
message: '',
|
||||
errors: this.transfer_form.errors
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user