<template>
<div>
  <div>waaaaaaaaaaaa</div>
        <!-- <ods-form class="asset-info-form" label-position="top" :model="assetInfo" ref="assetInfo">
          <ods-row :gutter="32">
            <ods-col :span="8">
              <ods-form-item label="Id" prop="id">
                <ods-input v-model="assetInfo.id" disabled></ods-input>
              </ods-form-item>
            </ods-col>
            <ods-col :span="8">
              <ods-form-item label="Tipo" prop="type">
                <ods-input v-model="assetInfo.type" disabled></ods-input>
              </ods-form-item>
            </ods-col>
            <ods-col :span="8">
              <ods-form-item label="Grupo" prop="group">
                <ods-input v-model="assetInfo.group" disabled></ods-input>
              </ods-form-item>
            </ods-col>
          </ods-row>
          <ods-row :gutter="32">
            <ods-col :span="8">
              <ods-form-item label="Estado" prop="state">
                <ods-input v-model="assetInfo.state" type="email" disabled></ods-input>
              </ods-form-item>
            </ods-col>
            <ods-col :span="16">
              <ods-form-item label="Ubicación" prop="location">
                <ods-input v-model="assetInfo.location" disabled></ods-input>
              </ods-form-item>
            </ods-col>
          </ods-row>
        </ods-form> -->
      </div>

</template>

<script>
// import moment from 'moment'
import {mapGetters, mapActions} from 'vuex';

export default {
  name: 'alert-detail',
  components: {},
  data() {
    return {
      isLoading: true,
      id: '',
    };
  },
  mounted() {
    if (this.$route.params.id) {
      this.id = parseInt(this.$route.params.id, 10);
      console.log(this.id);
      this.fetchWarningById(this.id).then(response => console.log(response));
    }
  },
  computed: {...mapGetters(['currentAsset'])},
  methods: {
    ...mapActions([
      'fetchWarningById',
    ]),
  },
};

</script>
