<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="航班号" prop="flight">
            <a-input v-model="form.flight" placeholder="请输入航班号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="航班开始日期" prop="flightTime">
            <a-date-picker
              v-model="form.flightTime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="是否重点航班" prop="startupDisable">
            <a-input v-model="form.startupDisable" placeholder="请输入是否重点航班"/>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel">
        取消
      </a-button>
      <a-button type="primary" @click="submitForm">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import SyncEmergencyFlightAddForm from './SyncEmergencyFlightForm'
export default {
  ...SyncEmergencyFlightAddForm
}
</script>
