From 70b734a3a3641f7a10f59ee4669d1cd44200f59d Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期一, 18 九月 2023 17:18:21 +0800
Subject: [PATCH] 1、新增mdc页面接口文件 2、优化功能

---
 src/views/mdc/base/modules/EquipmentList/UserModal.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/views/mdc/base/modules/EquipmentList/UserModal.vue b/src/views/mdc/base/modules/EquipmentList/UserModal.vue
index 8b6dc30..4a2268f 100644
--- a/src/views/mdc/base/modules/EquipmentList/UserModal.vue
+++ b/src/views/mdc/base/modules/EquipmentList/UserModal.vue
@@ -1,12 +1,11 @@
 <template>
-  <a-drawer
+  <a-modal
     :title="title"
     :maskClosable="true"
     :width="drawerWidth"
-    placement="right"
-    :closable="true"
-    @close="handleCancel"
+    @cancel="handleCancel"
     :visible="visible"
+    :footer="null"
     style="height: 100%;overflow: auto;padding-bottom: 53px;">
 
     <template slot="title">
@@ -26,7 +25,7 @@
             <a-form-model-item label="璁惧缂栫爜" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentId">
               <a-input-search :readOnly="true"
                               v-model="model.equipmentId"
-                              :disabled="disSeach"   @search="deviceSearch" enter-button placeholder='璇烽�夋嫨璁惧缂栫爜'/>
+                              :disabled="disSeach"   @search="deviceSearch" enter-button placeholder='璇烽�夋嫨璁惧缂栫爜' />
             </a-form-model-item>
           </a-col>
           <a-col :span="12">
@@ -148,13 +147,13 @@
 
 
     <div class="drawer-bootom-button" v-show="!disableSubmit">
-      <a-popconfirm title="纭畾鏀惧純缂栬緫锛�" @confirm="handleCancel" okText="纭畾" cancelText="鍙栨秷">
+      <a-popconfirm title="纭畾鏀惧純鎿嶄綔锛�" @confirm="handleCancel" okText="纭畾" cancelText="鍙栨秷">
         <a-button style="margin-right: .8rem">鍙栨秷</a-button>
       </a-popconfirm>
       <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">鎻愪氦</a-button>
     </div>
     <device-list-model ref="deviceListModel" @sendSelectionRows="getDeviceRows"></device-list-model>
-  </a-drawer>
+  </a-modal>
 
 </template>
 
@@ -203,7 +202,7 @@
           equipmentId:
             [
               {
-              required: true, message: '璇烽�夋嫨璁惧缂栧彿!',
+              required: true, message: '璇烽�夋嫨璁惧缂栧彿!'
               },
               // {
               // validator: this.validatequipmentId
@@ -349,6 +348,7 @@
         that.visible = true;
         //鏍规嵁灞忓箷瀹藉害鑷�傚簲鎶藉眽瀹藉害
         this.resetScreenSize();
+
         // that.userId = record.id;
         // console.log(record)
         that.model = Object.assign({}, record);
@@ -451,8 +451,6 @@
         })
       },
 
-
-
       refresh () {
         this.userId=""
         this.nextDepartOptions=[];
@@ -554,9 +552,6 @@
       handleCancel () {
         this.close()
       },
-
-
-
       // validatequipmentId(rule, value, callback){
       //   if(!value){
       //     callback()
@@ -589,8 +584,15 @@
         }else{
           this.departIdShow=true;
         }
+      },
+      /**
+       * 缂栬緫鎴栨煡鐪嬭鎯呮暟鎹椂娓呴櫎鎶藉眽琛ㄥ崟楠岃瘉
+       */
+      removeValidate(){
+        this.$refs.form.clearValidate()
       }
-    }
+    },
+
   }
 </script>
 

--
Gitblit v1.9.3