From a40d8462edbf25418207d2ec212e15d3d15ce9dd Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期一, 31 三月 2025 17:36:58 +0800 Subject: [PATCH] art: 设备管理-保养标准-明细项展示 --- src/views/mdc/base/modules/EquipmentList/UserModal.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/views/mdc/base/modules/EquipmentList/UserModal.vue b/src/views/mdc/base/modules/EquipmentList/UserModal.vue index 5a817ca..a460738 100644 --- a/src/views/mdc/base/modules/EquipmentList/UserModal.vue +++ b/src/views/mdc/base/modules/EquipmentList/UserModal.vue @@ -538,16 +538,20 @@ // if(this.model.userIdentity!==2){ // this.model.departIds=""; // } - let obj - if (!this.model.id) { - this.model.id = this.userId - this.model.systemValue = this.systemValue - obj = addEquipment(this.model) - } else { - this.model.systemValue = this.systemValue - obj = editEquipment(this.model, { - id: this.model.id - }) + if (this.systemValue==null){ + this.$message.warning('璇烽�夋嫨绯荤粺绫诲瀷!'); + return false; + } + let obj; + if(!this.model.id){ + this.model.id = this.userId; + this.model.systemValue=this.systemValue; + obj=addEquipment(this.model); + }else{ + this.model.systemValue=this.systemValue; + obj=editEquipment(this.model,{ + id: this.model.id + }); } obj.then((res) => { if (res.success) { -- Gitblit v1.9.3