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: {
code: currency_code
}
})
})
.then(response => {
this.money.decimal = response.data.decimal_mark;
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 Form from './../../plugins/form';
import BulkAction from './../../plugins/bulk-action';
// plugin setup
Vue.use(DashboardPlugin);
@ -24,9 +21,4 @@ const app = new Vue({
mixins: [
Global
],
data: function () {
return {
}
}
});

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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