|
-
-
-
- var app = new Vue({
- el: '#app-producer-update',
- data() {
- return Object.assign({
- currentSection: this.getInitialSection(),
- sectionsArray: [
- {
- name: 'general',
- nameDisplay: 'Général',
- isAdminSection: 0
- },
- {
- name: 'prise-commande',
- nameDisplay: 'Commandes',
- isAdminSection: 0
- },
- {
- name: 'exports',
- nameDisplay: 'Exports',
- isAdminSection: 0
- },
- {
- name: 'credit-payment',
- nameDisplay: 'Crédit',
- isAdminSection: 0
- },
- {
- name: 'facturation',
- nameDisplay: 'Facturation',
- isAdminSection: 0
- },
- {
- name: 'abonnements',
- nameDisplay: 'Abonnements',
- isAdminSection: 0
- },
- {
- name: 'tableau-bord',
- nameDisplay: 'Tableau de bord',
- isAdminSection: 0
- },
- {
- name: 'infos',
- nameDisplay: 'Informations légales',
- isAdminSection: 0
- },
- {
- name: 'logiciels-caisse',
- nameDisplay: 'Logiciels de caisse',
- isAdminSection: 0
- },
- {
- name: 'software',
- nameDisplay: 'Opendistrib',
- isAdminSection: 0
- }
- ]
- }, window.appInitValues);
- },
- methods: {
- changeSection: function(section) {
- this.currentSection = section.name ;
- },
- getInitialSection: function() {
- var hash = window.location.hash.substring(1);
- if(hash && hash.length) {
- return hash;
- }
-
- return 'general';
- }
- },
- mounted: function() {
-
- }
- });
-
|