src/views/system/menu.vue
@@ -1,6 +1,13 @@
<template>
  <basic-container class="menu">
  <basic-container
    :class="[
      'menu',
      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
    ]"
  >
    <avue-crud
      class="tablesss"
      :option="option"
      :table-loading="loading"
      :data="data"
@@ -72,6 +79,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      option: {
        lazy: true,
@@ -88,6 +96,7 @@
        viewBtn: true,
        menuWidth: 400,
        dialogClickModal: false,
        ...this.$store.state.control.clearOtherBut,
        column: [
          {
            label: "菜单名称",
@@ -273,6 +282,9 @@
      return ids.join(",");
    },
  },
  mounted() {
    this.$store.commit("setWindowSizeHeightAdd");
  },
  methods: {
    initData() {
      getMenuTree().then((res) => {
@@ -418,6 +430,7 @@
      getLazyList(this.parentId, Object.assign(params, this.query)).then(
        (res) => {
          this.data = res.data.data;
          this.$store.commit("setWindowSizeHeightAdd");
          this.loading = false;
          this.selectionClear();
        }
@@ -433,5 +446,4 @@
};
</script>
<style>
</style>
<style></style>