| | |
| | | </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"> |
| | |
| | | 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"/> |
| | |
| | | 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)// 平台不允许修改删除 |