优化完成设备管理和培训模块的加入到devlopment
This commit is contained in:
parent
b44bcebf0f
commit
9be59bee8a
|
@ -44,17 +44,7 @@ export function getFilesApi(folderId: string) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取文件夹列表
|
|
||||||
export function getFolderListApi(params: { page: number; pageSize: number; folderName?: string }) {
|
|
||||||
return request<{
|
|
||||||
list: KnowledgeFolder[]
|
|
||||||
total: number
|
|
||||||
}>({
|
|
||||||
url: '/knowledge/folder-list',
|
|
||||||
method: 'get',
|
|
||||||
params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 创建文件夹
|
// 创建文件夹
|
||||||
export function createFolderApi(data: { name: string; parentId?: string }) {
|
export function createFolderApi(data: { name: string; parentId?: string }) {
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<MenuIcon
|
<MenuIcon
|
||||||
:svg-icon="onlyOneChild?.meta?.svgIcon || item?.meta?.svgIcon"
|
:icon="onlyOneChild?.meta?.svgIcon || onlyOneChild?.meta?.icon || item?.meta?.svgIcon || item?.meta?.icon"
|
||||||
:icon="onlyOneChild?.meta?.icon || item?.meta?.icon"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<a-tooltip :content="onlyOneChild?.meta?.title" position="right">
|
<a-tooltip :content="onlyOneChild?.meta?.title" position="right">
|
||||||
|
@ -22,7 +21,7 @@
|
||||||
|
|
||||||
<a-sub-menu v-else v-bind="attrs" :key="item.path" :title="item?.meta?.title">
|
<a-sub-menu v-else v-bind="attrs" :key="item.path" :title="item?.meta?.title">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<MenuIcon :icon="item?.meta?.icon" />
|
<MenuIcon :icon="item?.meta?.svgIcon || item?.meta?.icon" />
|
||||||
</template>
|
</template>
|
||||||
<MenuItem v-for="child in item.children" :key="child.path" :item="child"></MenuItem>
|
<MenuItem v-for="child in item.children" :key="child.path" :item="child"></MenuItem>
|
||||||
</a-sub-menu>
|
</a-sub-menu>
|
||||||
|
|
|
@ -70,6 +70,6 @@ declare global {
|
||||||
// for type re-export
|
// for type re-export
|
||||||
declare global {
|
declare global {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
|
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
|
||||||
import('vue')
|
import('vue')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue