From 102c7d7dc9f5af873f19c86a0d17d5d6addcbc32 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期二, 19 九月 2023 17:39:28 +0800
Subject: [PATCH] 项目优化

---
 src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue |   71 ++++++++++++++++++++++++++---------
 1 files changed, 53 insertions(+), 18 deletions(-)

diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
index dc99816..89fc233 100644
--- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
+++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue
@@ -33,10 +33,10 @@
     </div>
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
     <div class="table-operator" style="display: inline;">
-      <a-button v-has="'user.addrequip'" @click="handleAdd" type="primary" icon="plus">缁翠慨鏂板
+      <a-button  @click="handleAdd" type="primary" icon="plus">鏂板
       </a-button>
-      <a-button v-has="'user.add'"  @click="handleAddXIU" type="primary" icon="plus">浼戠彮鏂板
-      </a-button>
+      <!--<a-button v-has="'user.add'"  @click="handleAddXIU" type="primary" icon="plus">浼戠彮鏂板-->
+      <!--</a-button>-->
     </div>
 
     <!-- table鍖哄煙-begin -->
@@ -64,9 +64,9 @@
     </div>
     <!-- table鍖哄煙-end -->
     <device-repair-model ref="modalForm" @ok="modalFormOk"></device-repair-model>
-    <device-repair-model-add  ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add>
+    <!--<device-repair-model-add  ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add>-->
     <device-repair-model-edit ref="modalFormedit" @ok="modalFormOk"></device-repair-model-edit>
-    <!--<repair-model ref="repairModelFrom" @ok="modalFormOk"></repair-model>-->
+    <!--<repair-model ref="repairModelFrom" @ok="modalFormOk">0</repair-model>-->
 
   </a-card>
 </template>
@@ -279,7 +279,11 @@
             }
             //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -324,7 +328,11 @@
               this.ipagination.total = 0;
             }
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -362,7 +370,11 @@
               this.ipagination.total = 0;
             }
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -404,7 +416,11 @@
               this.ipagination.total = 0;
             }
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -438,7 +454,11 @@
             }
             //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -460,23 +480,34 @@
           if (res.success) {
             //閲嶆柊璁$畻鍒嗛〉闂
             that.reCalculatePage(1)
-            that.$message.success(res.message);
+            // that.$message.success(res.message);
+            that.$notification.success({
+              message:'娑堟伅',
+              description:res.message
+            });
             that.searchQuery();
           } else {
-            that.$message.warning(res.message);
+            // that.$message.warning(res.message);
+            that.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         });
       },
+      /**
+       * 鎵撳紑鏂板缁翠慨鎴栦紤鐝脊绐�
+       */
       handleAdd() {
         this.$refs.modalForm.add(this.node)
         this.$refs.modalForm.title = '鏂板'
         this.$refs.modalForm.disableSubmit = false
       },
-      handleAddXIU() {
-        this.$refs.modalFormadd.add()
-        this.$refs.modalFormadd.title = '鏂板'
-        this.$refs.modalFormadd.disableSubmit = false
-      },
+      // handleAddXIU() {
+      //   this.$refs.modalFormadd.add()
+      //   this.$refs.modalFormadd.title = '鏂板'
+      //   this.$refs.modalFormadd.disableSubmit = false
+      // },
       pQuery(parentId) {
         this.queryParam.parentId = parentId[0]
         if(this.selectedRowKeys.length >= 1) {
@@ -497,7 +528,11 @@
               _this.equipment = res.result
               _this.searchQuery()
             } else {
-              _this.$message.warning('璇烽厤缃澶囷紒')
+              // _this.$message.warning('璇烽厤缃澶囷紒')
+              _this.$notification.warning({
+                message:'娑堟伅',
+                description:"璇烽厤缃澶�!"
+              });
             }
           }
         })

--
Gitblit v1.9.3