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

    <cost-model-msg-list :id="id"></cost-model-msg-list>

    <template slot="footer">
      <a-button @click="handleCancel">关闭</a-button>
    </template>
  </j-modal>
</template>

<script>
import CostModelMsgList from '../../costModelMsg/CostModelMsgList.vue';

  export default {
    name: 'CostModelJgModal',
    components: {
        CostModelMsgList
    },
    data () {
      return {
        id: null,
        title: '警告明细',
        width: '60%',
        visible: false,
        disableSubmit: false
      }
    },
    methods: {
      show() {
        this.visible = true
        // this.$refs.wxf.getList(this.id, this.columnType)
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      },
    }
  }
</script>