Commit d9e3685d authored by 李志鸣's avatar 李志鸣

fea(监控大屏): 监控大屏 设备利用率图表 增加判空和时间大小判断

parent f8d0c71c
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
</el-date-picker> </el-date-picker>
<el-button <el-button
type="primary" type="primary"
size="small"> size="small"
@click="doConfirmClick">
确定 确定
</el-button> </el-button>
</div> </div>
...@@ -69,6 +70,18 @@ ...@@ -69,6 +70,18 @@
} }
] ]
}) })
},
// 点击确认按钮
doConfirmClick () {
if (this.startTime !== '' && this.endTime !== '') {
if (this.startTime > this.endTime) {
this.$message.warning('设备利用率图表开始时间不能大于结束时间!')
} else {
console.log('开始时间小于结束时间')
}
} else {
this.$message.warning('设备利用率图表开始时间和结束时间不能为空!')
}
} }
}, },
mounted () { mounted () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment