|
|
@@ -173,6 +173,11 @@ function B1tab1({ topType, setTopType }: Props) {
|
|
|
|
|
|
// 点击导出
|
|
|
const deriveFu = useCallback(async () => {
|
|
|
+ if (B1TableList.total > 30000)
|
|
|
+ return MessageFu.warning(
|
|
|
+ "只支持导出最多30000条数据。请增加筛选条件,并重新尝试"
|
|
|
+ );
|
|
|
+
|
|
|
if (B1TableList.list.length === 0)
|
|
|
return MessageFu.warning("当前搜索条件没有数据!");
|
|
|
const name = "进度统计" + dayjs(new Date()).format("YYYY-MM-DD HH:mm");
|
|
|
@@ -217,7 +222,7 @@ function B1tab1({ topType, setTopType }: Props) {
|
|
|
|
|
|
const toExcel = new ExportJsonExcel(option); //new
|
|
|
toExcel.saveExcel(); //保存
|
|
|
- }, [B1TableList.list]);
|
|
|
+ }, [B1TableList.list, B1TableList.total]);
|
|
|
|
|
|
// 点击 按日期查看
|
|
|
const [modalTitle, setModalTitle] = useState("");
|