🐛fix菜单管理图标列显示异常

This commit is contained in:
不做码农 2023-09-25 13:53:20 +08:00
parent 3dba400a80
commit 98c87425af

View File

@ -45,7 +45,7 @@
</el-row>
<vxe-table
height="600"
:height="tableHeight"
show-overflow
ref="listRef"
:loading="loading"
@ -57,9 +57,12 @@
:scroll-y="{ enabled: true, gt: 20 }"
:data="menuList">
<vxe-column field="menuName" :title="$t('m.menuName')" tree-node width="160"> </vxe-column>
<vxe-column field="menuId" :title="$t('m.menuid')"></vxe-column>
<vxe-column field="icon" :title="$t('m.icon')" align="center" width="60"> </vxe-column>
<vxe-column field="menuId" :title="$t('m.menuid')" width="90"></vxe-column>
<vxe-column field="icon" :title="$t('m.icon')" align="center" width="60">
<template #default="{ row }">
<svg-icon :name="row.icon"></svg-icon>
</template>
</vxe-column>
<vxe-column field="menuType" :title="$t('m.menuType')" align="center" width="80">
<template #default="scope">
<el-tag type="danger" v-if="scope.row.menuType == 'M' && scope.row.isFrame == 1">{{ $t('m.link') }}</el-tag>
@ -367,6 +370,7 @@ proxy.getDicts(dictParams).then((response) => {
})
})
const tableHeight = ref(document.documentElement.scrollHeight - 245 + 'px')
const { queryParams, form, rules, sys_show_hide, sys_normal_disable } = toRefs(state)
/** 查询菜单列表 */
@ -540,12 +544,12 @@ function handleChangeSort(info) {
})
}
// ****************** end **********************
const loadMenu = (row, treeNode, resolve) => {
listMenuById(row.menuId).then((res) => {
loadNodeMap.set(row.menuId, { row, treeNode, resolve })
resolve(res.data)
})
}
// const loadMenu = (row, treeNode, resolve) => {
// listMenuById(row.menuId).then((res) => {
// loadNodeMap.set(row.menuId, { row, treeNode, resolve })
// resolve(res.data)
// })
// }
//
function refreshMenu(pid) {
loading.value = true