兴安优化-车场不重复添加设备

This commit is contained in:
zc
2025-12-17 09:56:03 +08:00
parent 9c0f7a1d19
commit 851adeccd2
4 changed files with 56 additions and 4 deletions

View File

@@ -575,8 +575,10 @@ export default {
},
/** 提交按钮 */
submitForm() {
if(this.form.value2!=null){
this.form.segTime=this.form.value2[0]+"-"+this.form.value2[1];
if (this.form.value2 != null) {
this.form.segTime = this.form.value2[0] + "-" + this.form.value2[1];
} else {
delete this.form.segTime;
}
this.$refs["form"].validate(valid => {
if (valid) {