From b556ddd73e955a6ca3fc905b5a7a1aa210566b49 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 14 二月 2025 14:58:03 +0800
Subject: [PATCH] mdc新增系统类型

---
 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