123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <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>
|