fix:修改silence选择具体时间 时间格式不对的问题

This commit is contained in:
zhangyu
2021-03-16 17:46:58 +08:00
parent afe1eae38e
commit 620a30489d
2 changed files with 6 additions and 0 deletions

View File

@@ -2476,4 +2476,7 @@ li{
position: fixed !important;
visibility: hidden;
}
/deep/ .el-tooltip{
outline: none;
}

View File

@@ -263,6 +263,7 @@
message: '结束时间必须大于开始时间',
type: 'error'
});
return;
}
let params={...this.editAlertSilence};
delete params.time;
@@ -329,8 +330,10 @@
dateChange(val,type){
console.log(val)
if(type==='startAt'){
this.editAlertSilence.startAt=bus.timeFormate(new Date(val), 'yyyy-MM-dd hh:mm:ss');
this.startAtTamp=new Date(val).getTime();
} else if(type==='endAt'){
this.editAlertSilence.endAt=bus.timeFormate(new Date(val), 'yyyy-MM-dd hh:mm:ss');
this.endAtTamp=new Date(val).getTime();
}
this.$forceUpdate