<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">

    <j-form-container>
        <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
            <a-row>
            <a-col :span="24">
                <a-form-model-item label="工单状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="submissionGdstatus">
                <j-search-select-tag v-model="model.submissionGdstatus" dict="submission_gdstatus"  placeholder="请选择工单状态"/>
                </a-form-model-item>
            </a-col>
            </a-row>
        </a-form-model>
    </j-form-container>

  </j-modal>
</template>

<script>


  export default {
    name: 'SubmissionModal',
    components: {
    },
    data () {
      return {
        title:'',
        width:800,
        visible: false,
        disableSubmit: false,
        model:{
         },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        confirmLoading: false,
        validatorRules: {
        },
      }
    },
    methods: {
      edit (record) {
        this.visible=true
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
        // this.$refs.realForm.submitForm();
      },
      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>