- added fields: longdescr, hoursworked, hoursplanned

This commit is contained in:
Paolo Arena
2019-03-30 02:57:40 +01:00
parent de117d55e6
commit 38b3405664
33 changed files with 753 additions and 326 deletions

View File

@@ -0,0 +1,36 @@
import Vue from 'vue'
import { Component, Prop, Watch } from 'vue-property-decorator'
import { tools } from '@src/store/Modules/tools'
@Component({
name: 'CProgress'
})
export default class CProgress extends Vue {
public cpr_colProgress: string = 'blue'
public cpr_percProgress: string = 'cpr-percProgress'
@Watch('progressval')
public changeprogress() {
this.updateclasses()
}
@Prop({ required: true }) public progressval: number
@Prop() public descr: string
public updateclasses() {
this.cpr_colProgress = tools.getProgressColor(this.progressval)
}
get getdescr(){
if (!!this.descr) {
return this.descr + ' : '
}
}
public create() {
this.updateclasses()
}
}