mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-03-06 19:29:10 +08:00
【功能移除】菜单管理:全部展开/关闭,没有使用场景,所以清理掉
This commit is contained in:
parent
ce60f630c4
commit
09da6579b6
@ -53,10 +53,6 @@
|
|||||||
<Icon class="mr-5px" icon="ep:plus" />
|
<Icon class="mr-5px" icon="ep:plus" />
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button plain type="danger" @click="toggleExpandAll">
|
|
||||||
<Icon class="mr-5px" icon="ep:sort" />
|
|
||||||
展开/折叠
|
|
||||||
</el-button>
|
|
||||||
<el-button plain @click="refreshMenu">
|
<el-button plain @click="refreshMenu">
|
||||||
<Icon class="mr-5px" icon="ep:refresh" />
|
<Icon class="mr-5px" icon="ep:refresh" />
|
||||||
刷新菜单缓存
|
刷新菜单缓存
|
||||||
@ -79,7 +75,6 @@
|
|||||||
:width="width"
|
:width="width"
|
||||||
:height="height"
|
:height="height"
|
||||||
expand-column-key="name"
|
expand-column-key="name"
|
||||||
:default-expanded-keys="isExpandAll ? list.map((item) => item.name) : []"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-auto-resizer>
|
</el-auto-resizer>
|
||||||
@ -210,7 +205,6 @@ const queryParams = reactive({
|
|||||||
status: undefined
|
status: undefined
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
const isExpandAll = ref(false) // 是否展开,默认全部折叠
|
|
||||||
|
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
@ -240,11 +234,6 @@ const openForm = (type: string, id?: number, parentId?: number) => {
|
|||||||
formRef.value.open(type, id, parentId)
|
formRef.value.open(type, id, parentId)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 展开/折叠操作 */
|
|
||||||
const toggleExpandAll = () => {
|
|
||||||
isExpandAll.value = !isExpandAll.value
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 刷新菜单缓存按钮操作 */
|
/** 刷新菜单缓存按钮操作 */
|
||||||
const refreshMenu = async () => {
|
const refreshMenu = async () => {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user