Explorar el Código

1007 列表自定义按钮打开对话框后无法取消

cyy hace 2 años
padre
commit
cb659255a7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/business/platform/data/templaterender/preview/index.vue

+ 5 - 1
src/business/platform/data/templaterender/preview/index.vue

@@ -165,7 +165,11 @@ export default {
         this.selectedValue = this.multiple ? [] : {}
         this.setSelectRow()
       }
-      this.$emit('action-event', key, JSON.parse(JSON.stringify(this.selectedValue)))
+      this.$emit('close', false)
+      if(typeof this.selectedValue != 'undefined'){
+        this.$emit('action-event', key, JSON.parse(JSON.stringify(this.selectedValue)))
+      }
+      
     },
     setSelectRow() {
       if (this.$refs['dataTemplate'] && this.$refs['dataTemplate'].setSelectRow) {