mirror of
https://github.com/PlayEdu/backend
synced 2025-06-17 03:07:03 +08:00
素材库优化
This commit is contained in:
parent
feda1feb95
commit
a20c1c6090
@ -6,6 +6,7 @@ export function resourceList(
|
|||||||
sortField: string,
|
sortField: string,
|
||||||
sortAlgo: string,
|
sortAlgo: string,
|
||||||
name: string,
|
name: string,
|
||||||
|
type: string,
|
||||||
categoryIds: string
|
categoryIds: string
|
||||||
) {
|
) {
|
||||||
return client.get("/backend/v1/resource/index", {
|
return client.get("/backend/v1/resource/index", {
|
||||||
@ -23,6 +24,7 @@ export function createResource(type: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function storeResource(
|
export function storeResource(
|
||||||
|
type: string,
|
||||||
categoryId: number,
|
categoryId: number,
|
||||||
name: string,
|
name: string,
|
||||||
extension: string,
|
extension: string,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export * from "./footer";
|
export * from "./footer";
|
||||||
export * from "./header";
|
export * from "./header";
|
||||||
export * from "./leftMenu";
|
export * from "./leftMenu";
|
||||||
export * from "./uploadImageButton";
|
export * from "./upload-image-button";
|
||||||
export * from ".//treeDepartment";
|
export * from ".//treeDepartment";
|
@ -11,9 +11,9 @@ import {
|
|||||||
} from "antd";
|
} from "antd";
|
||||||
import { resource, resourceCategory } from "../../api";
|
import { resource, resourceCategory } from "../../api";
|
||||||
import styles from "./index.module.less";
|
import styles from "./index.module.less";
|
||||||
import { CreateResourceCategory } from "../createResourceCategory";
|
import { CreateResourceCategory } from "../create-resource-category";
|
||||||
import { CloseOutlined } from "@ant-design/icons";
|
import { CloseOutlined } from "@ant-design/icons";
|
||||||
import { UploadImageSub } from "./uploadImageSub";
|
import { UploadImageSub } from "./upload-image-sub";
|
||||||
|
|
||||||
interface CategoryItem {
|
interface CategoryItem {
|
||||||
id: number;
|
id: number;
|
||||||
@ -72,7 +72,7 @@ export const UploadImageButton = (props: PropsInterface) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
resource
|
resource
|
||||||
.resourceList(page, size, "", "", "", defaultCid + "")
|
.resourceList(page, size, "", "", "", "IMAGE", defaultCid + "")
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
setTotal(res.data.total);
|
setTotal(res.data.total);
|
||||||
setImageList(res.data.data);
|
setImageList(res.data.data);
|
Loading…
x
Reference in New Issue
Block a user