随笔分类 -  前端记录-work-react-最近工作

摘要:常用数据 var dataList = JSON.parse(JSON.stringify(bedList)); var code = "4435956c-c964-4816-96c2-7bceb8aca941" 阅读全文
posted @ 2022-12-23 10:20 前端导师歌谣 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<Select showSearch onChange={onChangeManufacture} style={{ width: '200px' }} placeholder="请选择生产单号" optionFilterProp="children" filterOption={(input, o 阅读全文
posted @ 2022-12-23 10:20 前端导师歌谣 阅读(59) 评论(0) 推荐(0) 编辑
摘要:const handleSave = (row: DataType) => { const newData: any = [...menuData.list]; const index = newData.findIndex((item: any) => row?.id == item.id); c 阅读全文
posted @ 2022-12-23 10:18 前端导师歌谣 阅读(38) 评论(0) 推荐(0) 编辑
摘要:{editing ? ( <Form.Item name={dataIndex} style={{ margin: 0 }} rules={[ { required: type == "1"?true:false, message: `Please Input ${title}!`, }, ]} > 阅读全文
posted @ 2022-12-23 10:18 前端导师歌谣 阅读(21) 评论(0) 推荐(0) 编辑
摘要:const inputNode = dataIndex == "split_type" ? ( <Select onChange={handleChange} style={{ width: "300px" }} placeholder="请选择分扎类型" optionFilterProp="chi 阅读全文
posted @ 2022-12-23 10:17 前端导师歌谣 阅读(20) 评论(0) 推荐(0) 编辑
摘要:export interface AddOrEditMenuProps { visible: boolean; menu: Menu | null; onClose: () => void; onConfirm: () => void; } interface AddOrEditMenuFormPr 阅读全文
posted @ 2022-12-23 10:16 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:pickList && pickList.map((item: any, index: any) => { pickList && pickList.map((item1: any, index1: any) => { if (index == index1) { arr[index].id = i 阅读全文
posted @ 2022-12-23 10:13 前端导师歌谣 阅读(24) 评论(0) 推荐(0) 编辑
摘要:import { render } from "@testing-library/react"; import React, { useEffect, useState, useRef, FC, PropsWithChildren, } from "react"; import { Checkbox 阅读全文
posted @ 2022-12-23 10:13 前端导师歌谣 阅读(64) 评论(0) 推荐(0) 编辑
摘要:<Button block color="primary" size="large" onClick={() => handleEdit(item.id, item.billId)} > 编辑 </Button> 阅读全文
posted @ 2022-12-23 10:13 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<NavBar back="返回" onBack={back}> 菜单界面 </NavBar> 阅读全文
posted @ 2022-12-23 10:12 前端导师歌谣 阅读(26) 评论(0) 推荐(0) 编辑
摘要:const handleClear = (index: any) => { form.setFieldsValue({ [`overlayLength-${index}`]: null, [`layers-${index}`]: null, [`colorId-${index}`]: null, [ 阅读全文
posted @ 2022-12-23 10:11 前端导师歌谣 阅读(31) 评论(0) 推荐(0) 编辑
摘要:#print { // width: 30mm; // height: 40mm; } // #customers :nth-child(1) { // margin-top: 0mm; // } #customers { padding: 2.5mm 0; width: 40mm; height: 阅读全文
posted @ 2022-12-23 10:10 前端导师歌谣 阅读(31) 评论(0) 推荐(0) 编辑
摘要:<img className='imgData' src={`data:image/jpeg;base64,${item?.base64}`}></img> 阅读全文
posted @ 2022-12-23 10:10 前端导师歌谣 阅读(64) 评论(0) 推荐(0) 编辑
摘要:summary={(data) => { let totalCount = 0; data.forEach((item: any) => { if (item.styleId == getStyle) { totalCount += parseInt(item.count); } }); retur 阅读全文
posted @ 2022-12-23 10:10 前端导师歌谣 阅读(94) 评论(0) 推荐(0) 编辑
摘要:<Select mode="multiple" size={size} placeholder="Please select" defaultValue={['a10', 'c12']} onChange={handleChange} style={{ width: '100%' }} option 阅读全文
posted @ 2022-12-23 10:09 前端导师歌谣 阅读(47) 评论(0) 推荐(0) 编辑
摘要:<Select mode="multiple" size={size} placeholder="Please select" defaultValue={['a10', 'c12']} onChange={handleChange} style={{ width: '100%' }} option 阅读全文
posted @ 2022-12-23 10:07 前端导师歌谣 阅读(108) 评论(0) 推荐(0) 编辑
摘要:const billCode=localStorage.getItem("billCode") 存入的是string类型 阅读全文
posted @ 2022-12-23 10:06 前端导师歌谣 阅读(9) 评论(0) 推荐(0) 编辑
摘要:onConfirm: async () => { const response = await paveClothDeleteByIds({ ids: ids }) if (response.code == 200) { Toast.show({ icon: 'success', content: 阅读全文
posted @ 2022-12-22 15:30 前端导师歌谣 阅读(29) 评论(0) 推荐(0) 编辑
摘要:{codeList && codeList.map((item: any, index) => ( <div key={index} className='rablist_list'> <div className='rablist_title'>{item.materialCode}({item. 阅读全文
posted @ 2022-12-22 15:30 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Dialog.confirm({ content: '是否确定删除', onConfirm: async () => { const response = await paveClothDeleteByIds({ ids: ids }) if (response.code == 200) { Toa 阅读全文
posted @ 2022-12-22 15:20 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示