|
|
|
|
@ -9,7 +9,8 @@ import {
|
|
|
|
|
Modal,
|
|
|
|
|
Dropdown,
|
|
|
|
|
Menu,
|
|
|
|
|
Pagination
|
|
|
|
|
Pagination,
|
|
|
|
|
Message
|
|
|
|
|
} from '@arco-design/web-react';
|
|
|
|
|
import { IconDown, IconToBottom, IconEye } from '@arco-design/web-react/icon';
|
|
|
|
|
import styles from './style/collapseList.module.less';
|
|
|
|
|
@ -72,7 +73,12 @@ const CollapseList: React.FC<CollapseListProps> = ({ searchKeyword, runStatus })
|
|
|
|
|
// 上架组件
|
|
|
|
|
const componentOnSaleHandler = async (value) => {
|
|
|
|
|
const res: any = await componentOnSale({ identifier: value.identifier });
|
|
|
|
|
if (res.code === 200) getList();
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
Message.success({
|
|
|
|
|
content: '上架成功'
|
|
|
|
|
});
|
|
|
|
|
getList();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
Modal.error({
|
|
|
|
|
title: '上架失败',
|
|
|
|
|
@ -85,6 +91,7 @@ const CollapseList: React.FC<CollapseListProps> = ({ searchKeyword, runStatus })
|
|
|
|
|
const componentOffSaleHandler = async (stopInstance: boolean) => {
|
|
|
|
|
const res: any = await componentOffSale({ identifier: selectedItem.identifier, stopInstance });
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
Message.success({ content: '下架成功' });
|
|
|
|
|
getList();
|
|
|
|
|
setShowOffSaleModal(false);
|
|
|
|
|
}
|
|
|
|
|
|