1.0.0-gps.1 • Published 6 years ago

element-starter v1.0.0-gps.1

Weekly downloads
3
License
-
Repository
-
Last release
6 years ago

Element-UI Admin App

Install Steps

# Clone SI Platform repository
$ git clone http://devtools.cooperl.net/gitlab/si-services/platform.git ./si-platform
$ cd metier/industrie/structure/ui/src/main/client

# Download element-starter Vuejs/Element starter
$ wget https://github.com/ElementUI/element-starter/archive/master.zip
$ unzip master.zip
$ cp element-starter-master/* .
$ rm -rf element-starter-master

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:8081
$ npm run dev

# build for production with minification
$ npm run build

Testing

  1. append node. level 2 / 3 / 4

  2. OutilsProduction | Ajouter une usine alors qu'on est déjà en train d'en créer une.

    1. OK : Un message d'avertissement s'affiche "Veuillez valider ou annuler l'ajout d'un nouvel élément"
  3. OutilsProduction | Annuler un ajout en cours
    1. OK : la ligne disparait

Application

Element

Tree Component

# Tree array example
[{
    id: 'usine_1',
    label: 'Lamballe',
    children: [{
        id: 'atelier_1',
        label: 'Atelier 1',
        children: [{
            id: 'ligne_1',
            label: 'Ligne 1',
            children: [
                {
                    id: 'machine_4',
                    label: 'Machine 1',
                    children: []
                }
            ]
        }]
    }]
}]