Merge pull request #1061 from batuhawk/master

Code review for js files
This commit is contained in:
Batuhan Baş 2019-12-31 17:36:51 +03:00 committed by GitHub
commit a5da2cfff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 30 additions and 0 deletions

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('permission'), form: new Form('permission'),

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('user'), form: new Form('user'),

View File

@ -15,15 +15,18 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('account'), form: new Form('account'),
bulk_action: new BulkAction('accounts') bulk_action: new BulkAction('accounts')
} }
}, },
methods:{ methods:{
onChangeCurrency(currency_code) { onChangeCurrency(currency_code) {
axios.get(url + '/settings/currencies/currency', { axios.get(url + '/settings/currencies/currency', {

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('reconciliation'), form: new Form('reconciliation'),

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
} }

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('transfer'), form: new Form('transfer'),

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('company'), form: new Form('company'),

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('report'), form: new Form('report'),

View File

@ -20,6 +20,7 @@ Vue.directive('click-outside', clickOutside);
const search = new Vue({ const search = new Vue({
el: '#global-search', el: '#global-search',
data: function () { data: function () {
return { return {
show: false, show: false,

View File

@ -16,6 +16,7 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('payment'), form: new Form('payment'),

View File

@ -15,9 +15,11 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('vendor'), form: new Form('vendor'),

View File

@ -16,6 +16,7 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],

View File

@ -15,15 +15,18 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('currency'), form: new Form('currency'),
bulk_action: new BulkAction('currencies') bulk_action: new BulkAction('currencies')
} }
}, },
methods:{ methods:{
RateReplace(){ RateReplace(){
this.form.rate = this.form.rate.replace(',', '.'); this.form.rate = this.form.rate.replace(',', '.');

View File

@ -15,15 +15,18 @@ import BulkAction from './../../plugins/bulk-action';
const app = new Vue({ const app = new Vue({
el: '#app', el: '#app',
mixins: [ mixins: [
Global Global
], ],
data: function () { data: function () {
return { return {
form: new Form('tax'), form: new Form('tax'),
bulk_action: new BulkAction('taxes') bulk_action: new BulkAction('taxes')
} }
}, },
methods:{ methods:{
taxRateReplace(){ taxRateReplace(){
this.form.rate = this.form.rate.replace(',', '.'); this.form.rate = this.form.rate.replace(',', '.');