Commit e5d1093f authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix : Arrondis dans la synthèse

parent 06eeb7f8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@
        filters: {
          duration(v){
            let h = Math.floor(v);
            let m = v - h;
            let m = Math.round(60 * (v - h));
            return h + "h" +m;
          }
        },
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// This file is imported into
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n// node node_modules/.bin/vue-cli-service build --name TimesheetActivitySynthesis --dest public/js/oscar/dist --no-clean --formats umd,umd-min --target lib src/TimesheetActivitySynthesis.vue\n\nconst STATE_PERIOD = \"period\";\nconst STATE_PERSON = \"person\";\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n    name: 'TimesheetActivitySynthesis',\n\n    props: {\n      initialdata: {\n        default: null,\n        required: true\n      }\n    },\n\n    components: {\n\n    },\n\n    data() {\n        return {\n            loading: null,\n            state: STATE_PERIOD\n        }\n    },\n\n    computed: {\n      synthesis(){\n        return this.initialdata;\n      },\n      facet(){\n        if( this.state == STATE_PERIOD )\n          return this.synthesis.by_periods;\n        else\n          return this.synthesis.by_persons;\n      }\n    },\n\n    filters: {\n      duration(v){\n        let h = Math.floor(v);\n        let m = v - h;\n        return h + \"h\" +m;\n      }\n    },\n\n    methods: {\n\n        fetch(clear = true) {\n            // this.loading = \"Chargement des données\";\n            //\n            // this.$http.get('').then(\n            //     ok => {\n            //         for( let item in ok.body.periods ){\n            //             ok.body.periods[item].open = false;\n            //         }\n            //         this.declarations = ok.body.periods;\n            //         this.declarers = ok.body.declarants;\n            //     },\n            //     ko => {\n            //         this.error = AjaxResolve.resolve('Impossible de charger les données', ko);\n            //     }\n            // ).then(foo => {\n            //     this.loading = false\n            // });\n        }\n    },\n\n    mounted() {\n      console.log('INITIALDATA', this.initialdata);\n        this.fetch(true)\n    }\n});\n\n\n//# sourceURL=webpack://TimesheetActivitySynthesis/./src/TimesheetActivitySynthesis.vue?./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n// node node_modules/.bin/vue-cli-service build --name TimesheetActivitySynthesis --dest public/js/oscar/dist --no-clean --formats umd,umd-min --target lib src/TimesheetActivitySynthesis.vue\n\nconst STATE_PERIOD = \"period\";\nconst STATE_PERSON = \"person\";\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n    name: 'TimesheetActivitySynthesis',\n\n    props: {\n      initialdata: {\n        default: null,\n        required: true\n      }\n    },\n\n    components: {\n\n    },\n\n    data() {\n        return {\n            loading: null,\n            state: STATE_PERIOD\n        }\n    },\n\n    computed: {\n      synthesis(){\n        return this.initialdata;\n      },\n      facet(){\n        if( this.state == STATE_PERIOD )\n          return this.synthesis.by_periods;\n        else\n          return this.synthesis.by_persons;\n      }\n    },\n\n    filters: {\n      duration(v){\n        let h = Math.floor(v);\n        let m = Math.round(60 * (v - h));\n        return h + \"h\" +m;\n      }\n    },\n\n    methods: {\n\n        fetch(clear = true) {\n            // this.loading = \"Chargement des données\";\n            //\n            // this.$http.get('').then(\n            //     ok => {\n            //         for( let item in ok.body.periods ){\n            //             ok.body.periods[item].open = false;\n            //         }\n            //         this.declarations = ok.body.periods;\n            //         this.declarers = ok.body.declarants;\n            //     },\n            //     ko => {\n            //         this.error = AjaxResolve.resolve('Impossible de charger les données', ko);\n            //     }\n            // ).then(foo => {\n            //     this.loading = false\n            // });\n        }\n    },\n\n    mounted() {\n      console.log('INITIALDATA', this.initialdata);\n        this.fetch(true)\n    }\n});\n\n\n//# sourceURL=webpack://TimesheetActivitySynthesis/./src/TimesheetActivitySynthesis.vue?./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// This file is imported into
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n// node node_modules/.bin/vue-cli-service build --name TimesheetActivitySynthesis --dest public/js/oscar/dist --no-clean --formats umd,umd-min --target lib src/TimesheetActivitySynthesis.vue\n\nconst STATE_PERIOD = \"period\";\nconst STATE_PERSON = \"person\";\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n    name: 'TimesheetActivitySynthesis',\n\n    props: {\n      initialdata: {\n        default: null,\n        required: true\n      }\n    },\n\n    components: {\n\n    },\n\n    data() {\n        return {\n            loading: null,\n            state: STATE_PERIOD\n        }\n    },\n\n    computed: {\n      synthesis(){\n        return this.initialdata;\n      },\n      facet(){\n        if( this.state == STATE_PERIOD )\n          return this.synthesis.by_periods;\n        else\n          return this.synthesis.by_persons;\n      }\n    },\n\n    filters: {\n      duration(v){\n        let h = Math.floor(v);\n        let m = v - h;\n        return h + \"h\" +m;\n      }\n    },\n\n    methods: {\n\n        fetch(clear = true) {\n            // this.loading = \"Chargement des données\";\n            //\n            // this.$http.get('').then(\n            //     ok => {\n            //         for( let item in ok.body.periods ){\n            //             ok.body.periods[item].open = false;\n            //         }\n            //         this.declarations = ok.body.periods;\n            //         this.declarers = ok.body.declarants;\n            //     },\n            //     ko => {\n            //         this.error = AjaxResolve.resolve('Impossible de charger les données', ko);\n            //     }\n            // ).then(foo => {\n            //     this.loading = false\n            // });\n        }\n    },\n\n    mounted() {\n      console.log('INITIALDATA', this.initialdata);\n        this.fetch(true)\n    }\n});\n\n\n//# sourceURL=webpack://TimesheetActivitySynthesis/./src/TimesheetActivitySynthesis.vue?./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n// node node_modules/.bin/vue-cli-service build --name TimesheetActivitySynthesis --dest public/js/oscar/dist --no-clean --formats umd,umd-min --target lib src/TimesheetActivitySynthesis.vue\n\nconst STATE_PERIOD = \"period\";\nconst STATE_PERSON = \"person\";\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n    name: 'TimesheetActivitySynthesis',\n\n    props: {\n      initialdata: {\n        default: null,\n        required: true\n      }\n    },\n\n    components: {\n\n    },\n\n    data() {\n        return {\n            loading: null,\n            state: STATE_PERIOD\n        }\n    },\n\n    computed: {\n      synthesis(){\n        return this.initialdata;\n      },\n      facet(){\n        if( this.state == STATE_PERIOD )\n          return this.synthesis.by_periods;\n        else\n          return this.synthesis.by_persons;\n      }\n    },\n\n    filters: {\n      duration(v){\n        let h = Math.floor(v);\n        let m = Math.round(60 * (v - h));\n        return h + \"h\" +m;\n      }\n    },\n\n    methods: {\n\n        fetch(clear = true) {\n            // this.loading = \"Chargement des données\";\n            //\n            // this.$http.get('').then(\n            //     ok => {\n            //         for( let item in ok.body.periods ){\n            //             ok.body.periods[item].open = false;\n            //         }\n            //         this.declarations = ok.body.periods;\n            //         this.declarers = ok.body.declarants;\n            //     },\n            //     ko => {\n            //         this.error = AjaxResolve.resolve('Impossible de charger les données', ko);\n            //     }\n            // ).then(foo => {\n            //     this.loading = false\n            // });\n        }\n    },\n\n    mounted() {\n      console.log('INITIALDATA', this.initialdata);\n        this.fetch(true)\n    }\n});\n\n\n//# sourceURL=webpack://TimesheetActivitySynthesis/./src/TimesheetActivitySynthesis.vue?./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),