Vue file formating..

This commit is contained in:
Cüneyt Şentürk 2020-01-21 16:24:56 +03:00
parent f0b50b53e8
commit 0876197e35
11 changed files with 13 additions and 34 deletions

View File

@ -38,7 +38,7 @@ const app = new Vue({
params: { params: {
code: currency_code code: currency_code
} }
}) })
.then(response => { .then(response => {
this.money.decimal = response.data.decimal_mark; this.money.decimal = response.data.decimal_mark;
this.money.thousands = response.data.thousands_separator; this.money.thousands = response.data.thousands_separator;

View File

@ -12,9 +12,6 @@ import DashboardPlugin from './../../plugins/dashboard-plugin';
import Global from './../../mixins/global'; import Global from './../../mixins/global';
import Form from './../../plugins/form';
import BulkAction from './../../plugins/bulk-action';
// plugin setup // plugin setup
Vue.use(DashboardPlugin); Vue.use(DashboardPlugin);
@ -24,9 +21,4 @@ const app = new Vue({
mixins: [ mixins: [
Global Global
], ],
data: function () {
return {
}
}
}); });

View File

@ -28,9 +28,4 @@ const app = new Vue({
mixins: [ mixins: [
Global Global
], ],
data: function () {
return {
}
}
}); });

View File

@ -13,9 +13,6 @@ import DashboardPlugin from './../../plugins/dashboard-plugin';
import Global from './../../mixins/global'; import Global from './../../mixins/global';
import Form from './../../plugins/form';
import BulkAction from './../../plugins/bulk-action';
// plugin setup // plugin setup
Vue.use(DashboardPlugin); Vue.use(DashboardPlugin);
@ -25,9 +22,4 @@ const app = new Vue({
mixins: [ mixins: [
Global Global
], ],
data: function () {
return {
}
}
}); });

View File

@ -101,7 +101,7 @@ const app = new Vue({
params: { params: {
code: currency_code code: currency_code
} }
}) })
.then(response => { .then(response => {
this.form.currency_code = response.data.currency_code; this.form.currency_code = response.data.currency_code;
this.form.currency_rate = response.data.currency_rate; this.form.currency_rate = response.data.currency_rate;
@ -162,7 +162,7 @@ const app = new Vue({
type: 'bill', type: 'bill',
currency_code: this.form.currency_code currency_code: this.form.currency_code
} }
}) })
.then(response => { .then(response => {
this.items = response.data; this.items = response.data;
@ -230,7 +230,7 @@ const app = new Vue({
params: { params: {
account_id: account_id account_id: account_id
} }
}) })
.then(response => { .then(response => {
this.transaction_form.currency = response.data.currency_name; this.transaction_form.currency = response.data.currency_name;
this.transaction_form.currency_code = response.data.currency_code; this.transaction_form.currency_code = response.data.currency_code;

View File

@ -46,7 +46,7 @@ const app = new Vue({
column: 'email', column: 'email',
value : this.form.email value : this.form.email
} }
}) })
.then(response => { .then(response => {
if (response.data.errors) { if (response.data.errors) {
if (response.data.data) { if (response.data.data) {

View File

@ -101,7 +101,7 @@ const app = new Vue({
params: { params: {
code: currency_code code: currency_code
} }
}) })
.then(response => { .then(response => {
this.form.currency_code = response.data.currency_code; this.form.currency_code = response.data.currency_code;
this.form.currency_rate = response.data.currency_rate; this.form.currency_rate = response.data.currency_rate;
@ -162,7 +162,7 @@ const app = new Vue({
type: 'invoice', type: 'invoice',
currency_code: this.form.currency_code currency_code: this.form.currency_code
} }
}) })
.then(response => { .then(response => {
this.items = response.data; this.items = response.data;
@ -229,7 +229,7 @@ const app = new Vue({
params: { params: {
account_id: account_id account_id: account_id
} }
}) })
.then(response => { .then(response => {
this.transaction_form.currency = response.data.currency_name; this.transaction_form.currency = response.data.currency_name;
this.transaction_form.currency_code = response.data.currency_code; this.transaction_form.currency_code = response.data.currency_code;

View File

@ -42,7 +42,7 @@ const app = new Vue({
params: { params: {
code: code code: code
} }
}) })
.then(response => { .then(response => {
this.form.rate = response.data.rate; this.form.rate = response.data.rate;
this.form.precision = response.data.precision; this.form.precision = response.data.precision;

View File

@ -32,8 +32,8 @@ const app = new Vue({
} }
}, },
methods:{ methods: {
taxRateReplace(){ taxRateReplace() {
this.form.rate = this.form.rate.replace(',', '.'); this.form.rate = this.form.rate.replace(',', '.');
}, },
} }

View File

@ -94,7 +94,7 @@ const app = new Vue({
params: { params: {
code: code code: code
} }
}) })
.then(response => { .then(response => {
this.form.rate = response.data.rate; this.form.rate = response.data.rate;
this.form.precision = response.data.precision; this.form.precision = response.data.precision;

View File

@ -38,6 +38,6 @@ const app = new Vue({
methods: { methods: {
next() { next() {
if (this.active++ > 3); if (this.active++ > 3);
} }
} }
}); });