index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="router-back menu">
  3. <avue-crud :data="tableData" :option="tableOption"></avue-crud>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: '',
  9. props: {
  10. },
  11. components: {
  12. },
  13. data () {
  14. return {
  15. tableData:[
  16. {
  17. name: "张三",
  18. sex: "男",
  19. num: "1",
  20. state: "3",
  21. site: "5",
  22. type: 2,
  23. ready: 3,
  24. remark: "",
  25. },
  26. {
  27. name: "李四",
  28. sex: "女",
  29. num: "1",
  30. state: "3",
  31. site: "5",
  32. type: 2,
  33. ready: 3,
  34. remark: "",
  35. },
  36. ],
  37. tableOption:{
  38. align: "center",
  39. menuAlign: "center",
  40. menuWidth: 400,
  41. viewBtn: true,
  42. stripe: true,
  43. selection: true,
  44. menuTitle: "操作",
  45. emptyBtnText: "重置",
  46. addBtnIcon: "el-icon-plus",
  47. searchMenuPosition: "center",
  48. searchMenuSpan: 6,
  49. column:[
  50. {
  51. label: "菜单名称",
  52. prop: "name",
  53. search: true,
  54. },
  55. {
  56. label: "图标",
  57. prop: "type",
  58. },
  59. {
  60. label: "排序",
  61. searchLabelWidth: 120,
  62. prop: "num",
  63. },
  64. {
  65. label: "权限标识",
  66. prop: "state",
  67. },
  68. {
  69. label: "组件路径",
  70. prop: "ready",
  71. },
  72. {
  73. label: "状态",
  74. prop: "site",
  75. search: true,
  76. },
  77. ]
  78. }
  79. }
  80. },
  81. methods: {
  82. },
  83. mounted() {
  84. },
  85. watch: {
  86. },
  87. computed: {
  88. },
  89. filters: {
  90. }
  91. }
  92. </script>
  93. <style scoped lang='scss'>
  94. .menu{
  95. padding: 20px;
  96. }
  97. </style>