<template>
  <div id="info-1">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-form :model="info" ref="info" label-width="100px">
            <el-col :span="8">
              <el-form-item label="装备名称" prop="name">
                <el-input v-model="info.name" placeholder="请输入装备名称" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="数量" prop="num">
                <el-input v-model="info.num" placeholder="请输入数量" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="规格" prop="specs">
                <el-input v-model="info.specs" placeholder="请输入规格" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="型号" prop="model">
                <el-input v-model="info.model" placeholder="请输入型号" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="启用日期" prop="enable_date">
                <el-input v-model="info.enable_date" placeholder="请输入启用日期" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="撤销日期" prop="revoke_date">
                <el-input v-model="info.revoke_date" placeholder="请输入撤销日期" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="位置" prop="local">
                <el-input v-model="info.local" type="textarea" rows="2" placeholder="请输入位置" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="备注" prop="remark">
                <el-input v-model="info.remark" type="textarea" rows="2" placeholder="请输入备注" readonly></el-input>
              </el-form-item>
            </el-col>
          </el-form>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info-1',
  props: {
    info: { type: Object },
  },
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped></style>
