Updated Project calculation for hours and progress.
This commit is contained in:
@@ -10,6 +10,7 @@ import { tools } from '@src/store/Modules/tools'
|
||||
export default class CProgress extends Vue {
|
||||
public cpr_colProgress: string = 'blue'
|
||||
public cpr_percProgress: string = 'cpr-percProgress'
|
||||
public progressvalinternal: number = 0
|
||||
|
||||
@Watch('progressval')
|
||||
public changeprogress() {
|
||||
@@ -18,12 +19,24 @@ export default class CProgress extends Vue {
|
||||
|
||||
@Prop({ required: true }) public progressval: number
|
||||
@Prop() public descr: string
|
||||
@Prop({ default: false }) public slider: boolean
|
||||
|
||||
public updateclasses() {
|
||||
this.cpr_colProgress = tools.getProgressColor(this.progressval)
|
||||
@Watch('progressval')
|
||||
public valchanged(value) {
|
||||
this.progressvalinternal = value
|
||||
}
|
||||
|
||||
get getdescr(){
|
||||
public updateclasses() {
|
||||
this.cpr_colProgress = tools.getProgressColor(this.progressvalinternal)
|
||||
}
|
||||
|
||||
public setchange(value) {
|
||||
this.progressvalinternal = value
|
||||
console.log('setchange', this.progressvalinternal)
|
||||
this.$emit('input', this.progressvalinternal)
|
||||
}
|
||||
|
||||
get getdescr() {
|
||||
if (!!this.descr) {
|
||||
return this.descr + ' : '
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user