Change dashboardPlugin location,

This commit is contained in:
Cüneyt Şentürk
2020-01-03 12:10:07 +03:00
parent 8c8a375c43
commit 38ad7f7f0a
37 changed files with 194 additions and 69 deletions

View File

@ -1,7 +1,3 @@
import Vue from 'vue';
import DashboardPlugin from './../plugins/dashboard-plugin';
import axios from 'axios';
import AkauntingSearch from './../components/AkauntingSearch';
@ -18,9 +14,6 @@ import NProgressAxios from './../plugins/nprogress-axios';
import {VMoney} from 'v-money';
import { Select, Option } from 'element-ui';
// plugin setup
Vue.use(DashboardPlugin);
export default {
components: {
AkauntingSearch,
@ -35,11 +28,6 @@ export default {
data: function () {
return {
addNew: {
modal: false,
title: '',
html: null
},
confirm: {
url: '',
title: '',
@ -180,50 +168,6 @@ export default {
this.confirm.show = false;
},
onNewItem(event) {
console.log(event);
axios.get(event.path)
.then(response => {
this.addNew.modal = true;
this.addNew.title = event.title;
this.addNew.html = response.data.html;
/*
this.selectOptions[3] = value;
let newOption = {
value: "3",
currentLabel: value,
label: value
};
this.$children[0].$children[0].handleOptionSelect(newOption);
this.$children[0].$children[0].onInputChange('3');
this.real_model = "3";
this.$emit('change', this.real_model);
*/
})
.catch(e => {
this.errors.push(e)
})
.finally(function () {
// always executed
});
},
onCancelNewItem() {
this.addNew.modal = false;
this.addNew.title = null;
this.addNew.html = null;
},
onNewItemSubmit() {
document.querySelector('.modal-body form').submit()
},
// Change bank account get money and currency rate
onChangeAccount(account_id) {
axios.get(url + '/banking/accounts/currency', {