浏览代码

Fix:排产模版弹窗未关闭问题

liqianyi 2 年之前
父节点
当前提交
d1856cd3db

+ 1 - 1
src/views/modules/production/scheduling-mould-details.vue

@@ -261,8 +261,8 @@ export default {
                     type: 'success',
                     duration: 1500,
                     onClose: () => {
+                      this.onChose()
                       this.$emit('refreshDataList')
-                      this.visible = false
                     }
                   })
                 } else {

+ 2 - 5
src/views/modules/production/scheduling-mould.vue

@@ -1,7 +1,7 @@
 <!-- 排产模板 -->
 <template>
   <div class="production">
-    <template v-if="!detailsVisible">
+    <template v-if="!detailsVisible && !detailsVisible">
       <el-form :inline="true" :model="dataForm" @keyup.enter.native="queryPage()">
         <el-form-item label="产品名称">
           <el-input v-model="dataForm.productName" placeholder="产品名称" clearable/>
@@ -76,7 +76,7 @@
       </el-pagination>
     </template>
     <!-- 弹窗, 新增 / 修改 -->
-    <detail v-if="detailsVisible" ref="details" @close="closeDialogEvent" @refreshDataList="getDataList" @onChose="onChose"/>
+    <detail v-if="detailsVisible" ref="details" @refreshDataList="getDataList" @onChose="onChose"/>
   </div>
 </template>
 
@@ -151,9 +151,6 @@
         this.$nextTick(() => {
           this.$refs.details.init(id, disable, productName)
         })
-      },
-      closeDialogEvent () {
-        this.detailsVisible = false
       }
     }
   }