landydb 2 сар өмнө
parent
commit
76d02e0c31

+ 2 - 0
src/views/modules/quality/onlinecheck-add-or-update.vue

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

+ 2 - 1
src/views/modules/quality/onlinecheck.vue

@@ -79,7 +79,7 @@
       </el-pagination>
     </template>
     <!-- 弹窗 -->
-    <onlinecheck-add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @onChose="onChose" />
+    <onlinecheck-add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @onChose="onChose" @refreshDataList="getDataList"/>
 
     <onlinecheck-detail v-if="detailVisible" ref="detail" @onChose="onChose" />
 
@@ -228,6 +228,7 @@ export default {
     // 上传
     submitUpload() {
       this.$refs.upload.submit();
+      this.importVisible = false
       this.getDataList()
     },
     // 移除