摘要:
//数组按照某字段去重排序 export function filterData(arr: any, flag: any) { console.log(arr,flag) let objList:any = [] let filterList:any = [] arr.forEach((item:a 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(22)
评论(0)
推荐(0)
摘要:
直接设置 scroll={{ x: 1000 }} 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(26)
评论(0)
推荐(0)
摘要:
<BasicTable data={menuData} onChange={onTableChange} loading={loading} scroll={{ x: 2000 }}> 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(33)
评论(0)
推荐(0)
摘要:
<Table.Column<Menu> width={170} align="center" fixed={"right"} title="操作" render={(text, record, index) => ( <MenuButton index={index} record={record} 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(37)
评论(0)
推荐(0)
摘要:
// FormLayout const formItemLayout = { labelCol: { xs: { span: 6 }, sm: { span: 6 }, }, wrapperCol: { xs: { span: 14 }, sm: { span: 14 }, }, }; const 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(64)
评论(0)
推荐(0)
摘要:
const onOk = (() => { console.log(dataParams, "dataParams") if(fileLoading){ cutSchemeListAdd(dataParams) .unwrap() .then((response: any) => { if (res 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(47)
评论(0)
推荐(0)
摘要:
<Table.Column<Menu> width="100px" title="生产单号" dataIndex="code" align="center"></Table.Column> <Table.Column<Menu> width="100px" title="订单编号" dataInde 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(31)
评论(0)
推荐(0)
摘要:
render: (value, record, index) => { // 处理列,相同数据则合并 // 处理rowSpan const obj = { children: value, props: { rowSpan: 1 }, }; // 当检索到相同数据则返回 那条数据 let arr = 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(68)
评论(0)
推荐(0)
摘要:
import React, { useState, useEffect, useCallback, memo } from 'react'; import {Modal, Input, message, Form, Calendar} from 'antd'; import {useHolidayD 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(65)
评论(0)
推荐(0)
摘要:
第一种打印方式 window.document.body.innerHTML = window.document.getElementById('print')!.innerHTML; window.print(); window.location.reload(); 直接根据dom节点打印 阅读全文
posted @ 2022-10-26 22:32
前端导师歌谣
阅读(34)
评论(0)
推荐(0)

浙公网安备 33010602011771号