From 997835429a1d66643364091e8437ebbbeb8ff97a Mon Sep 17 00:00:00 2001
From: zenglf <18502938215@163.com>
Date: 星期四, 28 九月 2023 14:09:58 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into develop

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

diff --git a/src/views/mdc/base/modules/EquipmentList/UserModal.vue b/src/views/mdc/base/modules/EquipmentList/UserModal.vue
index 8b6dc30..a16aa3c 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="visible=false"
     :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">
@@ -56,9 +55,6 @@
           <a-col :span="12">
             <a-form-model-item label="杞﹂棿鍒嗛厤" :labelCol="labelCol" :wrapperCol="wrapperCol"  v-show="!productionDisabled" ref="selectedProduction"  prop="selectedProduction">
               <!--<j-select-equipment-production  v-decorator="['selectedProduction',{rules:[{required:true,message:'璇烽�夋嫨杞﹂棿!'}]}]" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production>-->
-
-
-
               <j-select-equipment-production :disabled="disableSubmit"  v-model="model.selectedProduction" :multi="false" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-equipment-production>
             </a-form-model-item>
 
@@ -148,13 +144,13 @@
 
 
     <div class="drawer-bootom-button" v-show="!disableSubmit">
-      <a-popconfirm title="纭畾鏀惧純缂栬緫锛�" @confirm="handleCancel" okText="纭畾" cancelText="鍙栨秷">
+      <a-popconfirm title="纭畾鏀惧純鎿嶄綔锛�" @confirm="close" 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 +199,7 @@
           equipmentId:
             [
               {
-              required: true, message: '璇烽�夋嫨璁惧缂栧彿!',
+              required: true, message: '璇烽�夋嫨璁惧缂栧彿!'
               },
               // {
               // validator: this.validatequipmentId
@@ -349,6 +345,7 @@
         that.visible = true;
         //鏍规嵁灞忓箷瀹藉害鑷�傚簲鎶藉眽瀹藉害
         this.resetScreenSize();
+
         // that.userId = record.id;
         // console.log(record)
         that.model = Object.assign({}, record);
@@ -451,8 +448,6 @@
         })
       },
 
-
-
       refresh () {
         this.userId=""
         this.nextDepartOptions=[];
@@ -551,11 +546,6 @@
       //     }
       //   })
       // },
-      handleCancel () {
-        this.close()
-      },
-
-
 
       // validatequipmentId(rule, value, callback){
       //   if(!value){
@@ -589,8 +579,15 @@
         }else{
           this.departIdShow=true;
         }
+      },
+      /**
+       * 缂栬緫鎴栨煡鐪嬭鎯呮暟鎹椂娓呴櫎鎶藉眽琛ㄥ崟楠岃瘉
+       */
+      removeValidate(){
+        this.$refs.form.clearValidate()
       }
-    }
+    },
+
   }
 </script>
 

--
Gitblit v1.9.3