<template>
  <div class="fixture">
    <avue-crud class="Myavue" :data="data" :option="option"></avue-crud>
  </div>
</template>

<script>

export default {
  name: "",
  props: {},
  components: {},
  data() {
    return {
      data: [
        {
          name: "张三",
          sex: "男",
          num:'1',
          state:'3',
          site:"5",
          type:2,
          ready:3,
          remark:""
        },
        {
          name: "李四",
          sex: "女",
          num:'1',
          state:'3',
          site:"5",
          type:2,
          ready:3,
          remark:""
        },
      ],
      option: {
        align: "center",
        menuAlign: "center",
        menuWidth: 400,
        viewBtn: true,
        stripe:true,
        selection: true,
        index:true,
        menuTitle: "操作",
        addTitle: "保存标题",
        editTitle: "编辑标题",
        viewTitle: "查看标题",
        // searchBtnText: "搜索文案",
        emptyBtnText: "重置",
        // addBtnText: "新增文案",
        addBtnIcon: "el-icon-plus",
        searchMenuPosition:'center',
        searchMenuSpan:6,
        viewBtn:false,
        column: [
          {
            label: "资产编号",
            prop: "name",
            search: true,
          },
          {
            label: "工装名称",
            prop: "sex",
            search: true,
          },
          {
            label: "工装类型",
            prop: "type",
          },
          {
            label: "适配产品代号",
            searchLabelWidth:120,
            prop: "num",
            search: true,
          },
          {
            label: "状态",
            prop: "state",
            search: true,
          },
          {
            label: "已使用次数",
            prop: "ready",
          },
          {
            label: "货号位",
            prop: "site",
            search: true,
          },
          {
            label: "备注",
            prop: "remark",
          },
        ],
      },
    };
  },
  methods: {},
  mounted() {},
  watch: {},
  computed: {},
  filters: {},
};
</script>

<style scoped lang="scss">
.fixture{
  padding: 20px;
  background-color: #fff;
}

</style>
