提交 cf9727e7 编写于 作者: changdi.hao's avatar changdi.hao

优化时间判断

上级 afb627dd
...@@ -501,7 +501,7 @@ export default { ...@@ -501,7 +501,7 @@ export default {
if ( row.appointBeginTime && row.appointEndTime) { if ( row.appointBeginTime && row.appointEndTime) {
let bTime = new Date(row.appointBeginTime) let bTime = new Date(row.appointBeginTime)
let eTime = new Date(row.appointEndTime) let eTime = new Date(row.appointEndTime)
if ((new Date() - bTime) && (eTime - new Date())) { if ((new Date() - bTime) > 0 && (eTime - new Date()) > 0) {
this.$confirm(' 当前问诊正在进行中,一旦将立即关闭进行中的问诊且无法恢复,确定继续更改时间?', '提醒', { this.$confirm(' 当前问诊正在进行中,一旦将立即关闭进行中的问诊且无法恢复,确定继续更改时间?', '提醒', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册