jinlin
2024-09-06 3ecb68c427a627ad8e90d8c555655e7724be2d96
web/packages/views/modules/sys/menu.vue
@@ -9,9 +9,8 @@
            </el-form>
            <el-table v-loading="table.dataLoading" :data="table.dataList" border row-key="id"
                      class="myTable"
                      :cell-style="cellStyle"
                      v-adaptive="{bottomOffset:50}"
                      height="650px"
                      v-adaptive="{bottomOffset:30}"
                      height="100px"
                      :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
              <el-table-column :label="$t('menu.name')" align="left" min-width="250" prop="name"/>
              <el-table-column :label="$t('menu.icon')" align="center" min-width="60" prop="icon">
@@ -25,6 +24,7 @@
                                    prop="type"/>
              <el-table-column :label="$t('menu.sort')" align="center" min-width="60" prop="sort"/>
              <el-table-column align="center" label="显示" min-width="60" prop="showMenu"/>
              <el-table-column align="center" label="不刷新" min-width="60" prop="isRefresh"/>
              <el-table-column :label="$t('menu.url')" :show-overflow-tooltip="true" prop="url" width="400"/>
              <el-table-column :label="$t('menu.permissions')" :show-overflow-tooltip="true" prop="permissions"
                               width="150"/>
@@ -53,11 +53,6 @@
    AddOrUpdate
  },
  methods: {
    cellStyle({column}) {
      if (column.label === '名称') {
        return 'text-align: left !important;'
      }
    },
    isNotPlatform(row) {
      return true;
      return !this.$equalsIgnoreType(row.type, this.$dict.MenuType.PLATFORM)// 平台不允许修改删除