src/views/eam/repair/modules/EamReportRepairList/EamReportRepairModal.vue
@@ -22,7 +22,8 @@
            </a-col>
            <a-col :span="customSpan">
              <a-form-model-item label="故障开始时间" prop="faultStartTime">
                <a-date-picker v-model="model.faultStartTime" :allowClear="false" value-format="YYYY-MM-DD"
                <a-date-picker show-time v-model="model.faultStartTime" :allowClear="false"
                               value-format="YYYY-MM-DD HH:mm:ss"
                               style="width:100%"/>
              </a-form-model-item>
            </a-col>
@@ -321,8 +322,8 @@
                    message: '消息',
                    description: res.message
                  })
                  that.$emit('ok')
                  that.close()
                  this.$emit('ok', true)
                  that.close(true)
                } else {
                  that.$notification.warning({
                    message: '消息',
@@ -412,14 +413,22 @@
        }
      },
      close() {
        this.$emit('close')
      /**
       * 点检/二保故障报修填报
       * @param record
       */
      handleRepair(record) {
        this.edit(record)
      },
      close(success = false) {
        this.$emit('close', success)
        this.visible = false
        if (this.$refs.form) this.$refs.form.clearValidate()
      },
      handleCancel() {
        this.close()
      }
        this.close(false)  // 传递取消状态
      },
    }
  }
</script>