问题管理修改
This commit is contained in:
@@ -471,10 +471,19 @@ export default {
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
change(value){
|
||||
if(value != this.problemState && this.title == this.$t('edit') && this.problemState){
|
||||
console.log(this.formInline.progressTrackingList)
|
||||
if(value != this.problemState && this.title == this.$t('edit')){
|
||||
if(this.problemState == null || this.problemState == ''){
|
||||
this.problemState = this.$t('emptyc')
|
||||
}
|
||||
let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||
let text = this.userInfo().username + ' ' + time + ' ' + this.$t('Problemstate')+this.$t('by')+ '\'' + this.problemState + '\'' +this.$t('Changeto') + '\'' + value + '\''
|
||||
console.log(this.formInline.progressTrackingList[0])
|
||||
if(JSON.stringify(this.formInline.progressTrackingList[0]) == '{}' || this.formInline.progressTrackingList[0].progressTracking == ''){
|
||||
this.formInline.progressTrackingList.forEach((item,index) => {
|
||||
item.progressTracking = text
|
||||
})
|
||||
return
|
||||
}
|
||||
this.formInline.progressTrackingList.push({progressTracking:text})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user