Ver Fonte

基础数据-解决误触遮罩层导致弹窗关闭数据清空问题

jingbb há 3 meses atrás
pai
commit
05b3314d9d

+ 1 - 1
src/views/BasicData/components/productCassificationModel.vue

@@ -1,6 +1,6 @@
 <!-- 产品分类-->
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" :title="getTitle" width="550px" @ok="handleSubmit">
+  <BasicModal v-bind="$attrs" @register="registerModal" :title="getTitle" width="550px" @ok="handleSubmit" :maskClosable="false">
     <BasicForm @register="registerForm" @submit="handleSubmit" style="margin-top: 26px" />
   </BasicModal>
 </template>

+ 1 - 1
src/views/baseCode/ProjectArchive/components/BaseProjectArchiveModal.vue

@@ -1,5 +1,5 @@
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit" >
+  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit" :maskClosable="false">
       <BasicForm @register="registerForm" name="BaseProjectArchiveForm" />
   </BasicModal>
 </template>

+ 4 - 0
src/views/baseCode/ShipArchive/BaseShipArchive.data.ts

@@ -174,6 +174,7 @@ export const formSchema: FormSchema[] = [
     componentProps: {
       dictCode: 'ship_type',
       showSearch: true,
+      getPopupContainer: (node) => document.body,
     },
   },
   {
@@ -183,6 +184,7 @@ export const formSchema: FormSchema[] = [
     componentProps: {
       dictCode: 'ship_factory',
       showSearch: true,
+      getPopupContainer: (node) => document.body,
     },
   },
   {
@@ -192,6 +194,8 @@ export const formSchema: FormSchema[] = [
     componentProps: {
       showTime: false,
       valueFormat: 'YYYY-MM',
+      getPopupContainer: (node) => document.body,
+
     },
   },
   {

+ 1 - 1
src/views/baseCode/ShipArchive/components/BaseShipArchiveAccessoriesModal.vue

@@ -1,5 +1,5 @@
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
+  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit" :maskClosable="false">
       <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button> 
       <a-button style="margin-left:5px" type="primary" @click="handleEdit"> 编辑(edit)</a-button> 
       <a-button style="margin-left:5px" type="primary" @click="handleDel"> 删除(delete)</a-button> 

+ 1 - 1
src/views/baseCode/ShipArchive/components/BaseShipArchiveModal.vue

@@ -1,6 +1,6 @@
 <template>
   <div ref="BaseShipRef">
-    <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit"  :getContainer ='()=>$refs.BaseShipRef'>
+    <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit"  :getContainer ='()=>$refs.BaseShipRef' :maskClosable="false">
         <BasicForm @register="registerForm" name="BaseShipArchiveForm" />
     </BasicModal>
   </div>

+ 1 - 1
src/views/baseCode/ShipArchive/components/BaseShipArchiveRelateCustomerModal.vue

@@ -1,5 +1,5 @@
 <template>
-  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" :height="300" @ok="handleSubmit">
+  <BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" :height="300" @ok="handleSubmit" :maskClosable="false">
       <BasicForm @register="registerForm" name="BaseShipArchiveRelateCustomerForm" />
       
        <!-- 子表单区域 -->